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
This commit is contained in:
parent
3eb69a34fa
commit
6d425b70f6
@ -144,6 +144,9 @@ CodeGenerator::CodeGenerator(int buffer_size, Handle<Script> script,
|
||||
// cp: callee's context
|
||||
|
||||
void CodeGenerator::GenCode(FunctionLiteral* fun) {
|
||||
// Record the position for debugging purposes.
|
||||
CodeForFunctionPosition(fun);
|
||||
|
||||
ZoneList<Statement*>* body = fun->body();
|
||||
|
||||
// Initialize state.
|
||||
|
@ -52,7 +52,7 @@ namespace internal {
|
||||
// frames-arm.h for its layout.
|
||||
void FastCodeGenerator::Generate(FunctionLiteral* fun) {
|
||||
function_ = fun;
|
||||
// ARM does NOT call SetFunctionPosition.
|
||||
SetFunctionPosition(fun);
|
||||
|
||||
__ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
|
||||
// Adjust fp to point to caller's fp.
|
||||
|
Loading…
Reference in New Issue
Block a user