| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 F(DefineClassGetter, 3, 1) \ | 192 F(DefineClassGetter, 3, 1) \ |
| 193 F(DefineClassSetter, 3, 1) \ | 193 F(DefineClassSetter, 3, 1) \ |
| 194 F(ClassGetSourceCode, 1, 1) \ | 194 F(ClassGetSourceCode, 1, 1) \ |
| 195 F(ThrowNonMethodError, 0, 1) \ | 195 F(ThrowNonMethodError, 0, 1) \ |
| 196 F(ThrowUnsupportedSuperError, 0, 1) \ | 196 F(ThrowUnsupportedSuperError, 0, 1) \ |
| 197 F(LoadFromSuper, 3, 1) \ | 197 F(LoadFromSuper, 3, 1) \ |
| 198 F(LoadKeyedFromSuper, 3, 1) \ | 198 F(LoadKeyedFromSuper, 3, 1) \ |
| 199 F(StoreToSuper_Strict, 4, 1) \ | 199 F(StoreToSuper_Strict, 4, 1) \ |
| 200 F(StoreToSuper_Sloppy, 4, 1) \ | 200 F(StoreToSuper_Sloppy, 4, 1) \ |
| 201 F(StoreKeyedToSuper_Strict, 4, 1) \ | 201 F(StoreKeyedToSuper_Strict, 4, 1) \ |
| 202 F(StoreKeyedToSuper_Sloppy, 4, 1) \ | 202 F(StoreKeyedToSuper_Sloppy, 4, 1) |
| 203 F(DefaultConstructorSuperCall, 0, 1) | |
| 204 | 203 |
| 205 | 204 |
| 206 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 205 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
| 207 /* Reflection */ \ | 206 /* Reflection */ \ |
| 208 F(FunctionSetInstanceClassName, 2, 1) \ | 207 F(FunctionSetInstanceClassName, 2, 1) \ |
| 209 F(FunctionSetLength, 2, 1) \ | 208 F(FunctionSetLength, 2, 1) \ |
| 210 F(FunctionSetPrototype, 2, 1) \ | 209 F(FunctionSetPrototype, 2, 1) \ |
| 211 F(FunctionGetName, 1, 1) \ | 210 F(FunctionGetName, 1, 1) \ |
| 212 F(FunctionSetName, 2, 1) \ | 211 F(FunctionSetName, 2, 1) \ |
| 213 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ | 212 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 821 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 823 Handle<Object> value, StrictMode strict_mode); | 822 Handle<Object> value, StrictMode strict_mode); |
| 824 | 823 |
| 825 MUST_USE_RESULT static MaybeHandle<Object> DefineObjectProperty( | 824 MUST_USE_RESULT static MaybeHandle<Object> DefineObjectProperty( |
| 826 Handle<JSObject> object, Handle<Object> key, Handle<Object> value, | 825 Handle<JSObject> object, Handle<Object> key, Handle<Object> value, |
| 827 PropertyAttributes attr); | 826 PropertyAttributes attr); |
| 828 | 827 |
| 829 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 828 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
| 830 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 829 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
| 831 | 830 |
| 832 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | |
| 833 Isolate* isolate, Handle<Object> object); | |
| 834 | |
| 835 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | 831 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 836 Handle<Object> key); | 832 Handle<Object> key); |
| 837 | 833 |
| 838 static void SetupArrayBuffer(Isolate* isolate, | 834 static void SetupArrayBuffer(Isolate* isolate, |
| 839 Handle<JSArrayBuffer> array_buffer, | 835 Handle<JSArrayBuffer> array_buffer, |
| 840 bool is_external, void* data, | 836 bool is_external, void* data, |
| 841 size_t allocated_length); | 837 size_t allocated_length); |
| 842 | 838 |
| 843 static bool SetupArrayBufferAllocatingData(Isolate* isolate, | 839 static bool SetupArrayBufferAllocatingData(Isolate* isolate, |
| 844 Handle<JSArrayBuffer> array_buffer, | 840 Handle<JSArrayBuffer> array_buffer, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 884 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
| 889 | 885 |
| 890 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 886 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 891 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 887 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 892 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 888 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
| 893 | 889 |
| 894 } // namespace internal | 890 } // namespace internal |
| 895 } // namespace v8 | 891 } // namespace v8 |
| 896 | 892 |
| 897 #endif // V8_RUNTIME_RUNTIME_H_ | 893 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |