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

Side by Side Diff: src/factory.h

Issue 705663004: harmony_scoping: Implement lexical bindings at top level (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased patch for landing Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/contexts.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/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Handle<Symbol> NewPrivateSymbol(); 222 Handle<Symbol> NewPrivateSymbol();
223 Handle<Symbol> NewPrivateOwnSymbol(); 223 Handle<Symbol> NewPrivateOwnSymbol();
224 224
225 // Create a global (but otherwise uninitialized) context. 225 // Create a global (but otherwise uninitialized) context.
226 Handle<Context> NewNativeContext(); 226 Handle<Context> NewNativeContext();
227 227
228 // Create a global context. 228 // Create a global context.
229 Handle<Context> NewGlobalContext(Handle<JSFunction> function, 229 Handle<Context> NewGlobalContext(Handle<JSFunction> function,
230 Handle<ScopeInfo> scope_info); 230 Handle<ScopeInfo> scope_info);
231 231
232 // Create an empty global context table.
233 Handle<GlobalContextTable> NewGlobalContextTable();
234
232 // Create a module context. 235 // Create a module context.
233 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); 236 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info);
234 237
235 // Create a function context. 238 // Create a function context.
236 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); 239 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
237 240
238 // Create a catch context. 241 // Create a catch context.
239 Handle<Context> NewCatchContext(Handle<JSFunction> function, 242 Handle<Context> NewCatchContext(Handle<JSFunction> function,
240 Handle<Context> previous, 243 Handle<Context> previous,
241 Handle<String> name, 244 Handle<String> name,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 // Reinitialize a JSProxy into an (empty) JS object of respective type and 725 // Reinitialize a JSProxy into an (empty) JS object of respective type and
723 // size, but keeping the original prototype. The receiver must have at least 726 // size, but keeping the original prototype. The receiver must have at least
724 // the size of the new object. The object is reinitialized and behaves as an 727 // the size of the new object. The object is reinitialized and behaves as an
725 // object that has been freshly allocated. 728 // object that has been freshly allocated.
726 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 729 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
727 }; 730 };
728 731
729 } } // namespace v8::internal 732 } } // namespace v8::internal
730 733
731 #endif // V8_FACTORY_H_ 734 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698