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/crankshaft/hydrogen.h" | 5 #include "src/crankshaft/hydrogen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
10 #include "src/ast/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
(...skipping 12867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12878 | 12878 |
12879 void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { | 12879 void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { |
12880 DCHECK(call->arguments()->length() == 0); | 12880 DCHECK(call->arguments()->length() == 0); |
12881 HValue* ref = | 12881 HValue* ref = |
12882 Add<HConstant>(ExternalReference::debug_is_active_address(isolate())); | 12882 Add<HConstant>(ExternalReference::debug_is_active_address(isolate())); |
12883 HValue* value = | 12883 HValue* value = |
12884 Add<HLoadNamedField>(ref, nullptr, HObjectAccess::ForExternalUInteger8()); | 12884 Add<HLoadNamedField>(ref, nullptr, HObjectAccess::ForExternalUInteger8()); |
12885 return ast_context()->ReturnValue(value); | 12885 return ast_context()->ReturnValue(value); |
12886 } | 12886 } |
12887 | 12887 |
| 12888 void HOptimizedGraphBuilder::GenerateGetOrdinaryHasInstance(CallRuntime* call) { |
| 12889 DCHECK(call->arguments()->length() == 0); |
| 12890 // ordinary_has_instance is immutable so we can treat it as a constant. |
| 12891 HValue* value = Add<HConstant>(isolate()->ordinary_has_instance()); |
| 12892 return ast_context()->ReturnValue(value); |
| 12893 } |
12888 | 12894 |
12889 #undef CHECK_BAILOUT | 12895 #undef CHECK_BAILOUT |
12890 #undef CHECK_ALIVE | 12896 #undef CHECK_ALIVE |
12891 | 12897 |
12892 | 12898 |
12893 HEnvironment::HEnvironment(HEnvironment* outer, | 12899 HEnvironment::HEnvironment(HEnvironment* outer, |
12894 Scope* scope, | 12900 Scope* scope, |
12895 Handle<JSFunction> closure, | 12901 Handle<JSFunction> closure, |
12896 Zone* zone) | 12902 Zone* zone) |
12897 : closure_(closure), | 12903 : closure_(closure), |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13519 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13525 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13520 } | 13526 } |
13521 | 13527 |
13522 #ifdef DEBUG | 13528 #ifdef DEBUG |
13523 graph_->Verify(false); // No full verify. | 13529 graph_->Verify(false); // No full verify. |
13524 #endif | 13530 #endif |
13525 } | 13531 } |
13526 | 13532 |
13527 } // namespace internal | 13533 } // namespace internal |
13528 } // namespace v8 | 13534 } // namespace v8 |
OLD | NEW |