OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 bool error_on_bad_override_; | 341 bool error_on_bad_override_; |
342 | 342 |
343 friend class Isolate; | 343 friend class Isolate; |
344 | 344 |
345 DISALLOW_ALLOCATION(); | 345 DISALLOW_ALLOCATION(); |
346 DISALLOW_COPY_AND_ASSIGN(Flags); | 346 DISALLOW_COPY_AND_ASSIGN(Flags); |
347 }; | 347 }; |
348 | 348 |
349 const Flags& flags() const { return flags_; } | 349 const Flags& flags() const { return flags_; } |
350 | 350 |
351 // Set the checks in the compiler to the highest level. Statically and when | |
352 // executing generated code. Needs to be called before any code has been | |
353 // compiled. | |
354 void set_strict_compilation() { | |
355 ASSERT(!has_compiled_code()); | |
356 flags_.type_checks_ = true; | |
357 flags_.asserts_ = true; | |
358 flags_.error_on_bad_type_ = true; | |
359 flags_.error_on_bad_override_ = true; | |
360 } | |
361 | |
362 // Requests that the debugger resume execution. | 351 // Requests that the debugger resume execution. |
363 void Resume() { | 352 void Resume() { |
364 resume_request_ = true; | 353 resume_request_ = true; |
365 set_last_resume_timestamp(); | 354 set_last_resume_timestamp(); |
366 } | 355 } |
367 | 356 |
368 void set_last_resume_timestamp() { | 357 void set_last_resume_timestamp() { |
369 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); | 358 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); |
370 } | 359 } |
371 | 360 |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 uint8_t* serialized_message_; | 964 uint8_t* serialized_message_; |
976 intptr_t serialized_message_len_; | 965 intptr_t serialized_message_len_; |
977 Isolate::Flags isolate_flags_; | 966 Isolate::Flags isolate_flags_; |
978 bool paused_; | 967 bool paused_; |
979 bool errors_are_fatal_; | 968 bool errors_are_fatal_; |
980 }; | 969 }; |
981 | 970 |
982 } // namespace dart | 971 } // namespace dart |
983 | 972 |
984 #endif // VM_ISOLATE_H_ | 973 #endif // VM_ISOLATE_H_ |
OLD | NEW |