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

Side by Side Diff: src/factory.h

Issue 10876067: Introduce global contexts to represent lexical global scope(s). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Sven's comments. Created 8 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 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // not make sense to have a UTF-8 factory function for external strings, 155 // not make sense to have a UTF-8 factory function for external strings,
156 // because we cannot change the underlying buffer. 156 // because we cannot change the underlying buffer.
157 Handle<String> NewExternalStringFromAscii( 157 Handle<String> NewExternalStringFromAscii(
158 const ExternalAsciiString::Resource* resource); 158 const ExternalAsciiString::Resource* resource);
159 Handle<String> NewExternalStringFromTwoByte( 159 Handle<String> NewExternalStringFromTwoByte(
160 const ExternalTwoByteString::Resource* resource); 160 const ExternalTwoByteString::Resource* resource);
161 161
162 // Create a global (but otherwise uninitialized) context. 162 // Create a global (but otherwise uninitialized) context.
163 Handle<Context> NewNativeContext(); 163 Handle<Context> NewNativeContext();
164 164
165 // Create a global context.
166 Handle<Context> NewGlobalContext(Handle<JSFunction> function,
167 Handle<ScopeInfo> scope_info);
168
165 // Create a module context. 169 // Create a module context.
166 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); 170 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info);
167 171
168 // Create a function context. 172 // Create a function context.
169 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); 173 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
170 174
171 // Create a catch context. 175 // Create a catch context.
172 Handle<Context> NewCatchContext(Handle<JSFunction> function, 176 Handle<Context> NewCatchContext(Handle<JSFunction> function,
173 Handle<Context> previous, 177 Handle<Context> previous,
174 Handle<String> name, 178 Handle<String> name,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Update the map cache in the native context with (keys, map) 506 // Update the map cache in the native context with (keys, map)
503 Handle<MapCache> AddToMapCache(Handle<Context> context, 507 Handle<MapCache> AddToMapCache(Handle<Context> context,
504 Handle<FixedArray> keys, 508 Handle<FixedArray> keys,
505 Handle<Map> map); 509 Handle<Map> map);
506 }; 510 };
507 511
508 512
509 } } // namespace v8::internal 513 } } // namespace v8::internal
510 514
511 #endif // V8_FACTORY_H_ 515 #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