Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/api.cc

Issue 1435273002: Fix name shown by devtools for subclasses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3828 matching lines...) Expand 10 before | Expand all | Expand 10 after
3839 3839
3840 3840
3841 Local<String> v8::Object::ObjectProtoToString() { 3841 Local<String> v8::Object::ObjectProtoToString() {
3842 auto context = ContextFromHeapObject(Utils::OpenHandle(this)); 3842 auto context = ContextFromHeapObject(Utils::OpenHandle(this));
3843 RETURN_TO_LOCAL_UNCHECKED(ObjectProtoToString(context), String); 3843 RETURN_TO_LOCAL_UNCHECKED(ObjectProtoToString(context), String);
3844 } 3844 }
3845 3845
3846 3846
3847 Local<String> v8::Object::GetConstructorName() { 3847 Local<String> v8::Object::GetConstructorName() {
3848 auto self = Utils::OpenHandle(this); 3848 auto self = Utils::OpenHandle(this);
3849 i::Handle<i::String> name(self->constructor_name()); 3849 i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self);
3850 return Utils::ToLocal(name); 3850 return Utils::ToLocal(name);
3851 } 3851 }
3852 3852
3853 3853
3854 Maybe<bool> v8::Object::Delete(Local<Context> context, Local<Value> key) { 3854 Maybe<bool> v8::Object::Delete(Local<Context> context, Local<Value> key) {
3855 PREPARE_FOR_EXECUTION_PRIMITIVE(context, "v8::Object::Delete()", bool); 3855 PREPARE_FOR_EXECUTION_PRIMITIVE(context, "v8::Object::Delete()", bool);
3856 auto self = Utils::OpenHandle(this); 3856 auto self = Utils::OpenHandle(this);
3857 auto key_obj = Utils::OpenHandle(*key); 3857 auto key_obj = Utils::OpenHandle(*key);
3858 i::Handle<i::Object> obj; 3858 i::Handle<i::Object> obj;
3859 has_pending_exception = 3859 has_pending_exception =
(...skipping 4640 matching lines...) Expand 10 before | Expand all | Expand 10 after
8500 Address callback_address = 8500 Address callback_address =
8501 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8501 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8502 VMState<EXTERNAL> state(isolate); 8502 VMState<EXTERNAL> state(isolate);
8503 ExternalCallbackScope call_scope(isolate, callback_address); 8503 ExternalCallbackScope call_scope(isolate, callback_address);
8504 callback(info); 8504 callback(info);
8505 } 8505 }
8506 8506
8507 8507
8508 } // namespace internal 8508 } // namespace internal
8509 } // namespace v8 8509 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698