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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 static const Function* FunctionForEntry(Address ref); | 813 static const Function* FunctionForEntry(Address ref); |
814 | 814 |
815 // TODO(1240886): Some of the following methods are *not* handle safe, but | 815 // TODO(1240886): Some of the following methods are *not* handle safe, but |
816 // accept handle arguments. This seems fragile. | 816 // accept handle arguments. This seems fragile. |
817 | 817 |
818 // Support getting the characters in a string using [] notation as | 818 // Support getting the characters in a string using [] notation as |
819 // in Firefox/SpiderMonkey, Safari and Opera. | 819 // in Firefox/SpiderMonkey, Safari and Opera. |
820 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | 820 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
821 Isolate* isolate, Handle<Object> object, uint32_t index); | 821 Isolate* isolate, Handle<Object> object, uint32_t index); |
822 | 822 |
| 823 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( |
| 824 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
| 825 LanguageMode language_mode); |
| 826 |
823 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 827 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
824 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 828 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
825 Handle<Object> value, LanguageMode language_mode); | 829 Handle<Object> value, LanguageMode language_mode); |
826 | 830 |
827 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 831 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
828 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 832 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
829 | 833 |
830 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | 834 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( |
831 Isolate* isolate, Handle<Object> object); | 835 Isolate* isolate, Handle<Object> object); |
832 | 836 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 933 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
930 return size == 1 || size == 2 || size == 4; | 934 return size == 1 || size == 2 || size == 4; |
931 } | 935 } |
932 | 936 |
933 #endif | 937 #endif |
934 | 938 |
935 } // namespace internal | 939 } // namespace internal |
936 } // namespace v8 | 940 } // namespace v8 |
937 | 941 |
938 #endif // V8_RUNTIME_RUNTIME_H_ | 942 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |