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

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

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 6 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 | « no previous file | src/builtins/builtins-array-gen.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // during the marking phase of mark sweep. See IC::Clear. 71 // during the marking phase of mark sweep. See IC::Clear.
72 return reinterpret_cast<Code*>(builtins_[name]); 72 return reinterpret_cast<Code*>(builtins_[name]);
73 } 73 }
74 74
75 Address builtin_address(Name name) { 75 Address builtin_address(Name name) {
76 return reinterpret_cast<Address>(&builtins_[name]); 76 return reinterpret_cast<Address>(&builtins_[name]);
77 } 77 }
78 78
79 static int GetBuiltinParameterCount(Name name); 79 static int GetBuiltinParameterCount(Name name);
80 80
81 static Callable CallableFor(Isolate* isolate, Name name); 81 V8_EXPORT_PRIVATE static Callable CallableFor(Isolate* isolate, Name name);
82 82
83 static const char* name(int index); 83 static const char* name(int index);
84 84
85 // Returns the C++ entry point for builtins implemented in C++, and the null 85 // Returns the C++ entry point for builtins implemented in C++, and the null
86 // Address otherwise. 86 // Address otherwise.
87 static Address CppEntryOf(int index); 87 static Address CppEntryOf(int index);
88 88
89 static bool IsCpp(int index); 89 static bool IsCpp(int index);
90 static bool IsApi(int index); 90 static bool IsApi(int index);
91 static bool HasCppImplementation(int index); 91 static bool HasCppImplementation(int index);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 friend class Isolate; 153 friend class Isolate;
154 friend class SetupIsolateDelegate; 154 friend class SetupIsolateDelegate;
155 155
156 DISALLOW_COPY_AND_ASSIGN(Builtins); 156 DISALLOW_COPY_AND_ASSIGN(Builtins);
157 }; 157 };
158 158
159 } // namespace internal 159 } // namespace internal
160 } // namespace v8 160 } // namespace v8
161 161
162 #endif // V8_BUILTINS_BUILTINS_H_ 162 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-array-gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698