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

Side by Side Diff: src/factory.h

Issue 8258015: Support array literals with FAST_DOUBLE_ELEMENTS ElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove regressions Created 9 years, 2 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Handle<FixedArray> NewFixedArray( 43 Handle<FixedArray> NewFixedArray(
44 int size, 44 int size,
45 PretenureFlag pretenure = NOT_TENURED); 45 PretenureFlag pretenure = NOT_TENURED);
46 46
47 // Allocate a new fixed array with non-existing entries (the hole). 47 // Allocate a new fixed array with non-existing entries (the hole).
48 Handle<FixedArray> NewFixedArrayWithHoles( 48 Handle<FixedArray> NewFixedArrayWithHoles(
49 int size, 49 int size,
50 PretenureFlag pretenure = NOT_TENURED); 50 PretenureFlag pretenure = NOT_TENURED);
51 51
52 // Allocate a new uninitialized fixed double array. 52 // Allocate a new uninitialized fixed double array.
53 Handle<FixedArray> NewFixedDoubleArray( 53 Handle<FixedDoubleArray> NewFixedDoubleArray(
54 int size, 54 int size,
55 PretenureFlag pretenure = NOT_TENURED); 55 PretenureFlag pretenure = NOT_TENURED);
56 56
57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); 57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for);
58 58
59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); 59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
60 60
61 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for); 61 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for);
62 62
63 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); 63 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // overflowing the instance size. 215 // overflowing the instance size.
216 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 216 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
217 217
218 Handle<Map> CopyMapDropTransitions(Handle<Map> map); 218 Handle<Map> CopyMapDropTransitions(Handle<Map> map);
219 219
220 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, 220 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
221 ElementsKind elements_kind); 221 ElementsKind elements_kind);
222 222
223 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 223 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
224 224
225 Handle<FixedDoubleArray> CopyFixedDoubleArray(
226 Handle<FixedDoubleArray> array);
227
225 // Numbers (eg, literals) are pretenured by the parser. 228 // Numbers (eg, literals) are pretenured by the parser.
226 Handle<Object> NewNumber(double value, 229 Handle<Object> NewNumber(double value,
227 PretenureFlag pretenure = NOT_TENURED); 230 PretenureFlag pretenure = NOT_TENURED);
228 231
229 Handle<Object> NewNumberFromInt(int value); 232 Handle<Object> NewNumberFromInt(int value);
230 Handle<Object> NewNumberFromUint(uint32_t value); 233 Handle<Object> NewNumberFromUint(uint32_t value);
231 234
232 // These objects are used by the api to create env-independent data 235 // These objects are used by the api to create env-independent data
233 // structures in the heap. 236 // structures in the heap.
234 Handle<JSObject> NewNeanderObject(); 237 Handle<JSObject> NewNeanderObject();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // Update the map cache in the global context with (keys, map) 477 // Update the map cache in the global context with (keys, map)
475 Handle<MapCache> AddToMapCache(Handle<Context> context, 478 Handle<MapCache> AddToMapCache(Handle<Context> context,
476 Handle<FixedArray> keys, 479 Handle<FixedArray> keys,
477 Handle<Map> map); 480 Handle<Map> map);
478 }; 481 };
479 482
480 483
481 } } // namespace v8::internal 484 } } // namespace v8::internal
482 485
483 #endif // V8_FACTORY_H_ 486 #endif // V8_FACTORY_H_
OLDNEW
« src/arm/full-codegen-arm.cc ('K') | « src/code-stubs.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698