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

Unified Diff: src/d8.cc

Issue 12779019: Unbreak shared lib build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 00b23fb9b3f736e62b37b2a0f12ddd2c8829dee4..89812a129b42dc54baa563a32c74b1990a9edce9 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -215,7 +215,9 @@ bool Shell::ExecuteString(Isolate* isolate,
} else {
ASSERT(!try_catch.HasCaught());
if (print_result) {
+#if !defined(V8_SHARED)
if (options.test_shell) {
+#endif
if (!result->IsUndefined()) {
// If all went well and the result wasn't undefined then print
// the returned value.
@@ -223,6 +225,7 @@ bool Shell::ExecuteString(Isolate* isolate,
fwrite(*str, sizeof(**str), str.length(), stdout);
printf("\n");
}
+#if !defined(V8_SHARED)
} else {
Context::Scope context_scope(utility_context_);
Handle<Object> global = utility_context_->Global();
@@ -234,6 +237,7 @@ bool Shell::ExecuteString(Isolate* isolate,
printf("\n");
}
}
+#endif
return true;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698