Skip to content

Commit 6d425b7

Browse files
author
fschneider@chromium.org
committed
Insert call to CodeForFunctionPosition in the ARM code generator.
(== SetFunctionPosition in the top-level compiler) IA32 and X64 already do this at the beginning of CodeGenerator::gencode Review URL: http://codereview.chromium.org/354026 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3207 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent 3eb69a3 commit 6d425b7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/arm/codegen-arm.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ CodeGenerator::CodeGenerator(int buffer_size, Handle<Script> script,
144144
// cp: callee's context
145145

146146
void CodeGenerator::GenCode(FunctionLiteral* fun) {
147+
// Record the position for debugging purposes.
148+
CodeForFunctionPosition(fun);
149+
147150
ZoneList<Statement*>* body = fun->body();
148151

149152
// Initialize state.

src/arm/fast-codegen-arm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace internal {
5252
// frames-arm.h for its layout.
5353
void FastCodeGenerator::Generate(FunctionLiteral* fun) {
5454
function_ = fun;
55-
// ARM does NOT call SetFunctionPosition.
55+
SetFunctionPosition(fun);
5656

5757
__ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
5858
// Adjust fp to point to caller's fp.

0 commit comments

Comments
 (0)