OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
11 #include "src/base/platform/time.h" | 11 #include "src/base/platform/time.h" |
| 12 #include "src/globals.h" |
12 #include "src/objects.h" | 13 #include "src/objects.h" |
13 #include "src/unicode.h" | 14 #include "src/unicode.h" |
14 #include "src/zone/zone.h" | 15 #include "src/zone/zone.h" |
15 | 16 |
16 namespace v8 { | 17 namespace v8 { |
17 namespace internal { | 18 namespace internal { |
18 | 19 |
19 // * Each intrinsic is consistently exposed in JavaScript via 2 names: | 20 // * Each intrinsic is consistently exposed in JavaScript via 2 names: |
20 // * %#name, which is always a runtime call. | 21 // * %#name, which is always a runtime call. |
21 // * %_#name, which can be inlined or just a runtime call, the compiler in | 22 // * %_#name, which can be inlined or just a runtime call, the compiler in |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 // Size of result. Most functions return a single pointer, size 1. | 1039 // Size of result. Most functions return a single pointer, size 1. |
1039 int8_t result_size; | 1040 int8_t result_size; |
1040 }; | 1041 }; |
1041 | 1042 |
1042 static const int kNotFound = -1; | 1043 static const int kNotFound = -1; |
1043 | 1044 |
1044 // Get the intrinsic function with the given name. | 1045 // Get the intrinsic function with the given name. |
1045 static const Function* FunctionForName(const unsigned char* name, int length); | 1046 static const Function* FunctionForName(const unsigned char* name, int length); |
1046 | 1047 |
1047 // Get the intrinsic function with the given FunctionId. | 1048 // Get the intrinsic function with the given FunctionId. |
1048 static const Function* FunctionForId(FunctionId id); | 1049 V8_EXPORT_PRIVATE static const Function* FunctionForId(FunctionId id); |
1049 | 1050 |
1050 // Get the intrinsic function with the given function entry address. | 1051 // Get the intrinsic function with the given function entry address. |
1051 static const Function* FunctionForEntry(Address ref); | 1052 static const Function* FunctionForEntry(Address ref); |
1052 | 1053 |
1053 // Get the runtime intrinsic function table. | 1054 // Get the runtime intrinsic function table. |
1054 static const Function* RuntimeFunctionTable(Isolate* isolate); | 1055 static const Function* RuntimeFunctionTable(Isolate* isolate); |
1055 | 1056 |
1056 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( | 1057 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( |
1057 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, | 1058 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
1058 LanguageMode language_mode); | 1059 LanguageMode language_mode); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 | 1132 |
1132 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1133 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1133 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1134 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1134 STATIC_ASSERT(LANGUAGE_END == 2); | 1135 STATIC_ASSERT(LANGUAGE_END == 2); |
1135 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 1136 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; |
1136 | 1137 |
1137 } // namespace internal | 1138 } // namespace internal |
1138 } // namespace v8 | 1139 } // namespace v8 |
1139 | 1140 |
1140 #endif // V8_RUNTIME_RUNTIME_H_ | 1141 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |