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

Unified Diff: src/js/messages.js

Issue 2106883003: [builtins] Add receiver to builtin exit frames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 6 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/isolate.cc ('k') | src/messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/messages.js
diff --git a/src/js/messages.js b/src/js/messages.js
index 24d8d2bfa188bf3544e03083597e1dd7edd8ea2d..3bbe1ef20014c84c0c18755a48deeb398d03646c 100644
--- a/src/js/messages.js
+++ b/src/js/messages.js
@@ -15,6 +15,8 @@ var ArrayJoin;
var Bool16x8ToString;
var Bool32x4ToString;
var Bool8x16ToString;
+var callSiteConstructorSymbol =
+ utils.ImportNow("call_site_constructor_symbol");
var callSiteReceiverSymbol =
utils.ImportNow("call_site_receiver_symbol");
var callSiteFunctionSymbol =
@@ -302,8 +304,11 @@ function CheckCallSite(obj, name) {
function CallSiteGetThis() {
CheckCallSite(this, "getThis");
- return GET_PRIVATE(this, callSiteStrictSymbol)
- ? UNDEFINED : GET_PRIVATE(this, callSiteReceiverSymbol);
+ if (GET_PRIVATE(this, callSiteStrictSymbol)) {
+ return UNDEFINED;
+ }
+ var recv = GET_PRIVATE(this, callSiteReceiverSymbol);
+ return (recv == callSiteConstructorSymbol) ? UNDEFINED : recv;
}
function CallSiteGetFunction() {
« no previous file with comments | « src/isolate.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698