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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 | 815 |
816 // TODO(1240886): Some of the following methods are *not* handle safe, but | 816 // TODO(1240886): Some of the following methods are *not* handle safe, but |
817 // accept handle arguments. This seems fragile. | 817 // accept handle arguments. This seems fragile. |
818 | 818 |
819 // Support getting the characters in a string using [] notation as | 819 // Support getting the characters in a string using [] notation as |
820 // in Firefox/SpiderMonkey, Safari and Opera. | 820 // in Firefox/SpiderMonkey, Safari and Opera. |
821 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | 821 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
822 Isolate* isolate, Handle<Object> object, uint32_t index, | 822 Isolate* isolate, Handle<Object> object, uint32_t index, |
823 LanguageMode language_mode = SLOPPY); | 823 LanguageMode language_mode = SLOPPY); |
824 | 824 |
| 825 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( |
| 826 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
| 827 LanguageMode language_mode); |
| 828 |
825 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 829 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
826 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 830 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
827 Handle<Object> value, LanguageMode language_mode); | 831 Handle<Object> value, LanguageMode language_mode); |
828 | 832 |
829 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 833 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
830 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 834 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
831 LanguageMode language_mode = SLOPPY); | 835 LanguageMode language_mode = SLOPPY); |
832 | 836 |
833 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( | 837 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( |
834 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, | 838 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 940 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
937 return size == 1 || size == 2 || size == 4; | 941 return size == 1 || size == 2 || size == 4; |
938 } | 942 } |
939 | 943 |
940 #endif | 944 #endif |
941 | 945 |
942 } // namespace internal | 946 } // namespace internal |
943 } // namespace v8 | 947 } // namespace v8 |
944 | 948 |
945 #endif // V8_RUNTIME_RUNTIME_H_ | 949 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |