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

Unified Diff: src/compiler/js-operator.cc

Issue 1379593002: [turbofan] Pass scope infos as static operator parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-turbofan-verifier
Patch Set: Fix Windows build. Created 5 years, 3 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index e7de5ee585332aec3498989692fb6def3fbfcafa..a364dac38e557c2987187ebb69dc9945afe83949 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -474,9 +474,7 @@ const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) {
V(StackCheck, Operator::kNoProperties, 0, 0) \
V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \
V(CreateWithContext, Operator::kNoProperties, 2, 1) \
- V(CreateBlockContext, Operator::kNoProperties, 2, 1) \
- V(CreateModuleContext, Operator::kNoProperties, 2, 1) \
- V(CreateScriptContext, Operator::kNoProperties, 2, 1)
+ V(CreateModuleContext, Operator::kNoProperties, 2, 1)
#define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \
@@ -785,6 +783,28 @@ const Operator* JSOperatorBuilder::CreateCatchContext(
name); // parameter
}
+
+const Operator* JSOperatorBuilder::CreateBlockContext(
+ const Handle<ScopeInfo>& scpope_info) {
+ return new (zone()) Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to,
+ Handle<ScopeInfo>::hash>( // --
+ IrOpcode::kJSCreateBlockContext, Operator::kNoProperties, // opcode
+ "JSCreateBlockContext", // name
+ 1, 1, 1, 1, 1, 2, // counts
+ scpope_info); // parameter
+}
+
+
+const Operator* JSOperatorBuilder::CreateScriptContext(
+ const Handle<ScopeInfo>& scpope_info) {
+ return new (zone()) Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to,
+ Handle<ScopeInfo>::hash>( // --
+ IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
+ "JSCreateScriptContext", // name
+ 1, 1, 1, 1, 1, 2, // counts
+ scpope_info); // parameter
+}
+
} // namespace compiler
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698