Reviewers: Søren Gjesse,

Description:
Fix compilation error in debug build for IA-32 and ARM.

[email protected]

Please review this at http://codereview.chromium.org/361005

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/arm/fast-codegen-arm.cc
   M     src/ia32/fast-codegen-ia32.cc


Index: src/ia32/fast-codegen-ia32.cc
===================================================================
--- src/ia32/fast-codegen-ia32.cc       (revision 3213)
+++ src/ia32/fast-codegen-ia32.cc       (working copy)
@@ -30,6 +30,7 @@
  #include "codegen-inl.h"
  #include "fast-codegen.h"
  #include "parser.h"
+#include "debug.h"

  namespace v8 {
  namespace internal {
Index: src/arm/fast-codegen-arm.cc
===================================================================
--- src/arm/fast-codegen-arm.cc (revision 3213)
+++ src/arm/fast-codegen-arm.cc (working copy)
@@ -130,7 +130,6 @@
      int num_parameters = function_->scope()->num_parameters();
      __ add(sp, sp, Operand((num_parameters + 1) * kPointerSize));
      __ Jump(lr);
-  }
  #ifdef DEBUG
    // Check that the size of the code used for returning matches what is
    // expected by the debugger. The add instruction above is an addressing
@@ -147,6 +146,7 @@
    ASSERT_EQ(expected_return_sequence_length,
              masm_->InstructionsGeneratedSince(&check_exit_codesize));
  #endif
+  }
  }





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

Reply via email to