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

Unified Diff: src/runtime/runtime-object.cc

Issue 2110683007: Use toString tag to format receiver in stack traces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@20160629-builtin-exit-receiver
Patch Set: Rebase on master Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/regress/regress-4815.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index 761008aa63d69504a66a0db284b6561135fbae8f..332ccb0e990e583d30219bd2d4c698b6379ce2d7 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -758,6 +758,15 @@ RUNTIME_FUNCTION(Runtime_GetDataProperty) {
return *JSReceiver::GetDataProperty(object, name);
}
+RUNTIME_FUNCTION(Runtime_GetConstructorName) {
+ HandleScope scope(isolate);
+ DCHECK(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
+
+ CHECK(!object->IsUndefined(isolate) && !object->IsNull(isolate));
+ Handle<JSReceiver> recv = Object::ToObject(isolate, object).ToHandleChecked();
+ return *JSReceiver::GetConstructorName(recv);
+}
RUNTIME_FUNCTION(Runtime_HasFastPackedElements) {
SealHandleScope shs(isolate);
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/regress/regress-4815.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698