Chromium Code Reviews| 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>( | |
| 12892 handle(isolate()->native_context()->ordinary_has_instance())); | |
|
Toon Verwaest
2016/03/17 15:12:54
I think you can just do isolate()->ordinary_has_in
mvstanton
2016/03/17 15:23:48
Done.
| |
| 12893 return ast_context()->ReturnValue(value); | |
| 12894 } | |
| 12888 | 12895 |
| 12889 #undef CHECK_BAILOUT | 12896 #undef CHECK_BAILOUT |
| 12890 #undef CHECK_ALIVE | 12897 #undef CHECK_ALIVE |
| 12891 | 12898 |
| 12892 | 12899 |
| 12893 HEnvironment::HEnvironment(HEnvironment* outer, | 12900 HEnvironment::HEnvironment(HEnvironment* outer, |
| 12894 Scope* scope, | 12901 Scope* scope, |
| 12895 Handle<JSFunction> closure, | 12902 Handle<JSFunction> closure, |
| 12896 Zone* zone) | 12903 Zone* zone) |
| 12897 : closure_(closure), | 12904 : closure_(closure), |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 13519 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13526 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13520 } | 13527 } |
| 13521 | 13528 |
| 13522 #ifdef DEBUG | 13529 #ifdef DEBUG |
| 13523 graph_->Verify(false); // No full verify. | 13530 graph_->Verify(false); // No full verify. |
| 13524 #endif | 13531 #endif |
| 13525 } | 13532 } |
| 13526 | 13533 |
| 13527 } // namespace internal | 13534 } // namespace internal |
| 13528 } // namespace v8 | 13535 } // namespace v8 |
| OLD | NEW |