Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 030e6f6265f87040bf9218549a803c636416a826..7f14df03b89b9cb782a572f855c4fcae47343d41 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -4010,6 +4010,16 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
+ ASSERT(expr->arguments()->length() == 0); |
+ ExternalReference debug_is_active = |
+ ExternalReference::debug_is_active_address(isolate()); |
+ __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); |
+ __ SmiTag(eax); |
+ context()->Plug(eax); |
+} |
+ |
+ |
void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
if (expr->function() != NULL && |
expr->function()->intrinsic_type == Runtime::INLINE) { |