| 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/objects.h" | 9 #include "src/objects.h" |
| 10 #include "src/zone.h" | 10 #include "src/zone.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 F(ThrowUnsupportedSuperError, 0, 1) \ | 71 F(ThrowUnsupportedSuperError, 0, 1) \ |
| 72 F(ThrowConstructorNonCallableError, 0, 1) \ | 72 F(ThrowConstructorNonCallableError, 0, 1) \ |
| 73 F(ThrowArrayNotSubclassableError, 0, 1) \ | 73 F(ThrowArrayNotSubclassableError, 0, 1) \ |
| 74 F(ThrowStaticPrototypeError, 0, 1) \ | 74 F(ThrowStaticPrototypeError, 0, 1) \ |
| 75 F(ThrowIfStaticPrototype, 1, 1) \ | 75 F(ThrowIfStaticPrototype, 1, 1) \ |
| 76 F(ToMethod, 2, 1) \ | 76 F(ToMethod, 2, 1) \ |
| 77 F(HomeObjectSymbol, 0, 1) \ | 77 F(HomeObjectSymbol, 0, 1) \ |
| 78 F(DefineClass, 6, 1) \ | 78 F(DefineClass, 6, 1) \ |
| 79 F(DefineClassMethod, 3, 1) \ | 79 F(DefineClassMethod, 3, 1) \ |
| 80 F(ClassGetSourceCode, 1, 1) \ | 80 F(ClassGetSourceCode, 1, 1) \ |
| 81 F(LoadFromSuper, 3, 1) \ | 81 F(LoadFromSuper, 4, 1) \ |
| 82 F(LoadKeyedFromSuper, 3, 1) \ | 82 F(LoadKeyedFromSuper, 4, 1) \ |
| 83 F(StoreToSuper_Strict, 4, 1) \ | 83 F(StoreToSuper_Strict, 4, 1) \ |
| 84 F(StoreToSuper_Sloppy, 4, 1) \ | 84 F(StoreToSuper_Sloppy, 4, 1) \ |
| 85 F(StoreKeyedToSuper_Strict, 4, 1) \ | 85 F(StoreKeyedToSuper_Strict, 4, 1) \ |
| 86 F(StoreKeyedToSuper_Sloppy, 4, 1) \ | 86 F(StoreKeyedToSuper_Sloppy, 4, 1) \ |
| 87 F(HandleStepInForDerivedConstructors, 1, 1) \ | 87 F(HandleStepInForDerivedConstructors, 1, 1) \ |
| 88 F(DefaultConstructorCallSuper, 2, 1) \ | 88 F(DefaultConstructorCallSuper, 2, 1) \ |
| 89 F(CallSuperWithSpread, 1, 1) | 89 F(CallSuperWithSpread, 1, 1) |
| 90 | 90 |
| 91 | 91 |
| 92 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ | 92 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 F(IsInPrototypeChain, 2, 1) \ | 429 F(IsInPrototypeChain, 2, 1) \ |
| 430 F(GetOwnProperty, 2, 1) \ | 430 F(GetOwnProperty, 2, 1) \ |
| 431 F(PreventExtensions, 1, 1) \ | 431 F(PreventExtensions, 1, 1) \ |
| 432 F(IsExtensible, 1, 1) \ | 432 F(IsExtensible, 1, 1) \ |
| 433 F(DisableAccessChecks, 1, 1) \ | 433 F(DisableAccessChecks, 1, 1) \ |
| 434 F(EnableAccessChecks, 1, 1) \ | 434 F(EnableAccessChecks, 1, 1) \ |
| 435 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 435 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
| 436 F(ObjectFreeze, 1, 1) \ | 436 F(ObjectFreeze, 1, 1) \ |
| 437 F(ObjectSeal, 1, 1) \ | 437 F(ObjectSeal, 1, 1) \ |
| 438 F(GetProperty, 2, 1) \ | 438 F(GetProperty, 2, 1) \ |
| 439 F(GetPropertyStrong, 2, 1) \ |
| 439 F(KeyedGetProperty, 2, 1) \ | 440 F(KeyedGetProperty, 2, 1) \ |
| 441 F(KeyedGetPropertyStrong, 2, 1) \ |
| 440 F(AddNamedProperty, 4, 1) \ | 442 F(AddNamedProperty, 4, 1) \ |
| 441 F(SetProperty, 4, 1) \ | 443 F(SetProperty, 4, 1) \ |
| 442 F(AddElement, 3, 1) \ | 444 F(AddElement, 3, 1) \ |
| 443 F(AppendElement, 2, 1) \ | 445 F(AppendElement, 2, 1) \ |
| 444 F(DeleteProperty, 3, 1) \ | 446 F(DeleteProperty, 3, 1) \ |
| 445 F(HasOwnProperty, 2, 1) \ | 447 F(HasOwnProperty, 2, 1) \ |
| 446 F(HasProperty, 2, 1) \ | 448 F(HasProperty, 2, 1) \ |
| 447 F(HasElement, 2, 1) \ | 449 F(HasElement, 2, 1) \ |
| 448 F(IsPropertyEnumerable, 2, 1) \ | 450 F(IsPropertyEnumerable, 2, 1) \ |
| 449 F(GetPropertyNames, 1, 1) \ | 451 F(GetPropertyNames, 1, 1) \ |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 | 814 |
| 813 // Get the intrinsic function with the given function entry address. | 815 // Get the intrinsic function with the given function entry address. |
| 814 static const Function* FunctionForEntry(Address ref); | 816 static const Function* FunctionForEntry(Address ref); |
| 815 | 817 |
| 816 // TODO(1240886): Some of the following methods are *not* handle safe, but | 818 // TODO(1240886): Some of the following methods are *not* handle safe, but |
| 817 // accept handle arguments. This seems fragile. | 819 // accept handle arguments. This seems fragile. |
| 818 | 820 |
| 819 // Support getting the characters in a string using [] notation as | 821 // Support getting the characters in a string using [] notation as |
| 820 // in Firefox/SpiderMonkey, Safari and Opera. | 822 // in Firefox/SpiderMonkey, Safari and Opera. |
| 821 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | 823 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
| 822 Isolate* isolate, Handle<Object> object, uint32_t index); | 824 Isolate* isolate, Handle<Object> object, uint32_t index, |
| 825 LanguageMode language_mode = SLOPPY); |
| 823 | 826 |
| 824 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 827 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
| 825 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 828 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 826 Handle<Object> value, LanguageMode language_mode); | 829 Handle<Object> value, LanguageMode language_mode); |
| 827 | 830 |
| 828 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 831 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
| 829 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 832 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 833 LanguageMode language_mode = SLOPPY); |
| 834 |
| 835 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( |
| 836 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, |
| 837 LanguageMode language_mode); |
| 830 | 838 |
| 831 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | 839 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( |
| 832 Isolate* isolate, Handle<Object> object); | 840 Isolate* isolate, Handle<Object> object); |
| 833 | 841 |
| 834 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | 842 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 835 Handle<Object> key); | 843 Handle<Object> key); |
| 836 | 844 |
| 837 static void SetupArrayBuffer(Isolate* isolate, | 845 static void SetupArrayBuffer(Isolate* isolate, |
| 838 Handle<JSArrayBuffer> array_buffer, | 846 Handle<JSArrayBuffer> array_buffer, |
| 839 bool is_external, void* data, | 847 bool is_external, void* data, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 938 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 931 return size == 1 || size == 2 || size == 4; | 939 return size == 1 || size == 2 || size == 4; |
| 932 } | 940 } |
| 933 | 941 |
| 934 #endif | 942 #endif |
| 935 | 943 |
| 936 } // namespace internal | 944 } // namespace internal |
| 937 } // namespace v8 | 945 } // namespace v8 |
| 938 | 946 |
| 939 #endif // V8_RUNTIME_RUNTIME_H_ | 947 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |