Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 1809993002: Provide optimized support for the %GetOrdinaryHasInstance intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@bare-4774-fix
Patch Set: Comment response. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698