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" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 F(GetHoleNaNUpper, 0, 1) \ | 365 F(GetHoleNaNUpper, 0, 1) \ |
366 F(GetHoleNaNLower, 0, 1) | 366 F(GetHoleNaNLower, 0, 1) |
367 | 367 |
368 #define FOR_EACH_INTRINSIC_OBJECT(F) \ | 368 #define FOR_EACH_INTRINSIC_OBJECT(F) \ |
369 F(GetPrototype, 1, 1) \ | 369 F(GetPrototype, 1, 1) \ |
370 F(ObjectHasOwnProperty, 2, 1) \ | 370 F(ObjectHasOwnProperty, 2, 1) \ |
371 F(InternalSetPrototype, 2, 1) \ | 371 F(InternalSetPrototype, 2, 1) \ |
372 F(SetPrototype, 2, 1) \ | 372 F(SetPrototype, 2, 1) \ |
373 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 373 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
374 F(GetProperty, 2, 1) \ | 374 F(GetProperty, 2, 1) \ |
375 F(GetGlobal, 3, 1) \ | |
376 F(KeyedGetProperty, 2, 1) \ | 375 F(KeyedGetProperty, 2, 1) \ |
377 F(StoreGlobalViaContext_Sloppy, 2, 1) \ | 376 F(StoreGlobalViaContext_Sloppy, 2, 1) \ |
378 F(StoreGlobalViaContext_Strict, 2, 1) \ | 377 F(StoreGlobalViaContext_Strict, 2, 1) \ |
379 F(AddNamedProperty, 4, 1) \ | 378 F(AddNamedProperty, 4, 1) \ |
380 F(SetProperty, 4, 1) \ | 379 F(SetProperty, 4, 1) \ |
381 F(AddElement, 3, 1) \ | 380 F(AddElement, 3, 1) \ |
382 F(AppendElement, 2, 1) \ | 381 F(AppendElement, 2, 1) \ |
383 F(DeleteProperty_Sloppy, 2, 1) \ | 382 F(DeleteProperty_Sloppy, 2, 1) \ |
384 F(DeleteProperty_Strict, 2, 1) \ | 383 F(DeleteProperty_Strict, 2, 1) \ |
385 F(HasProperty, 2, 1) \ | 384 F(HasProperty, 2, 1) \ |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 F(CallIC_Miss, 3, 1) \ | 933 F(CallIC_Miss, 3, 1) \ |
935 F(CompareIC_Miss, 3, 1) \ | 934 F(CompareIC_Miss, 3, 1) \ |
936 F(ElementsTransitionAndStoreIC_Miss, 5, 1) \ | 935 F(ElementsTransitionAndStoreIC_Miss, 5, 1) \ |
937 F(KeyedLoadIC_Miss, 4, 1) \ | 936 F(KeyedLoadIC_Miss, 4, 1) \ |
938 F(KeyedLoadIC_MissFromStubFailure, 4, 1) \ | 937 F(KeyedLoadIC_MissFromStubFailure, 4, 1) \ |
939 F(KeyedStoreIC_Miss, 5, 1) \ | 938 F(KeyedStoreIC_Miss, 5, 1) \ |
940 F(KeyedStoreIC_MissFromStubFailure, 5, 1) \ | 939 F(KeyedStoreIC_MissFromStubFailure, 5, 1) \ |
941 F(KeyedStoreIC_Slow, 5, 1) \ | 940 F(KeyedStoreIC_Slow, 5, 1) \ |
942 F(LoadElementWithInterceptor, 2, 1) \ | 941 F(LoadElementWithInterceptor, 2, 1) \ |
943 F(LoadGlobalIC_Miss, 2, 1) \ | 942 F(LoadGlobalIC_Miss, 2, 1) \ |
| 943 F(LoadGlobalIC_Slow, 2, 1) \ |
944 F(LoadIC_Miss, 4, 1) \ | 944 F(LoadIC_Miss, 4, 1) \ |
945 F(LoadIC_MissFromStubFailure, 4, 1) \ | 945 F(LoadIC_MissFromStubFailure, 4, 1) \ |
946 F(LoadPropertyWithInterceptor, 3, 1) \ | 946 F(LoadPropertyWithInterceptor, 3, 1) \ |
947 F(LoadPropertyWithInterceptorOnly, 3, 1) \ | 947 F(LoadPropertyWithInterceptorOnly, 3, 1) \ |
948 F(StoreCallbackProperty, 6, 1) \ | 948 F(StoreCallbackProperty, 6, 1) \ |
949 F(StoreIC_Miss, 5, 1) \ | 949 F(StoreIC_Miss, 5, 1) \ |
950 F(StoreIC_MissFromStubFailure, 5, 1) \ | 950 F(StoreIC_MissFromStubFailure, 5, 1) \ |
951 F(TransitionStoreIC_MissFromStubFailure, 6, 1) \ | 951 F(TransitionStoreIC_MissFromStubFailure, 6, 1) \ |
952 F(StorePropertyWithInterceptor, 3, 1) \ | 952 F(StorePropertyWithInterceptor, 3, 1) \ |
953 F(ToBooleanIC_Miss, 1, 1) \ | 953 F(ToBooleanIC_Miss, 1, 1) \ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( | 1056 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( |
1057 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, | 1057 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
1058 LanguageMode language_mode); | 1058 LanguageMode language_mode); |
1059 | 1059 |
1060 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 1060 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
1061 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1061 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1062 Handle<Object> value, LanguageMode language_mode); | 1062 Handle<Object> value, LanguageMode language_mode); |
1063 | 1063 |
1064 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 1064 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
1065 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1065 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1066 bool should_throw_reference_error = false); | 1066 bool* is_found_out = nullptr); |
1067 | 1067 |
1068 enum TypedArrayId { | 1068 enum TypedArrayId { |
1069 // arrayIds below should be synchronized with typedarray.js natives. | 1069 // arrayIds below should be synchronized with typedarray.js natives. |
1070 ARRAY_ID_UINT8 = 1, | 1070 ARRAY_ID_UINT8 = 1, |
1071 ARRAY_ID_INT8 = 2, | 1071 ARRAY_ID_INT8 = 2, |
1072 ARRAY_ID_UINT16 = 3, | 1072 ARRAY_ID_UINT16 = 3, |
1073 ARRAY_ID_INT16 = 4, | 1073 ARRAY_ID_INT16 = 4, |
1074 ARRAY_ID_UINT32 = 5, | 1074 ARRAY_ID_UINT32 = 5, |
1075 ARRAY_ID_INT32 = 6, | 1075 ARRAY_ID_INT32 = 6, |
1076 ARRAY_ID_FLOAT32 = 7, | 1076 ARRAY_ID_FLOAT32 = 7, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 | 1131 |
1132 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1132 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1133 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1133 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1134 STATIC_ASSERT(LANGUAGE_END == 3); | 1134 STATIC_ASSERT(LANGUAGE_END == 3); |
1135 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1135 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1136 | 1136 |
1137 } // namespace internal | 1137 } // namespace internal |
1138 } // namespace v8 | 1138 } // namespace v8 |
1139 | 1139 |
1140 #endif // V8_RUNTIME_RUNTIME_H_ | 1140 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |