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

Side by Side Diff: src/factory.h

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review 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 unified diff | Download patch
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 Handle<ScopeInfo> scope_info); 289 Handle<ScopeInfo> scope_info);
290 290
291 // Create an empty script context table. 291 // Create an empty script context table.
292 Handle<ScriptContextTable> NewScriptContextTable(); 292 Handle<ScriptContextTable> NewScriptContextTable();
293 293
294 // Create a module context. 294 // Create a module context.
295 Handle<Context> NewModuleContext(Handle<Module> module, 295 Handle<Context> NewModuleContext(Handle<Module> module,
296 Handle<JSFunction> function, 296 Handle<JSFunction> function,
297 Handle<ScopeInfo> scope_info); 297 Handle<ScopeInfo> scope_info);
298 298
299 // Create a function context. 299 // Create a function or eval context.
300 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); 300 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function,
301 ScopeType scope_type);
301 302
302 // Create a catch context. 303 // Create a catch context.
303 Handle<Context> NewCatchContext(Handle<JSFunction> function, 304 Handle<Context> NewCatchContext(Handle<JSFunction> function,
304 Handle<Context> previous, 305 Handle<Context> previous,
305 Handle<ScopeInfo> scope_info, 306 Handle<ScopeInfo> scope_info,
306 Handle<String> name, 307 Handle<String> name,
307 Handle<Object> thrown_object); 308 Handle<Object> thrown_object);
308 309
309 // Create a 'with' context. 310 // Create a 'with' context.
310 Handle<Context> NewWithContext(Handle<JSFunction> function, 311 Handle<Context> NewWithContext(Handle<JSFunction> function,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 807 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
807 FunctionMode function_mode); 808 FunctionMode function_mode);
808 809
809 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 810 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
810 }; 811 };
811 812
812 } // namespace internal 813 } // namespace internal
813 } // namespace v8 814 } // namespace v8
814 815
815 #endif // V8_FACTORY_H_ 816 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698