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

Unified Diff: src/typing-asm.cc

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master 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/type-info.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing-asm.cc
diff --git a/src/typing-asm.cc b/src/typing-asm.cc
index d98998520fae35bbc16c305979a6123df1be0cd7..b6eca744310c8e475f66e0b62c4aab5fb8c90fd8 100644
--- a/src/typing-asm.cc
+++ b/src/typing-asm.cc
@@ -603,7 +603,7 @@ void AsmTyper::VisitLiteral(Literal* expr, bool is_return) {
}
} else if (!is_return && value->IsString()) {
RECURSE(IntersectResult(expr, Type::String()));
- } else if (value->IsUndefined()) {
+ } else if (value->IsUndefined(isolate_)) {
RECURSE(IntersectResult(expr, Type::Undefined()));
} else {
FAIL(expr, "illegal literal");
« no previous file with comments | « src/type-info.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698