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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 static void Generate_InterpreterPushArgsAndConstructImpl( | 127 static void Generate_InterpreterPushArgsAndConstructImpl( |
128 MacroAssembler* masm, InterpreterPushArgsMode mode); | 128 MacroAssembler* masm, InterpreterPushArgsMode mode); |
129 | 129 |
130 #define DECLARE_ASM(Name, ...) \ | 130 #define DECLARE_ASM(Name, ...) \ |
131 static void Generate_##Name(MacroAssembler* masm); | 131 static void Generate_##Name(MacroAssembler* masm); |
132 #define DECLARE_TF(Name, ...) \ | 132 #define DECLARE_TF(Name, ...) \ |
133 static void Generate_##Name(compiler::CodeAssemblerState* state); | 133 static void Generate_##Name(compiler::CodeAssemblerState* state); |
134 | 134 |
135 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TF, DECLARE_TF, | 135 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TF, DECLARE_TF, |
136 DECLARE_TF, DECLARE_ASM, DECLARE_ASM) | 136 DECLARE_TF, DECLARE_TF, DECLARE_ASM, DECLARE_ASM) |
137 | 137 |
138 #undef DECLARE_ASM | 138 #undef DECLARE_ASM |
139 #undef DECLARE_TF | 139 #undef DECLARE_TF |
140 | 140 |
141 // Note: These are always Code objects, but to conform with | 141 // Note: These are always Code objects, but to conform with |
142 // IterateBuiltins() above which assumes Object**'s for the callback | 142 // IterateBuiltins() above which assumes Object**'s for the callback |
143 // function f, we use an Object* array here. | 143 // function f, we use an Object* array here. |
144 Object* builtins_[builtin_count]; | 144 Object* builtins_[builtin_count]; |
145 bool initialized_; | 145 bool initialized_; |
146 | 146 |
147 friend class Isolate; | 147 friend class Isolate; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(Builtins); | 149 DISALLOW_COPY_AND_ASSIGN(Builtins); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace internal | 152 } // namespace internal |
153 } // namespace v8 | 153 } // namespace v8 |
154 | 154 |
155 #endif // V8_BUILTINS_BUILTINS_H_ | 155 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |