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

Unified Diff: src/ast/prettyprinter.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/ast/ast.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 1a81fb11842d847822e18cff06212e5e13dce4f3..d1673c3e740842711680fab5f2ffcd3a5c2da88f 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -441,11 +441,11 @@ void CallPrinter::PrintLiteral(Object* value, bool quote) {
if (quote) Print("\"");
Print("%s", String::cast(object)->ToCString().get());
if (quote) Print("\"");
- } else if (object->IsNull()) {
+ } else if (object->IsNull(isolate_)) {
Print("null");
- } else if (object->IsTrue()) {
+ } else if (object->IsTrue(isolate_)) {
Print("true");
- } else if (object->IsFalse()) {
+ } else if (object->IsFalse(isolate_)) {
Print("false");
} else if (object->IsUndefined(isolate_)) {
Print("undefined");
@@ -1069,11 +1069,11 @@ void PrettyPrinter::PrintLiteral(Handle<Object> value, bool quote) {
Print("%c", string->Get(i));
}
if (quote) Print("\"");
- } else if (object->IsNull()) {
+ } else if (object->IsNull(isolate_)) {
Print("null");
- } else if (object->IsTrue()) {
+ } else if (object->IsTrue(isolate_)) {
Print("true");
- } else if (object->IsFalse()) {
+ } else if (object->IsFalse(isolate_)) {
Print("false");
} else if (object->IsUndefined(isolate_)) {
Print("undefined");
« no previous file with comments | « src/ast/ast.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698