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

Side by Side Diff: src/factory.h

Issue 8820014: Support Smi->Double->HeapObject transitions in constructed Arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/elements.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 // JS objects are pretenured when allocated by the bootstrapper and 253 // JS objects are pretenured when allocated by the bootstrapper and
254 // runtime. 254 // runtime.
255 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); 255 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);
256 256
257 // JS arrays are pretenured when allocated by the parser. 257 // JS arrays are pretenured when allocated by the parser.
258 Handle<JSArray> NewJSArray(int capacity, 258 Handle<JSArray> NewJSArray(int capacity,
259 PretenureFlag pretenure = NOT_TENURED); 259 PretenureFlag pretenure = NOT_TENURED);
260 260
261 Handle<JSArray> NewJSArrayWithElements( 261 Handle<JSArray> NewJSArrayWithElements(
262 Handle<FixedArray> elements, 262 Handle<FixedArrayBase> elements,
263 PretenureFlag pretenure = NOT_TENURED); 263 PretenureFlag pretenure = NOT_TENURED);
264 264
265 void SetContent(Handle<JSArray> array, Handle<FixedArray> elements); 265 void SetElementsCapacityAndLength(Handle<JSArray> array,
266 int capacity,
267 int length);
266 268
267 void EnsureCanContainNonSmiElements(Handle<JSArray> array); 269 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
270
271 void EnsureCanContainHeapObjectElements(Handle<JSArray> array);
272 void EnsureCanContainElements(Handle<JSArray> array,
273 Handle<FixedArrayBase> elements,
274 EnsureElementsMode mode);
268 275
269 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 276 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
270 277
271 // Change the type of the argument into a JS object/function and reinitialize. 278 // Change the type of the argument into a JS object/function and reinitialize.
272 void BecomeJSObject(Handle<JSReceiver> object); 279 void BecomeJSObject(Handle<JSReceiver> object);
273 void BecomeJSFunction(Handle<JSReceiver> object); 280 void BecomeJSFunction(Handle<JSReceiver> object);
274 281
275 void SetIdentityHash(Handle<JSObject> object, Object* hash); 282 void SetIdentityHash(Handle<JSObject> object, Object* hash);
276 283
277 Handle<JSFunction> NewFunction(Handle<String> name, 284 Handle<JSFunction> NewFunction(Handle<String> name,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Update the map cache in the global context with (keys, map) 488 // Update the map cache in the global context with (keys, map)
482 Handle<MapCache> AddToMapCache(Handle<Context> context, 489 Handle<MapCache> AddToMapCache(Handle<Context> context,
483 Handle<FixedArray> keys, 490 Handle<FixedArray> keys,
484 Handle<Map> map); 491 Handle<Map> map);
485 }; 492 };
486 493
487 494
488 } } // namespace v8::internal 495 } } // namespace v8::internal
489 496
490 #endif // V8_FACTORY_H_ 497 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698