| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 807 |
| 808 // Get the intrinsic function with the given name, which must be internalized. | 808 // Get the intrinsic function with the given name, which must be internalized. |
| 809 static const Function* FunctionForName(Handle<String> name); | 809 static const Function* FunctionForName(Handle<String> name); |
| 810 | 810 |
| 811 // Get the intrinsic function with the given FunctionId. | 811 // Get the intrinsic function with the given FunctionId. |
| 812 static const Function* FunctionForId(FunctionId id); | 812 static const Function* FunctionForId(FunctionId id); |
| 813 | 813 |
| 814 // Get the intrinsic function with the given function entry address. | 814 // Get the intrinsic function with the given function entry address. |
| 815 static const Function* FunctionForEntry(Address ref); | 815 static const Function* FunctionForEntry(Address ref); |
| 816 | 816 |
| 817 // TODO(1240886): Some of the following methods are *not* handle safe, but | |
| 818 // accept handle arguments. This seems fragile. | |
| 819 | |
| 820 // Support getting the characters in a string using [] notation as | |
| 821 // in Firefox/SpiderMonkey, Safari and Opera. | |
| 822 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | |
| 823 Isolate* isolate, Handle<Object> object, uint32_t index, | |
| 824 LanguageMode language_mode = SLOPPY); | |
| 825 | |
| 826 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( | 817 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( |
| 827 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, | 818 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
| 828 LanguageMode language_mode); | 819 LanguageMode language_mode); |
| 829 | 820 |
| 830 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 821 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
| 831 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 822 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 832 Handle<Object> value, LanguageMode language_mode); | 823 Handle<Object> value, LanguageMode language_mode); |
| 833 | 824 |
| 834 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 825 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
| 835 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 826 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 932 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 942 return size == 1 || size == 2 || size == 4; | 933 return size == 1 || size == 2 || size == 4; |
| 943 } | 934 } |
| 944 | 935 |
| 945 #endif | 936 #endif |
| 946 | 937 |
| 947 } // namespace internal | 938 } // namespace internal |
| 948 } // namespace v8 | 939 } // namespace v8 |
| 949 | 940 |
| 950 #endif // V8_RUNTIME_RUNTIME_H_ | 941 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |