OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 11690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11701 } | 11701 } |
11702 | 11702 |
11703 | 11703 |
11704 void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode( | 11704 void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode( |
11705 CallRuntime* call) { | 11705 CallRuntime* call) { |
11706 Add<HDebugBreak>(); | 11706 Add<HDebugBreak>(); |
11707 return ast_context()->ReturnValue(graph()->GetConstant0()); | 11707 return ast_context()->ReturnValue(graph()->GetConstant0()); |
11708 } | 11708 } |
11709 | 11709 |
11710 | 11710 |
11711 void HOptimizedGraphBuilder::GenerateDebugCallbackSupportsStepping( | 11711 void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { |
11712 CallRuntime* call) { | 11712 ASSERT(call->arguments()->length() == 0); |
11713 ASSERT(call->arguments()->length() == 1); | 11713 HValue* ref = |
11714 // Debugging is not supported in optimized code. | 11714 Add<HConstant>(ExternalReference::debug_is_active_address(isolate())); |
11715 return ast_context()->ReturnValue(graph()->GetConstantFalse()); | 11715 HValue* value = Add<HLoadNamedField>( |
| 11716 ref, static_cast<HValue*>(NULL), HObjectAccess::ForExternalUInteger8()); |
| 11717 return ast_context()->ReturnValue(value); |
11716 } | 11718 } |
11717 | 11719 |
11718 | 11720 |
11719 #undef CHECK_BAILOUT | 11721 #undef CHECK_BAILOUT |
11720 #undef CHECK_ALIVE | 11722 #undef CHECK_ALIVE |
11721 | 11723 |
11722 | 11724 |
11723 HEnvironment::HEnvironment(HEnvironment* outer, | 11725 HEnvironment::HEnvironment(HEnvironment* outer, |
11724 Scope* scope, | 11726 Scope* scope, |
11725 Handle<JSFunction> closure, | 11727 Handle<JSFunction> closure, |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12344 if (ShouldProduceTraceOutput()) { | 12346 if (ShouldProduceTraceOutput()) { |
12345 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12347 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
12346 } | 12348 } |
12347 | 12349 |
12348 #ifdef DEBUG | 12350 #ifdef DEBUG |
12349 graph_->Verify(false); // No full verify. | 12351 graph_->Verify(false); // No full verify. |
12350 #endif | 12352 #endif |
12351 } | 12353 } |
12352 | 12354 |
12353 } } // namespace v8::internal | 12355 } } // namespace v8::internal |
OLD | NEW |