Revision: 3207
Author: [email protected]
Date: Tue Nov  3 08:08:35 2009
Log: 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
http://code.google.com/p/v8/source/detail?r=3207

Modified:
  /branches/bleeding_edge/src/arm/codegen-arm.cc
  /branches/bleeding_edge/src/arm/fast-codegen-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/codegen-arm.cc      Fri Oct 30 03:22:31 2009
+++ /branches/bleeding_edge/src/arm/codegen-arm.cc      Tue Nov  3 08:08:35 2009
@@ -144,6 +144,9 @@
  // cp: callee's context

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

    // Initialize state.
=======================================
--- /branches/bleeding_edge/src/arm/fast-codegen-arm.cc Tue Nov  3 06:48:59  
2009
+++ /branches/bleeding_edge/src/arm/fast-codegen-arm.cc Tue Nov  3 08:08:35  
2009
@@ -52,7 +52,7 @@
  // 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.

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to