Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index bb4618ae45d68fb35c8ebceb02de8f757b4b0373..48da5a85ceb6e9db0a0ba26a9eb380863d8b6371 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -4028,6 +4028,17 @@ 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()); |
+ __ mov(ip, Operand(debug_is_active)); |
+ __ ldrb(r0, MemOperand(ip)); |
+ __ SmiTag(r0); |
+ context()->Plug(r0); |
+} |
+ |
+ |
void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
if (expr->function() != NULL && |
expr->function()->intrinsic_type == Runtime::INLINE) { |