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