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