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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/platform/time.h" | 9 #include "src/base/platform/time.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 F(GetHoleNaNUpper, 0, 1) \ | 377 F(GetHoleNaNUpper, 0, 1) \ |
378 F(GetHoleNaNLower, 0, 1) | 378 F(GetHoleNaNLower, 0, 1) |
379 | 379 |
380 #define FOR_EACH_INTRINSIC_OBJECT(F) \ | 380 #define FOR_EACH_INTRINSIC_OBJECT(F) \ |
381 F(GetPrototype, 1, 1) \ | 381 F(GetPrototype, 1, 1) \ |
382 F(ObjectHasOwnProperty, 2, 1) \ | 382 F(ObjectHasOwnProperty, 2, 1) \ |
383 F(InternalSetPrototype, 2, 1) \ | 383 F(InternalSetPrototype, 2, 1) \ |
384 F(SetPrototype, 2, 1) \ | 384 F(SetPrototype, 2, 1) \ |
385 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 385 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
386 F(GetProperty, 2, 1) \ | 386 F(GetProperty, 2, 1) \ |
387 F(GetGlobal, 1, 1) \ | 387 F(GetGlobalInsideTypeof, 1, 1) \ |
| 388 F(GetGlobalNotInsideTypeof, 1, 1) \ |
388 F(KeyedGetProperty, 2, 1) \ | 389 F(KeyedGetProperty, 2, 1) \ |
389 F(StoreGlobalViaContext_Sloppy, 2, 1) \ | 390 F(StoreGlobalViaContext_Sloppy, 2, 1) \ |
390 F(StoreGlobalViaContext_Strict, 2, 1) \ | 391 F(StoreGlobalViaContext_Strict, 2, 1) \ |
391 F(AddNamedProperty, 4, 1) \ | 392 F(AddNamedProperty, 4, 1) \ |
392 F(SetProperty, 4, 1) \ | 393 F(SetProperty, 4, 1) \ |
393 F(AddElement, 3, 1) \ | 394 F(AddElement, 3, 1) \ |
394 F(AppendElement, 2, 1) \ | 395 F(AppendElement, 2, 1) \ |
395 F(DeleteProperty_Sloppy, 2, 1) \ | 396 F(DeleteProperty_Sloppy, 2, 1) \ |
396 F(DeleteProperty_Strict, 2, 1) \ | 397 F(DeleteProperty_Strict, 2, 1) \ |
397 F(HasProperty, 2, 1) \ | 398 F(HasProperty, 2, 1) \ |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 | 1067 |
1067 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( | 1068 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( |
1068 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, | 1069 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
1069 LanguageMode language_mode); | 1070 LanguageMode language_mode); |
1070 | 1071 |
1071 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 1072 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
1072 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1073 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1073 Handle<Object> value, LanguageMode language_mode); | 1074 Handle<Object> value, LanguageMode language_mode); |
1074 | 1075 |
1075 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 1076 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
1076 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 1077 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 1078 bool should_throw_reference_error = false); |
1077 | 1079 |
1078 enum TypedArrayId { | 1080 enum TypedArrayId { |
1079 // arrayIds below should be synchronized with typedarray.js natives. | 1081 // arrayIds below should be synchronized with typedarray.js natives. |
1080 ARRAY_ID_UINT8 = 1, | 1082 ARRAY_ID_UINT8 = 1, |
1081 ARRAY_ID_INT8 = 2, | 1083 ARRAY_ID_INT8 = 2, |
1082 ARRAY_ID_UINT16 = 3, | 1084 ARRAY_ID_UINT16 = 3, |
1083 ARRAY_ID_INT16 = 4, | 1085 ARRAY_ID_INT16 = 4, |
1084 ARRAY_ID_UINT32 = 5, | 1086 ARRAY_ID_UINT32 = 5, |
1085 ARRAY_ID_INT32 = 6, | 1087 ARRAY_ID_INT32 = 6, |
1086 ARRAY_ID_FLOAT32 = 7, | 1088 ARRAY_ID_FLOAT32 = 7, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 | 1144 |
1143 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1145 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1144 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1146 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1145 STATIC_ASSERT(LANGUAGE_END == 3); | 1147 STATIC_ASSERT(LANGUAGE_END == 3); |
1146 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1148 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1147 | 1149 |
1148 } // namespace internal | 1150 } // namespace internal |
1149 } // namespace v8 | 1151 } // namespace v8 |
1150 | 1152 |
1151 #endif // V8_RUNTIME_RUNTIME_H_ | 1153 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |