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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 | 376 |
377 void set_single_step(bool value) { single_step_ = value; } | 377 void set_single_step(bool value) { single_step_ = value; } |
378 bool single_step() const { return single_step_; } | 378 bool single_step() const { return single_step_; } |
379 static intptr_t single_step_offset() { | 379 static intptr_t single_step_offset() { |
380 return OFFSET_OF(Isolate, single_step_); | 380 return OFFSET_OF(Isolate, single_step_); |
381 } | 381 } |
382 | 382 |
383 void set_has_compiled(bool value) { has_compiled_ = value; } | 383 void set_has_compiled(bool value) { has_compiled_ = value; } |
384 bool has_compiled() const { return has_compiled_; } | 384 bool has_compiled() const { return has_compiled_; } |
385 | 385 |
386 void set_strict_compilation(bool value) { strict_compilation_ = value; } | 386 void set_strict_compilation(bool value) { strict_compilation_ = value; } |
Ivan Posva
2015/05/29 15:18:17
I know this is not from your change. "strict compi
Lasse Reichstein Nielsen
2015/06/02 15:26:44
I'll leave that for a later CL.
| |
387 bool strict_compilation() const { return strict_compilation_; } | 387 bool strict_compilation() const { return strict_compilation_; } |
388 bool TypeChecksEnabled() { | 388 bool TypeChecksEnabled() { |
389 return FLAG_enable_type_checks || strict_compilation_; | 389 return FLAG_enable_type_checks || strict_compilation_; |
390 } | 390 } |
391 bool AssertsEnabled() { | 391 bool AssertsEnabled() { |
392 return FLAG_enable_asserts || strict_compilation_; | 392 return FLAG_enable_asserts || strict_compilation_; |
393 } | 393 } |
394 bool ErrorOnBadTypeEnabled() { | 394 bool ErrorOnBadTypeEnabled() { |
395 return FLAG_error_on_bad_type || strict_compilation_; | 395 return FLAG_error_on_bad_type || strict_compilation_; |
396 } | 396 } |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
925 public: | 925 public: |
926 IsolateSpawnState(Dart_Port parent_port, | 926 IsolateSpawnState(Dart_Port parent_port, |
927 const Function& func, | 927 const Function& func, |
928 const Instance& message, | 928 const Instance& message, |
929 bool paused); | 929 bool paused); |
930 IsolateSpawnState(Dart_Port parent_port, | 930 IsolateSpawnState(Dart_Port parent_port, |
931 const char* script_url, | 931 const char* script_url, |
932 const char* package_root, | 932 const char* package_root, |
933 const Instance& args, | 933 const Instance& args, |
934 const Instance& message, | 934 const Instance& message, |
935 bool paused); | 935 bool paused, |
936 bool checked); | |
936 ~IsolateSpawnState(); | 937 ~IsolateSpawnState(); |
937 | 938 |
938 Isolate* isolate() const { return isolate_; } | 939 Isolate* isolate() const { return isolate_; } |
939 void set_isolate(Isolate* value) { isolate_ = value; } | 940 void set_isolate(Isolate* value) { isolate_ = value; } |
940 | 941 |
941 Dart_Port parent_port() const { return parent_port_; } | 942 Dart_Port parent_port() const { return parent_port_; } |
942 char* script_url() const { return script_url_; } | 943 char* script_url() const { return script_url_; } |
943 char* package_root() const { return package_root_; } | 944 char* package_root() const { return package_root_; } |
944 char* library_url() const { return library_url_; } | 945 char* library_url() const { return library_url_; } |
945 char* class_name() const { return class_name_; } | 946 char* class_name() const { return class_name_; } |
946 char* function_name() const { return function_name_; } | 947 char* function_name() const { return function_name_; } |
947 bool is_spawn_uri() const { return library_url_ == NULL; } | 948 bool is_spawn_uri() const { return library_url_ == NULL; } |
948 bool paused() const { return paused_; } | 949 bool paused() const { return paused_; } |
950 bool checked_mode() const { return checked_; } | |
949 | 951 |
950 RawObject* ResolveFunction(); | 952 RawObject* ResolveFunction(); |
951 RawInstance* BuildArgs(Zone* zone); | 953 RawInstance* BuildArgs(Zone* zone); |
952 RawInstance* BuildMessage(Zone* zone); | 954 RawInstance* BuildMessage(Zone* zone); |
953 void Cleanup(); | 955 void Cleanup(); |
954 | 956 |
955 private: | 957 private: |
956 Isolate* isolate_; | 958 Isolate* isolate_; |
957 Dart_Port parent_port_; | 959 Dart_Port parent_port_; |
958 char* script_url_; | 960 char* script_url_; |
959 char* package_root_; | 961 char* package_root_; |
960 char* library_url_; | 962 char* library_url_; |
961 char* class_name_; | 963 char* class_name_; |
962 char* function_name_; | 964 char* function_name_; |
963 uint8_t* serialized_args_; | 965 uint8_t* serialized_args_; |
964 intptr_t serialized_args_len_; | 966 intptr_t serialized_args_len_; |
965 uint8_t* serialized_message_; | 967 uint8_t* serialized_message_; |
966 intptr_t serialized_message_len_; | 968 intptr_t serialized_message_len_; |
967 bool paused_; | 969 bool paused_; |
970 bool checked_; | |
968 }; | 971 }; |
969 | 972 |
970 } // namespace dart | 973 } // namespace dart |
971 | 974 |
972 #endif // VM_ISOLATE_H_ | 975 #endif // VM_ISOLATE_H_ |
OLD | NEW |