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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 private: | 189 private: |
190 const char* data_; | 190 const char* data_; |
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 #ifndef V8_SHARED | |
199 num_parallel_files(0), | |
200 parallel_files(NULL), | |
201 #endif // !V8_SHARED | |
202 script_executed(false), | 198 script_executed(false), |
203 last_run(true), | 199 last_run(true), |
204 send_idle_notification(false), | 200 send_idle_notification(false), |
205 stress_opt(false), | 201 stress_opt(false), |
206 stress_deopt(false), | 202 stress_deopt(false), |
207 interactive_shell(false), | 203 interactive_shell(false), |
208 test_shell(false), | 204 test_shell(false), |
209 dump_heap_constants(false), | 205 dump_heap_constants(false), |
210 expected_to_throw(false), | 206 expected_to_throw(false), |
211 mock_arraybuffer_allocator(false), | 207 mock_arraybuffer_allocator(false), |
212 num_isolates(1), | 208 num_isolates(1), |
213 isolate_sources(NULL), | 209 isolate_sources(NULL), |
214 icu_data_file(NULL) { } | 210 icu_data_file(NULL) { } |
215 | 211 |
216 ~ShellOptions() { | 212 ~ShellOptions() { |
217 #ifndef V8_SHARED | |
218 delete[] parallel_files; | |
219 #endif // !V8_SHARED | |
220 delete[] isolate_sources; | 213 delete[] isolate_sources; |
221 } | 214 } |
222 | 215 |
223 #ifndef V8_SHARED | |
224 int num_parallel_files; | |
225 char** parallel_files; | |
226 #endif // !V8_SHARED | |
227 bool script_executed; | 216 bool script_executed; |
228 bool last_run; | 217 bool last_run; |
229 bool send_idle_notification; | 218 bool send_idle_notification; |
230 bool stress_opt; | 219 bool stress_opt; |
231 bool stress_deopt; | 220 bool stress_deopt; |
232 bool interactive_shell; | 221 bool interactive_shell; |
233 bool test_shell; | 222 bool test_shell; |
234 bool dump_heap_constants; | 223 bool dump_heap_constants; |
235 bool expected_to_throw; | 224 bool expected_to_throw; |
236 bool mock_arraybuffer_allocator; | 225 bool mock_arraybuffer_allocator; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 static void ExternalArrayWeakCallback(Isolate* isolate, | 390 static void ExternalArrayWeakCallback(Isolate* isolate, |
402 Persistent<Object>* object, | 391 Persistent<Object>* object, |
403 uint8_t* data); | 392 uint8_t* data); |
404 }; | 393 }; |
405 | 394 |
406 | 395 |
407 } // namespace v8 | 396 } // namespace v8 |
408 | 397 |
409 | 398 |
410 #endif // V8_D8_H_ | 399 #endif // V8_D8_H_ |
OLD | NEW |