| 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 #include "src/api.h" | 5 #include "src/api.h" |
| 6 | 6 |
| 7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
| 8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
| 9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
| 10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
| (...skipping 3852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3863 | 3863 |
| 3864 | 3864 |
| 3865 Local<String> v8::Object::ObjectProtoToString() { | 3865 Local<String> v8::Object::ObjectProtoToString() { |
| 3866 auto context = ContextFromHeapObject(Utils::OpenHandle(this)); | 3866 auto context = ContextFromHeapObject(Utils::OpenHandle(this)); |
| 3867 RETURN_TO_LOCAL_UNCHECKED(ObjectProtoToString(context), String); | 3867 RETURN_TO_LOCAL_UNCHECKED(ObjectProtoToString(context), String); |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 | 3870 |
| 3871 Local<String> v8::Object::GetConstructorName() { | 3871 Local<String> v8::Object::GetConstructorName() { |
| 3872 auto self = Utils::OpenHandle(this); | 3872 auto self = Utils::OpenHandle(this); |
| 3873 i::Handle<i::String> name(self->constructor_name()); | 3873 i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self); |
| 3874 return Utils::ToLocal(name); | 3874 return Utils::ToLocal(name); |
| 3875 } | 3875 } |
| 3876 | 3876 |
| 3877 | 3877 |
| 3878 Maybe<bool> v8::Object::Delete(Local<Context> context, Local<Value> key) { | 3878 Maybe<bool> v8::Object::Delete(Local<Context> context, Local<Value> key) { |
| 3879 PREPARE_FOR_EXECUTION_PRIMITIVE(context, "v8::Object::Delete()", bool); | 3879 PREPARE_FOR_EXECUTION_PRIMITIVE(context, "v8::Object::Delete()", bool); |
| 3880 auto self = Utils::OpenHandle(this); | 3880 auto self = Utils::OpenHandle(this); |
| 3881 auto key_obj = Utils::OpenHandle(*key); | 3881 auto key_obj = Utils::OpenHandle(*key); |
| 3882 Maybe<bool> result = | 3882 Maybe<bool> result = |
| 3883 i::Runtime::DeleteObjectProperty(isolate, self, key_obj, i::SLOPPY); | 3883 i::Runtime::DeleteObjectProperty(isolate, self, key_obj, i::SLOPPY); |
| (...skipping 4641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8525 Address callback_address = | 8525 Address callback_address = |
| 8526 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8526 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 8527 VMState<EXTERNAL> state(isolate); | 8527 VMState<EXTERNAL> state(isolate); |
| 8528 ExternalCallbackScope call_scope(isolate, callback_address); | 8528 ExternalCallbackScope call_scope(isolate, callback_address); |
| 8529 callback(info); | 8529 callback(info); |
| 8530 } | 8530 } |
| 8531 | 8531 |
| 8532 | 8532 |
| 8533 } // namespace internal | 8533 } // namespace internal |
| 8534 } // namespace v8 | 8534 } // namespace v8 |
| OLD | NEW |