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

Side by Side Diff: src/factory.h

Issue 2632503003: [runtime] Allocate space for computed property names (Closed)
Patch Set: Comments and reorder. Created 3 years, 11 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
« no previous file with comments | « src/compiler/js-native-context-specialization.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 30 matching lines...) Expand all
41 int size, PretenureFlag pretenure = NOT_TENURED); 41 int size, PretenureFlag pretenure = NOT_TENURED);
42 42
43 // Allocate a new fixed array with non-existing entries (the hole). 43 // Allocate a new fixed array with non-existing entries (the hole).
44 Handle<FixedArray> NewFixedArrayWithHoles( 44 Handle<FixedArray> NewFixedArrayWithHoles(
45 int size, 45 int size,
46 PretenureFlag pretenure = NOT_TENURED); 46 PretenureFlag pretenure = NOT_TENURED);
47 47
48 // Allocates an uninitialized fixed array. It must be filled by the caller. 48 // Allocates an uninitialized fixed array. It must be filled by the caller.
49 Handle<FixedArray> NewUninitializedFixedArray(int size); 49 Handle<FixedArray> NewUninitializedFixedArray(int size);
50 50
51 // Allocates a fixed array for name-value pairs of boilerplate properties and
52 // calculates the number of properties we need to store in the backing store.
53 Handle<BoilerplateDescription> NewBoilerplateDescription(int boilerplate,
54 int all_properties,
55 bool has_seen_proto);
56
51 // Allocate a new uninitialized fixed double array. 57 // Allocate a new uninitialized fixed double array.
52 // The function returns a pre-allocated empty fixed array for capacity = 0, 58 // The function returns a pre-allocated empty fixed array for capacity = 0,
53 // so the return type must be the general fixed array class. 59 // so the return type must be the general fixed array class.
54 Handle<FixedArrayBase> NewFixedDoubleArray( 60 Handle<FixedArrayBase> NewFixedDoubleArray(
55 int size, 61 int size,
56 PretenureFlag pretenure = NOT_TENURED); 62 PretenureFlag pretenure = NOT_TENURED);
57 63
58 // Allocate a new fixed double array with hole values. 64 // Allocate a new fixed double array with hole values.
59 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles( 65 Handle<FixedArrayBase> NewFixedDoubleArrayWithHoles(
60 int size, 66 int size,
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 817 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
812 FunctionMode function_mode); 818 FunctionMode function_mode);
813 819
814 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 820 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
815 }; 821 };
816 822
817 } // namespace internal 823 } // namespace internal
818 } // namespace v8 824 } // namespace v8
819 825
820 #endif // V8_FACTORY_H_ 826 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698