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

Unified Diff: src/d8.cc

Issue 13520004: [NOT FOR COMMIT] Native Client builds of V8 on ia32 and x64. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: A couple minor cleanups 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
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index b57e3907ce9eee32940038e6aaf9d7dd2935cadf..385aa03c91d379c4008332c3cf4f905a04c20342 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -144,6 +144,11 @@ class DumbLineEditor: public LineEditor {
Handle<String> DumbLineEditor::Prompt(const char* prompt) {
printf("%s", prompt);
+#if defined(__native_client__)
+ // Native Client libc is used to being embedded in Chrome and
+ // has trouble recognizing when to flush.
+ fflush(stdout);
+#endif
return Shell::ReadFromStdin(isolate_);
}
« src/arm/simulator-arm.cc ('K') | « src/builtins.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698