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

Unified 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: Fix release build compile error. 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 side-by-side diff with in-line comments
Download patch
Index: src/crankshaft/hydrogen.cc
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
index e64b121930e58ca1513f5d172dc77f867882c339..ee235037cb397cd28f47f4119273216326720295 100644
--- a/src/crankshaft/hydrogen.cc
+++ b/src/crankshaft/hydrogen.cc
@@ -12886,6 +12886,13 @@ void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) {
return ast_context()->ReturnValue(value);
}
+void HOptimizedGraphBuilder::GenerateGetOrdinaryHasInstance(CallRuntime* call) {
+ DCHECK(call->arguments()->length() == 0);
+ // ordinary_has_instance is immutable so we can treat it as a constant.
+ HValue* value = Add<HConstant>(
+ handle(isolate()->native_context()->ordinary_has_instance()));
+ return ast_context()->ReturnValue(value);
+}
#undef CHECK_BAILOUT
#undef CHECK_ALIVE

Powered by Google App Engine
This is Rietveld 408576698