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_H_ | 5 #ifndef V8_RUNTIME_H_ |
6 #define V8_RUNTIME_H_ | 6 #define V8_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 172 matching lines...) Loading... |
183 F(NumberToExponential, 2, 1) \ | 183 F(NumberToExponential, 2, 1) \ |
184 F(NumberToPrecision, 2, 1) \ | 184 F(NumberToPrecision, 2, 1) \ |
185 F(IsValidSmi, 1, 1) \ | 185 F(IsValidSmi, 1, 1) \ |
186 \ | 186 \ |
187 /* Classes support */ \ | 187 /* Classes support */ \ |
188 F(ToMethod, 2, 1) \ | 188 F(ToMethod, 2, 1) \ |
189 F(HomeObjectSymbol, 0, 1) \ | 189 F(HomeObjectSymbol, 0, 1) \ |
190 F(ThrowNonMethodError, 0, 1) \ | 190 F(ThrowNonMethodError, 0, 1) \ |
191 F(ThrowUnsupportedSuperError, 0, 1) \ | 191 F(ThrowUnsupportedSuperError, 0, 1) \ |
192 F(LoadFromSuper, 3, 1) \ | 192 F(LoadFromSuper, 3, 1) \ |
| 193 F(LoadKeyedFromSuper, 3, 1) \ |
193 F(StoreToSuper_Strict, 4, 1) \ | 194 F(StoreToSuper_Strict, 4, 1) \ |
194 F(StoreToSuper_Sloppy, 4, 1) | 195 F(StoreToSuper_Sloppy, 4, 1) |
195 | 196 |
196 | 197 |
197 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 198 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
198 /* Reflection */ \ | 199 /* Reflection */ \ |
199 F(FunctionSetInstanceClassName, 2, 1) \ | 200 F(FunctionSetInstanceClassName, 2, 1) \ |
200 F(FunctionSetLength, 2, 1) \ | 201 F(FunctionSetLength, 2, 1) \ |
201 F(FunctionSetPrototype, 2, 1) \ | 202 F(FunctionSetPrototype, 2, 1) \ |
202 F(FunctionGetName, 1, 1) \ | 203 F(FunctionGetName, 1, 1) \ |
(...skipping 642 matching lines...) Loading... |
845 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( | 846 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( |
846 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key, | 847 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key, |
847 JSReceiver::DeleteMode mode); | 848 JSReceiver::DeleteMode mode); |
848 | 849 |
849 MUST_USE_RESULT static MaybeHandle<Object> HasObjectProperty( | 850 MUST_USE_RESULT static MaybeHandle<Object> HasObjectProperty( |
850 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key); | 851 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key); |
851 | 852 |
852 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 853 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
853 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 854 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
854 | 855 |
| 856 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 857 Handle<Object> key); |
| 858 |
855 static void SetupArrayBuffer(Isolate* isolate, | 859 static void SetupArrayBuffer(Isolate* isolate, |
856 Handle<JSArrayBuffer> array_buffer, | 860 Handle<JSArrayBuffer> array_buffer, |
857 bool is_external, void* data, | 861 bool is_external, void* data, |
858 size_t allocated_length); | 862 size_t allocated_length); |
859 | 863 |
860 static bool SetupArrayBufferAllocatingData(Isolate* isolate, | 864 static bool SetupArrayBufferAllocatingData(Isolate* isolate, |
861 Handle<JSArrayBuffer> array_buffer, | 865 Handle<JSArrayBuffer> array_buffer, |
862 size_t allocated_length, | 866 size_t allocated_length, |
863 bool initialize = true); | 867 bool initialize = true); |
864 | 868 |
(...skipping 35 matching lines...) Loading... |
900 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 904 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
901 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 905 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
902 | 906 |
903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 907 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 908 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
905 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 909 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
906 } | 910 } |
907 } // namespace v8::internal | 911 } // namespace v8::internal |
908 | 912 |
909 #endif // V8_RUNTIME_H_ | 913 #endif // V8_RUNTIME_H_ |
OLD | NEW |