OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_BUILTINS_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_BUILTINS_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/builtins/builtins-definitions.h" | 9 #include "src/builtins/builtins-definitions.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 static void Generate_InterpreterPushArgsAndConstructImpl( | 129 static void Generate_InterpreterPushArgsAndConstructImpl( |
130 MacroAssembler* masm, InterpreterPushArgsMode mode); | 130 MacroAssembler* masm, InterpreterPushArgsMode mode); |
131 | 131 |
132 #define DECLARE_ASM(Name, ...) \ | 132 #define DECLARE_ASM(Name, ...) \ |
133 static void Generate_##Name(MacroAssembler* masm); | 133 static void Generate_##Name(MacroAssembler* masm); |
134 #define DECLARE_TF(Name, ...) \ | 134 #define DECLARE_TF(Name, ...) \ |
135 static void Generate_##Name(compiler::CodeAssemblerState* state); | 135 static void Generate_##Name(compiler::CodeAssemblerState* state); |
136 | 136 |
137 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TF, DECLARE_TF, | 137 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TF, DECLARE_TF, |
138 DECLARE_TF, DECLARE_ASM, DECLARE_ASM) | 138 DECLARE_TF, DECLARE_TF, DECLARE_ASM, DECLARE_ASM) |
139 | 139 |
140 #undef DECLARE_ASM | 140 #undef DECLARE_ASM |
141 #undef DECLARE_TF | 141 #undef DECLARE_TF |
142 | 142 |
143 // Note: These are always Code objects, but to conform with | 143 // Note: These are always Code objects, but to conform with |
144 // IterateBuiltins() above which assumes Object**'s for the callback | 144 // IterateBuiltins() above which assumes Object**'s for the callback |
145 // function f, we use an Object* array here. | 145 // function f, we use an Object* array here. |
146 Object* builtins_[builtin_count]; | 146 Object* builtins_[builtin_count]; |
147 bool initialized_; | 147 bool initialized_; |
148 | 148 |
149 friend class Isolate; | 149 friend class Isolate; |
150 friend class SetupIsolateDelegate; | 150 friend class SetupIsolateDelegate; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(Builtins); | 152 DISALLOW_COPY_AND_ASSIGN(Builtins); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace internal | 155 } // namespace internal |
156 } // namespace v8 | 156 } // namespace v8 |
157 | 157 |
158 #endif // V8_BUILTINS_BUILTINS_H_ | 158 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |