Fix compilation error in debug build for IA-32 and ARM.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 4 Nov 2009 14:33:37 +0000 (14:33 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 4 Nov 2009 14:33:37 +0000 (14:33 +0000)
TBR=sgjesse@chromium.org
Review URL: http://codereview.chromium.org/361005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3214 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/fast-codegen-arm.cc
src/ia32/fast-codegen-ia32.cc

index 21e4791493cf0356ef131014876c82ce0ddfca53..d4018caa062f165a6ea055083b18a57a91d9d79e 100644 (file)
@@ -130,7 +130,6 @@ void FastCodeGenerator::EmitReturnSequence(int position) {
     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 @@ void FastCodeGenerator::EmitReturnSequence(int position) {
   ASSERT_EQ(expected_return_sequence_length,
             masm_->InstructionsGeneratedSince(&check_exit_codesize));
 #endif
+  }
 }
 
 
index 6c0a814a3ed6bd2fbec9408da3bcee792e55ae6c..24ad862998d87ca4f4d7799ca37a4a64681a304b 100644 (file)
@@ -30,6 +30,7 @@
 #include "codegen-inl.h"
 #include "fast-codegen.h"
 #include "parser.h"
+#include "debug.h"
 
 namespace v8 {
 namespace internal {