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

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 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') | no next file with comments »
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 3852 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698