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 #ifndef V8_D8_H_ | 5 #ifndef V8_D8_H_ |
6 #define V8_D8_H_ | 6 #define V8_D8_H_ |
7 | 7 |
8 #ifndef V8_SHARED | 8 #ifndef V8_SHARED |
9 #include "allocation.h" | 9 #include "allocation.h" |
10 #include "hashmap.h" | 10 #include "hashmap.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 expected_to_throw(false), | 206 expected_to_throw(false), |
207 mock_arraybuffer_allocator(false), | 207 mock_arraybuffer_allocator(false), |
208 num_isolates(1), | 208 num_isolates(1), |
209 isolate_sources(NULL), | 209 isolate_sources(NULL), |
210 icu_data_file(NULL) { } | 210 icu_data_file(NULL) { } |
211 | 211 |
212 ~ShellOptions() { | 212 ~ShellOptions() { |
213 delete[] isolate_sources; | 213 delete[] isolate_sources; |
214 } | 214 } |
215 | 215 |
| 216 bool use_interactive_shell() { |
| 217 return (interactive_shell || !script_executed) && !test_shell; |
| 218 } |
| 219 |
216 bool script_executed; | 220 bool script_executed; |
217 bool last_run; | 221 bool last_run; |
218 bool send_idle_notification; | 222 bool send_idle_notification; |
219 bool stress_opt; | 223 bool stress_opt; |
220 bool stress_deopt; | 224 bool stress_deopt; |
221 bool interactive_shell; | 225 bool interactive_shell; |
222 bool test_shell; | 226 bool test_shell; |
223 bool dump_heap_constants; | 227 bool dump_heap_constants; |
224 bool expected_to_throw; | 228 bool expected_to_throw; |
225 bool mock_arraybuffer_allocator; | 229 bool mock_arraybuffer_allocator; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 static void ExternalArrayWeakCallback(Isolate* isolate, | 393 static void ExternalArrayWeakCallback(Isolate* isolate, |
390 Persistent<Object>* object, | 394 Persistent<Object>* object, |
391 uint8_t* data); | 395 uint8_t* data); |
392 }; | 396 }; |
393 | 397 |
394 | 398 |
395 } // namespace v8 | 399 } // namespace v8 |
396 | 400 |
397 | 401 |
398 #endif // V8_D8_H_ | 402 #endif // V8_D8_H_ |
OLD | NEW |