| 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 // Support getting the characters in a string using [] notation as | 816 // Support getting the characters in a string using [] notation as |
| 817 // in Firefox/SpiderMonkey, Safari and Opera. | 817 // in Firefox/SpiderMonkey, Safari and Opera. |
| 818 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | 818 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
| 819 Isolate* isolate, Handle<Object> object, uint32_t index); | 819 Isolate* isolate, Handle<Object> object, uint32_t index); |
| 820 | 820 |
| 821 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 821 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
| 822 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 822 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 823 Handle<Object> value, LanguageMode language_mode); | 823 Handle<Object> value, LanguageMode language_mode); |
| 824 | 824 |
| 825 MUST_USE_RESULT static MaybeHandle<Object> DefineObjectProperty( | |
| 826 Handle<JSObject> object, Handle<Object> key, Handle<Object> value, | |
| 827 PropertyAttributes attr, | |
| 828 JSObject::ExecutableAccessorInfoHandling handling = | |
| 829 JSObject::DEFAULT_HANDLING); | |
| 830 | |
| 831 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 825 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
| 832 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 826 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
| 833 | 827 |
| 834 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | 828 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( |
| 835 Isolate* isolate, Handle<Object> object); | 829 Isolate* isolate, Handle<Object> object); |
| 836 | 830 |
| 837 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | 831 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 838 Handle<Object> key); | 832 Handle<Object> key); |
| 839 | 833 |
| 840 static void SetupArrayBuffer(Isolate* isolate, | 834 static void SetupArrayBuffer(Isolate* isolate, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 925 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 932 return size == 1 || size == 2 || size == 4; | 926 return size == 1 || size == 2 || size == 4; |
| 933 } | 927 } |
| 934 | 928 |
| 935 #endif | 929 #endif |
| 936 | 930 |
| 937 } // namespace internal | 931 } // namespace internal |
| 938 } // namespace v8 | 932 } // namespace v8 |
| 939 | 933 |
| 940 #endif // V8_RUNTIME_RUNTIME_H_ | 934 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |