| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 send_idle_notification(false), | 200 send_idle_notification(false), |
| 201 stress_opt(false), | 201 stress_opt(false), |
| 202 stress_deopt(false), | 202 stress_deopt(false), |
| 203 interactive_shell(false), | 203 interactive_shell(false), |
| 204 test_shell(false), | 204 test_shell(false), |
| 205 dump_heap_constants(false), | 205 dump_heap_constants(false), |
| 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 natives_blob(NULL), |
| 212 snapshot_blob(NULL) { } |
| 211 | 213 |
| 212 ~ShellOptions() { | 214 ~ShellOptions() { |
| 213 delete[] isolate_sources; | 215 delete[] isolate_sources; |
| 214 } | 216 } |
| 215 | 217 |
| 216 bool script_executed; | 218 bool script_executed; |
| 217 bool last_run; | 219 bool last_run; |
| 218 bool send_idle_notification; | 220 bool send_idle_notification; |
| 219 bool stress_opt; | 221 bool stress_opt; |
| 220 bool stress_deopt; | 222 bool stress_deopt; |
| 221 bool interactive_shell; | 223 bool interactive_shell; |
| 222 bool test_shell; | 224 bool test_shell; |
| 223 bool dump_heap_constants; | 225 bool dump_heap_constants; |
| 224 bool expected_to_throw; | 226 bool expected_to_throw; |
| 225 bool mock_arraybuffer_allocator; | 227 bool mock_arraybuffer_allocator; |
| 226 int num_isolates; | 228 int num_isolates; |
| 227 SourceGroup* isolate_sources; | 229 SourceGroup* isolate_sources; |
| 228 const char* icu_data_file; | 230 const char* icu_data_file; |
| 231 const char* natives_blob; |
| 232 const char* snapshot_blob; |
| 229 }; | 233 }; |
| 230 | 234 |
| 231 #ifdef V8_SHARED | 235 #ifdef V8_SHARED |
| 232 class Shell { | 236 class Shell { |
| 233 #else | 237 #else |
| 234 class Shell : public i::AllStatic { | 238 class Shell : public i::AllStatic { |
| 235 #endif // V8_SHARED | 239 #endif // V8_SHARED |
| 236 | 240 |
| 237 public: | 241 public: |
| 238 static bool ExecuteString(Isolate* isolate, | 242 static bool ExecuteString(Isolate* isolate, |
| (...skipping 150 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 |