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

Side by Side Diff: src/factory.h

Issue 151019: Changed the global object representation (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // structures in the heap. 176 // structures in the heap.
177 static Handle<JSObject> NewNeanderObject(); 177 static Handle<JSObject> NewNeanderObject();
178 178
179 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 179 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
180 180
181 // JS objects are pretenured when allocated by the bootstrapper and 181 // JS objects are pretenured when allocated by the bootstrapper and
182 // runtime. 182 // runtime.
183 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 183 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
184 PretenureFlag pretenure = NOT_TENURED); 184 PretenureFlag pretenure = NOT_TENURED);
185 185
186 // JS global objects are pretenured.
187 static Handle<JSGlobalObject> NewJSGlobalObject(
188 Handle<JSFunction> constructor);
189
186 // JS objects are pretenured when allocated by the bootstrapper and 190 // JS objects are pretenured when allocated by the bootstrapper and
187 // runtime. 191 // runtime.
188 static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); 192 static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);
189 193
190 // JS arrays are pretenured when allocated by the parser. 194 // JS arrays are pretenured when allocated by the parser.
191 static Handle<JSArray> NewJSArray(int init_length, 195 static Handle<JSArray> NewJSArray(int init_length,
192 PretenureFlag pretenure = NOT_TENURED); 196 PretenureFlag pretenure = NOT_TENURED);
193 197
194 static Handle<JSArray> NewJSArrayWithElements( 198 static Handle<JSArray> NewJSArrayWithElements(
195 Handle<FixedArray> elements, 199 Handle<FixedArray> elements,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Update the map cache in the global context with (keys, map) 361 // Update the map cache in the global context with (keys, map)
358 static Handle<MapCache> AddToMapCache(Handle<Context> context, 362 static Handle<MapCache> AddToMapCache(Handle<Context> context,
359 Handle<FixedArray> keys, 363 Handle<FixedArray> keys,
360 Handle<Map> map); 364 Handle<Map> map);
361 }; 365 };
362 366
363 367
364 } } // namespace v8::internal 368 } } // namespace v8::internal
365 369
366 #endif // V8_FACTORY_H_ 370 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/factory.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698