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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: relax dchecks Created 4 years, 1 month 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/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 0e1d0023812177ade43e8e584ac6c200bdb933eb..c897d7b23d646736c9e671fba471b9b3cffb5198 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -860,6 +860,14 @@ const Operator* JSOperatorBuilder::CreateFunctionContext(int slot_count) {
slot_count); // parameter
}
+const Operator* JSOperatorBuilder::CreateEvalContext(int slot_count) {
+ return new (zone()) Operator1<int>( // --
+ IrOpcode::kJSCreateEvalContext, Operator::kNoProperties, // opcode
+ "JSCreateEvalContext", // name
+ 1, 1, 1, 1, 1, 2, // counts
+ slot_count); // parameter
+}
+
const Operator* JSOperatorBuilder::CreateCatchContext(
const Handle<String>& name, const Handle<ScopeInfo>& scope_info) {
CreateCatchContextParameters parameters(name, scope_info);

Powered by Google App Engine
This is Rietveld 408576698