| 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 "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/hashmap.h" | 10 #include "src/hashmap.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 invoke_weak_callbacks(false), | 201 invoke_weak_callbacks(false), |
| 202 stress_opt(false), | 202 stress_opt(false), |
| 203 stress_deopt(false), | 203 stress_deopt(false), |
| 204 interactive_shell(false), | 204 interactive_shell(false), |
| 205 test_shell(false), | 205 test_shell(false), |
| 206 dump_heap_constants(false), | 206 dump_heap_constants(false), |
| 207 expected_to_throw(false), | 207 expected_to_throw(false), |
| 208 mock_arraybuffer_allocator(false), | 208 mock_arraybuffer_allocator(false), |
| 209 num_isolates(1), | 209 num_isolates(1), |
| 210 isolate_sources(NULL), | 210 isolate_sources(NULL), |
| 211 icu_data_file(NULL) { } | 211 icu_data_file(NULL), |
| 212 natives_blob(NULL), |
| 213 snapshot_blob(NULL) { } |
| 212 | 214 |
| 213 ~ShellOptions() { | 215 ~ShellOptions() { |
| 214 delete[] isolate_sources; | 216 delete[] isolate_sources; |
| 215 } | 217 } |
| 216 | 218 |
| 217 bool use_interactive_shell() { | 219 bool use_interactive_shell() { |
| 218 return (interactive_shell || !script_executed) && !test_shell; | 220 return (interactive_shell || !script_executed) && !test_shell; |
| 219 } | 221 } |
| 220 | 222 |
| 221 bool script_executed; | 223 bool script_executed; |
| 222 bool last_run; | 224 bool last_run; |
| 223 bool send_idle_notification; | 225 bool send_idle_notification; |
| 224 bool invoke_weak_callbacks; | 226 bool invoke_weak_callbacks; |
| 225 bool stress_opt; | 227 bool stress_opt; |
| 226 bool stress_deopt; | 228 bool stress_deopt; |
| 227 bool interactive_shell; | 229 bool interactive_shell; |
| 228 bool test_shell; | 230 bool test_shell; |
| 229 bool dump_heap_constants; | 231 bool dump_heap_constants; |
| 230 bool expected_to_throw; | 232 bool expected_to_throw; |
| 231 bool mock_arraybuffer_allocator; | 233 bool mock_arraybuffer_allocator; |
| 232 int num_isolates; | 234 int num_isolates; |
| 233 SourceGroup* isolate_sources; | 235 SourceGroup* isolate_sources; |
| 234 const char* icu_data_file; | 236 const char* icu_data_file; |
| 237 const char* natives_blob; |
| 238 const char* snapshot_blob; |
| 235 }; | 239 }; |
| 236 | 240 |
| 237 #ifdef V8_SHARED | 241 #ifdef V8_SHARED |
| 238 class Shell { | 242 class Shell { |
| 239 #else | 243 #else |
| 240 class Shell : public i::AllStatic { | 244 class Shell : public i::AllStatic { |
| 241 #endif // V8_SHARED | 245 #endif // V8_SHARED |
| 242 | 246 |
| 243 public: | 247 public: |
| 244 static bool ExecuteString(Isolate* isolate, | 248 static bool ExecuteString(Isolate* isolate, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 static void ExternalArrayWeakCallback(Isolate* isolate, | 399 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 396 Persistent<Object>* object, | 400 Persistent<Object>* object, |
| 397 uint8_t* data); | 401 uint8_t* data); |
| 398 }; | 402 }; |
| 399 | 403 |
| 400 | 404 |
| 401 } // namespace v8 | 405 } // namespace v8 |
| 402 | 406 |
| 403 | 407 |
| 404 #endif // V8_D8_H_ | 408 #endif // V8_D8_H_ |
| OLD | NEW |