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

Side by Side Diff: src/factory.h

Issue 22601003: Out-of-line constant pool on Arm: Stage 2 - Introduce ConstantPoolArray object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 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
« no previous file with comments | « include/v8.h ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Allocate a new fixed array with non-existing entries (the hole). 52 // Allocate a new fixed array with non-existing entries (the hole).
53 Handle<FixedArray> NewFixedArrayWithHoles( 53 Handle<FixedArray> NewFixedArrayWithHoles(
54 int size, 54 int size,
55 PretenureFlag pretenure = NOT_TENURED); 55 PretenureFlag pretenure = NOT_TENURED);
56 56
57 // Allocate a new uninitialized fixed double array. 57 // Allocate a new uninitialized fixed double array.
58 Handle<FixedDoubleArray> NewFixedDoubleArray( 58 Handle<FixedDoubleArray> NewFixedDoubleArray(
59 int size, 59 int size,
60 PretenureFlag pretenure = NOT_TENURED); 60 PretenureFlag pretenure = NOT_TENURED);
61 61
62 Handle<ConstantPoolArray> NewConstantPoolArray(
63 int number_of_int64_entries,
64 int number_of_ptr_entries,
65 int number_of_int32_entries);
66
62 Handle<SeededNumberDictionary> NewSeededNumberDictionary( 67 Handle<SeededNumberDictionary> NewSeededNumberDictionary(
63 int at_least_space_for); 68 int at_least_space_for);
64 69
65 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary( 70 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary(
66 int at_least_space_for); 71 int at_least_space_for);
67 72
68 Handle<NameDictionary> NewNameDictionary(int at_least_space_for); 73 Handle<NameDictionary> NewNameDictionary(int at_least_space_for);
69 74
70 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for); 75 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for);
71 76
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 271
267 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 272 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
268 273
269 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, 274 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array,
270 int new_length, 275 int new_length,
271 PretenureFlag pretenure = NOT_TENURED); 276 PretenureFlag pretenure = NOT_TENURED);
272 277
273 Handle<FixedDoubleArray> CopyFixedDoubleArray( 278 Handle<FixedDoubleArray> CopyFixedDoubleArray(
274 Handle<FixedDoubleArray> array); 279 Handle<FixedDoubleArray> array);
275 280
281 Handle<ConstantPoolArray> CopyConstantPoolArray(
282 Handle<ConstantPoolArray> array);
283
276 // Numbers (e.g. literals) are pretenured by the parser. 284 // Numbers (e.g. literals) are pretenured by the parser.
277 Handle<Object> NewNumber(double value, 285 Handle<Object> NewNumber(double value,
278 PretenureFlag pretenure = NOT_TENURED); 286 PretenureFlag pretenure = NOT_TENURED);
279 287
280 Handle<Object> NewNumberFromInt(int32_t value, 288 Handle<Object> NewNumberFromInt(int32_t value,
281 PretenureFlag pretenure = NOT_TENURED); 289 PretenureFlag pretenure = NOT_TENURED);
282 Handle<Object> NewNumberFromUint(uint32_t value, 290 Handle<Object> NewNumberFromUint(uint32_t value,
283 PretenureFlag pretenure = NOT_TENURED); 291 PretenureFlag pretenure = NOT_TENURED);
284 inline Handle<Object> NewNumberFromSize(size_t value, 292 inline Handle<Object> NewNumberFromSize(size_t value,
285 PretenureFlag pretenure = NOT_TENURED); 293 PretenureFlag pretenure = NOT_TENURED);
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 } 672 }
665 673
666 private: 674 private:
667 Isolate* isolate_; 675 Isolate* isolate_;
668 }; 676 };
669 677
670 678
671 } } // namespace v8::internal 679 } } // namespace v8::internal
672 680
673 #endif // V8_FACTORY_H_ 681 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698