| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 size_t length_; | 191 size_t length_; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 | 194 |
| 195 class ShellOptions { | 195 class ShellOptions { |
| 196 public: | 196 public: |
| 197 ShellOptions() : | 197 ShellOptions() : |
| 198 script_executed(false), | 198 script_executed(false), |
| 199 last_run(true), | 199 last_run(true), |
| 200 send_idle_notification(false), | 200 send_idle_notification(false), |
| 201 invoke_weak_callbacks(false), | |
| 202 stress_opt(false), | 201 stress_opt(false), |
| 203 stress_deopt(false), | 202 stress_deopt(false), |
| 204 interactive_shell(false), | 203 interactive_shell(false), |
| 205 test_shell(false), | 204 test_shell(false), |
| 206 dump_heap_constants(false), | 205 dump_heap_constants(false), |
| 207 expected_to_throw(false), | 206 expected_to_throw(false), |
| 208 mock_arraybuffer_allocator(false), | 207 mock_arraybuffer_allocator(false), |
| 209 num_isolates(1), | 208 num_isolates(1), |
| 210 isolate_sources(NULL), | 209 isolate_sources(NULL), |
| 211 icu_data_file(NULL) { } | 210 icu_data_file(NULL) { } |
| 212 | 211 |
| 213 ~ShellOptions() { | 212 ~ShellOptions() { |
| 214 delete[] isolate_sources; | 213 delete[] isolate_sources; |
| 215 } | 214 } |
| 216 | 215 |
| 217 bool use_interactive_shell() { | 216 bool use_interactive_shell() { |
| 218 return (interactive_shell || !script_executed) && !test_shell; | 217 return (interactive_shell || !script_executed) && !test_shell; |
| 219 } | 218 } |
| 220 | 219 |
| 221 bool script_executed; | 220 bool script_executed; |
| 222 bool last_run; | 221 bool last_run; |
| 223 bool send_idle_notification; | 222 bool send_idle_notification; |
| 224 bool invoke_weak_callbacks; | |
| 225 bool stress_opt; | 223 bool stress_opt; |
| 226 bool stress_deopt; | 224 bool stress_deopt; |
| 227 bool interactive_shell; | 225 bool interactive_shell; |
| 228 bool test_shell; | 226 bool test_shell; |
| 229 bool dump_heap_constants; | 227 bool dump_heap_constants; |
| 230 bool expected_to_throw; | 228 bool expected_to_throw; |
| 231 bool mock_arraybuffer_allocator; | 229 bool mock_arraybuffer_allocator; |
| 232 int num_isolates; | 230 int num_isolates; |
| 233 SourceGroup* isolate_sources; | 231 SourceGroup* isolate_sources; |
| 234 const char* icu_data_file; | 232 const char* icu_data_file; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 static void ExternalArrayWeakCallback(Isolate* isolate, | 393 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 396 Persistent<Object>* object, | 394 Persistent<Object>* object, |
| 397 uint8_t* data); | 395 uint8_t* data); |
| 398 }; | 396 }; |
| 399 | 397 |
| 400 | 398 |
| 401 } // namespace v8 | 399 } // namespace v8 |
| 402 | 400 |
| 403 | 401 |
| 404 #endif // V8_D8_H_ | 402 #endif // V8_D8_H_ |
| OLD | NEW |