Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 0f26d6fce685a1fb185fc03941bf4eac86271133..353db2d4814248c7504ac3592ba8f9cfeafa3709 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -34,6 +34,7 @@ |
#include "compiler.h" |
#include "debug.h" |
#include "full-codegen.h" |
+#include "isolate-inl.h" |
#include "parser.h" |
#include "scopes.h" |
#include "stub-cache.h" |
@@ -100,7 +101,9 @@ class JumpPatchSite BASE_EMBEDDED { |
}; |
+// TODO(jkummerow): Obsolete as soon as x64 is updated. Remove. |
Erik Corry
2012/03/23 09:55:53
hmmm
Jakob Kummerow
2012/03/23 12:07:32
See my response in full-codegen-arm.cc.
|
int FullCodeGenerator::self_optimization_header_size() { |
+ UNREACHABLE(); |
return 13; |
} |
@@ -321,6 +324,9 @@ void FullCodeGenerator::EmitProfilingCounterReset() { |
// Self-optimization is a one-off thing: if it fails, don't try again. |
reset_value = Smi::kMaxValue; |
} |
+ if (isolate()->IsDebuggerActive()) { |
+ reset_value = 10; |
+ } |
__ mov(ebx, Immediate(profiling_counter_)); |
__ mov(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset), |
Immediate(Smi::FromInt(reset_value))); |