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

Unified Diff: src/messages.cc

Issue 2060213002: Revert of Replace all remaining Oddball checks with new function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/lookup.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.cc
diff --git a/src/messages.cc b/src/messages.cc
index d5a15256b9fa0cfd75b5fda18aaa972dc15d47bf..ee364b9bc6496d786c93eaf747b163476fa6a922 100644
--- a/src/messages.cc
+++ b/src/messages.cc
@@ -249,7 +249,7 @@
Handle<Object> CallSite::GetMethodName() {
- if (!IsJavaScript() || receiver_->IsNull(isolate_) ||
+ if (!IsJavaScript() || receiver_->IsNull() ||
receiver_->IsUndefined(isolate_)) {
return isolate_->factory()->null_value();
}
@@ -341,7 +341,7 @@
bool CallSite::IsToplevel() {
if (IsWasm()) return false;
- return receiver_->IsJSGlobalProxy() || receiver_->IsNull(isolate_) ||
+ return receiver_->IsJSGlobalProxy() || receiver_->IsNull() ||
receiver_->IsUndefined(isolate_);
}
« no previous file with comments | « src/lookup.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698