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

Side by Side Diff: src/factory.h

Issue 2651533002: [ast] Simplify NewBoilerplateDescription. (Closed)
Patch Set: Fix DCHECK. 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/ast/ast.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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. 52 // calculates the number of properties we need to store in the backing store.
53 Handle<BoilerplateDescription> NewBoilerplateDescription(int boilerplate, 53 Handle<BoilerplateDescription> NewBoilerplateDescription(int boilerplate,
54 int all_properties, 54 int all_properties,
55 int index_keys,
55 bool has_seen_proto); 56 bool has_seen_proto);
56 57
57 // Allocate a new uninitialized fixed double array. 58 // Allocate a new uninitialized fixed double array.
58 // The function returns a pre-allocated empty fixed array for capacity = 0, 59 // The function returns a pre-allocated empty fixed array for capacity = 0,
59 // so the return type must be the general fixed array class. 60 // so the return type must be the general fixed array class.
60 Handle<FixedArrayBase> NewFixedDoubleArray( 61 Handle<FixedArrayBase> NewFixedDoubleArray(
61 int size, 62 int size,
62 PretenureFlag pretenure = NOT_TENURED); 63 PretenureFlag pretenure = NOT_TENURED);
63 64
64 // Allocate a new fixed double array with hole values. 65 // Allocate a new fixed double array with hole values.
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 823 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
823 FunctionMode function_mode); 824 FunctionMode function_mode);
824 825
825 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 826 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
826 }; 827 };
827 828
828 } // namespace internal 829 } // namespace internal
829 } // namespace v8 830 } // namespace v8
830 831
831 #endif // V8_FACTORY_H_ 832 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast/ast.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698