Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 3162eb606ad687924ae6bcd9ff04d0a1e9570869..8ec05f56c406e160ee715088c1681fdce3ea6c18 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -11708,11 +11708,13 @@ void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode( |
} |
-void HOptimizedGraphBuilder::GenerateDebugCallbackSupportsStepping( |
- CallRuntime* call) { |
- ASSERT(call->arguments()->length() == 1); |
- // Debugging is not supported in optimized code. |
- return ast_context()->ReturnValue(graph()->GetConstantFalse()); |
+void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { |
+ ASSERT(call->arguments()->length() == 0); |
+ HValue* ref = |
+ Add<HConstant>(ExternalReference::debug_is_active_address(isolate())); |
+ HValue* value = Add<HLoadNamedField>( |
+ ref, static_cast<HValue*>(NULL), HObjectAccess::ForExternalUInteger8()); |
+ return ast_context()->ReturnValue(value); |
} |