| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 num_parallel_files(0), | 224 num_parallel_files(0), |
| 225 parallel_files(NULL), | 225 parallel_files(NULL), |
| 226 #endif // V8_SHARED | 226 #endif // V8_SHARED |
| 227 script_executed(false), | 227 script_executed(false), |
| 228 last_run(true), | 228 last_run(true), |
| 229 send_idle_notification(false), | 229 send_idle_notification(false), |
| 230 stress_opt(false), | 230 stress_opt(false), |
| 231 stress_deopt(false), | 231 stress_deopt(false), |
| 232 interactive_shell(false), | 232 interactive_shell(false), |
| 233 test_shell(false), | 233 test_shell(false), |
| 234 dump_heap_constants(false), |
| 234 num_isolates(1), | 235 num_isolates(1), |
| 235 isolate_sources(NULL) { } | 236 isolate_sources(NULL) { } |
| 236 | 237 |
| 237 ~ShellOptions() { | 238 ~ShellOptions() { |
| 238 #ifndef V8_SHARED | 239 #ifndef V8_SHARED |
| 239 delete[] parallel_files; | 240 delete[] parallel_files; |
| 240 #endif // V8_SHARED | 241 #endif // V8_SHARED |
| 241 delete[] isolate_sources; | 242 delete[] isolate_sources; |
| 242 } | 243 } |
| 243 | 244 |
| 244 #ifndef V8_SHARED | 245 #ifndef V8_SHARED |
| 245 bool use_preemption; | 246 bool use_preemption; |
| 246 int preemption_interval; | 247 int preemption_interval; |
| 247 int num_parallel_files; | 248 int num_parallel_files; |
| 248 char** parallel_files; | 249 char** parallel_files; |
| 249 #endif // V8_SHARED | 250 #endif // V8_SHARED |
| 250 bool script_executed; | 251 bool script_executed; |
| 251 bool last_run; | 252 bool last_run; |
| 252 bool send_idle_notification; | 253 bool send_idle_notification; |
| 253 bool stress_opt; | 254 bool stress_opt; |
| 254 bool stress_deopt; | 255 bool stress_deopt; |
| 255 bool interactive_shell; | 256 bool interactive_shell; |
| 256 bool test_shell; | 257 bool test_shell; |
| 258 bool dump_heap_constants; |
| 257 int num_isolates; | 259 int num_isolates; |
| 258 SourceGroup* isolate_sources; | 260 SourceGroup* isolate_sources; |
| 259 }; | 261 }; |
| 260 | 262 |
| 261 #ifdef V8_SHARED | 263 #ifdef V8_SHARED |
| 262 class Shell { | 264 class Shell { |
| 263 #else | 265 #else |
| 264 class Shell : public i::AllStatic { | 266 class Shell : public i::AllStatic { |
| 265 #endif // V8_SHARED | 267 #endif // V8_SHARED |
| 266 | 268 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 static void ExternalArrayWeakCallback(Isolate* isolate, | 420 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 419 Persistent<Object>* object, | 421 Persistent<Object>* object, |
| 420 uint8_t* data); | 422 uint8_t* data); |
| 421 }; | 423 }; |
| 422 | 424 |
| 423 | 425 |
| 424 } // namespace v8 | 426 } // namespace v8 |
| 425 | 427 |
| 426 | 428 |
| 427 #endif // V8_D8_H_ | 429 #endif // V8_D8_H_ |
| OLD | NEW |