OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "d8.h" | 5 #include "src/d8.h" |
6 #include "d8-debug.h" | 6 #include "src/d8-debug.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 | 9 |
10 void PrintPrompt(bool is_running) { | 10 void PrintPrompt(bool is_running) { |
11 const char* prompt = is_running? "> " : "dbg> "; | 11 const char* prompt = is_running? "> " : "dbg> "; |
12 printf("%s", prompt); | 12 printf("%s", prompt); |
13 fflush(stdout); | 13 fflush(stdout); |
14 } | 14 } |
15 | 15 |
16 | 16 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (text_str.length() > 0) { | 123 if (text_str.length() > 0) { |
124 printf("%s\n", *text_str); | 124 printf("%s\n", *text_str); |
125 } | 125 } |
126 running = response_details->Get(String::NewFromUtf8(isolate, "running")) | 126 running = response_details->Get(String::NewFromUtf8(isolate, "running")) |
127 ->ToBoolean() | 127 ->ToBoolean() |
128 ->Value(); | 128 ->Value(); |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 } // namespace v8 | 132 } // namespace v8 |
OLD | NEW |