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

Unified Diff: src/interpreter/bytecode-generator.cc

Issue 2043183003: Replace all remaining Oddball checks with new function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: keep em coming 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/ic/ic.cc ('k') | src/isolate-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index 2b9357144eac55bc94072230d6080db0fb275d60..b8b5daf93dae206ea629af6844a34ced2e2253e4 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -1509,11 +1509,11 @@ void BytecodeGenerator::VisitLiteral(Literal* expr) {
builder()->LoadLiteral(Smi::cast(*value));
} else if (value->IsUndefined(isolate())) {
builder()->LoadUndefined();
- } else if (value->IsTrue()) {
+ } else if (value->IsTrue(isolate())) {
builder()->LoadTrue();
- } else if (value->IsFalse()) {
+ } else if (value->IsFalse(isolate())) {
builder()->LoadFalse();
- } else if (value->IsNull()) {
+ } else if (value->IsNull(isolate())) {
builder()->LoadNull();
} else if (value->IsTheHole(isolate())) {
builder()->LoadTheHole();
« no previous file with comments | « src/ic/ic.cc ('k') | src/isolate-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698