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

Side by Side Diff: src/factory.h

Issue 6711027: [Isolates] Merge 7201:7258 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 PretenureFlag pretenure = NOT_TENURED); 215 PretenureFlag pretenure = NOT_TENURED);
216 216
217 // Global objects are pretenured. 217 // Global objects are pretenured.
218 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 218 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
219 219
220 // JS objects are pretenured when allocated by the bootstrapper and 220 // JS objects are pretenured when allocated by the bootstrapper and
221 // runtime. 221 // runtime.
222 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); 222 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);
223 223
224 // JS arrays are pretenured when allocated by the parser. 224 // JS arrays are pretenured when allocated by the parser.
225 Handle<JSArray> NewJSArray(int init_length, 225 Handle<JSArray> NewJSArray(int capacity,
226 PretenureFlag pretenure = NOT_TENURED); 226 PretenureFlag pretenure = NOT_TENURED);
227 227
228 Handle<JSArray> NewJSArrayWithElements( 228 Handle<JSArray> NewJSArrayWithElements(
229 Handle<FixedArray> elements, 229 Handle<FixedArray> elements,
230 PretenureFlag pretenure = NOT_TENURED); 230 PretenureFlag pretenure = NOT_TENURED);
231 231
232 Handle<JSFunction> NewFunction(Handle<String> name, 232 Handle<JSFunction> NewFunction(Handle<String> name,
233 Handle<Object> prototype); 233 Handle<Object> prototype);
234 234
235 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name); 235 Handle<JSFunction> NewFunctionWithoutPrototype(
236 Handle<String> name,
237 StrictModeFlag strict_mode);
236 238
237 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 239 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
238 240
239 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( 241 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
240 Handle<SharedFunctionInfo> function_info, 242 Handle<SharedFunctionInfo> function_info,
241 Handle<Map> function_map, 243 Handle<Map> function_map,
242 PretenureFlag pretenure); 244 PretenureFlag pretenure);
243 245
244 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 246 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
245 Handle<SharedFunctionInfo> function_info, 247 Handle<SharedFunctionInfo> function_info,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 JSRegExp::Flags flags, 405 JSRegExp::Flags flags,
404 int capture_count); 406 int capture_count);
405 407
406 private: 408 private:
407 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 409 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
408 410
409 Handle<JSFunction> NewFunctionHelper(Handle<String> name, 411 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
410 Handle<Object> prototype); 412 Handle<Object> prototype);
411 413
412 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 414 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
413 Handle<String> name); 415 Handle<String> name,
416 StrictModeFlag strict_mode);
414 417
415 Handle<DescriptorArray> CopyAppendCallbackDescriptors( 418 Handle<DescriptorArray> CopyAppendCallbackDescriptors(
416 Handle<DescriptorArray> array, 419 Handle<DescriptorArray> array,
417 Handle<Object> descriptors); 420 Handle<Object> descriptors);
418 421
419 // Create a new map cache. 422 // Create a new map cache.
420 Handle<MapCache> NewMapCache(int at_least_space_for); 423 Handle<MapCache> NewMapCache(int at_least_space_for);
421 424
422 // Update the map cache in the global context with (keys, map) 425 // Update the map cache in the global context with (keys, map)
423 Handle<MapCache> AddToMapCache(Handle<Context> context, 426 Handle<MapCache> AddToMapCache(Handle<Context> context,
424 Handle<FixedArray> keys, 427 Handle<FixedArray> keys,
425 Handle<Map> map); 428 Handle<Map> map);
426 }; 429 };
427 430
428 431
429 } } // namespace v8::internal 432 } } // namespace v8::internal
430 433
431 #endif // V8_FACTORY_H_ 434 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | src/global-handles.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698