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

Side by Side Diff: src/factory.h

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 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
« no previous file with comments | « src/crankshaft/hydrogen.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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); 89 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2);
90 90
91 // Create a new Tuple3 struct. 91 // Create a new Tuple3 struct.
92 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, 92 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2,
93 Handle<Object> value3); 93 Handle<Object> value3);
94 94
95 // Create a new ContextExtension struct. 95 // Create a new ContextExtension struct.
96 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, 96 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info,
97 Handle<Object> extension); 97 Handle<Object> extension);
98 98
99 // Create a new ConstantElementsPair struct.
100 Handle<ConstantElementsPair> NewConstantElementsPair(
101 ElementsKind elements_kind, Handle<FixedArrayBase> constant_values);
102
99 // Create a pre-tenured empty AccessorPair. 103 // Create a pre-tenured empty AccessorPair.
100 Handle<AccessorPair> NewAccessorPair(); 104 Handle<AccessorPair> NewAccessorPair();
101 105
102 // Create an empty TypeFeedbackInfo. 106 // Create an empty TypeFeedbackInfo.
103 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); 107 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo();
104 108
105 // Finds the internalized copy for string in the string table. 109 // Finds the internalized copy for string in the string table.
106 // If not found, a new string is added to the table and returned. 110 // If not found, a new string is added to the table and returned.
107 Handle<String> InternalizeUtf8String(Vector<const char> str); 111 Handle<String> InternalizeUtf8String(Vector<const char> str);
108 Handle<String> InternalizeUtf8String(const char* str) { 112 Handle<String> InternalizeUtf8String(const char* str) {
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 807 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
804 FunctionMode function_mode); 808 FunctionMode function_mode);
805 809
806 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 810 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
807 }; 811 };
808 812
809 } // namespace internal 813 } // namespace internal
810 } // namespace v8 814 } // namespace v8
811 815
812 #endif // V8_FACTORY_H_ 816 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698