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

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

Issue 2314483002: Store the ScopeInfo in WithContexts (Closed)
Patch Set: updates Created 4 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/contexts.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 f26a96cd28ea4631359d630109205c40d1dae993..2329b951803632d2977a38208f68d5837ee16f99 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -451,8 +451,7 @@ CompareOperationHint CompareOperationHintOf(const Operator* op) {
V(LoadMessage, Operator::kNoThrow, 0, 1) \
V(StoreMessage, Operator::kNoThrow, 1, 0) \
V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \
- V(StackCheck, Operator::kNoWrite, 0, 0) \
- V(CreateWithContext, Operator::kNoProperties, 2, 1)
+ V(StackCheck, Operator::kNoWrite, 0, 0)
#define BINARY_OP_LIST(V) \
V(BitwiseOr) \
@@ -850,6 +849,14 @@ const Operator* JSOperatorBuilder::CreateCatchContext(
parameters); // parameter
}
+const Operator* JSOperatorBuilder::CreateWithContext(
+ const Handle<ScopeInfo>& scope_info) {
+ return new (zone()) Operator1<Handle<ScopeInfo>>(
+ IrOpcode::kJSCreateWithContext, Operator::kNoProperties, // opcode
+ "JSCreateWithContext", // name
+ 2, 1, 1, 1, 1, 2, // counts
+ scope_info); // parameter
+}
const Operator* JSOperatorBuilder::CreateBlockContext(
const Handle<ScopeInfo>& scpope_info) {
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698