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

Side by Side Diff: src/builtins/builtins.h

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 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/arm64/interface-descriptors-arm64.cc ('k') | src/builtins/builtins.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 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
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_
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698