| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |