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

Unified Diff: src/factory.h

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Clean up test Created 4 years 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/factory.h
diff --git a/src/factory.h b/src/factory.h
index 7362a3857229301fdb21a27e827cb14190c391bd..82a53a724ae4afc43653ccd87f5145447f576e6c 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -296,8 +296,9 @@ class V8_EXPORT_PRIVATE Factory final {
Handle<JSFunction> function,
Handle<ScopeInfo> scope_info);
- // Create a function context.
- Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
+ // Create a function or eval context.
adamk 2016/12/14 12:23:31 Can you mention here that scope_type should be one
Dan Ehrenberg 2016/12/14 22:53:30 There are tons of places where scope_type is an in
adamk 2016/12/15 08:46:52 I commented on this case just because it happened
+ Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function,
+ ScopeType scope_type);
// Create a catch context.
Handle<Context> NewCatchContext(Handle<JSFunction> function,

Powered by Google App Engine
This is Rietveld 408576698