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 #include "vm/dart.h" | 5 #include "vm/dart.h" |
6 | 6 |
7 #include "vm/become.h" | 7 #include "vm/become.h" |
8 #include "vm/clustered_snapshot.h" | 8 #include "vm/clustered_snapshot.h" |
9 #include "vm/code_observers.h" | 9 #include "vm/code_observers.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // Different fields are included for DEBUG/RELEASE/PRODUCT. | 661 // Different fields are included for DEBUG/RELEASE/PRODUCT. |
662 #if defined(DEBUG) | 662 #if defined(DEBUG) |
663 buffer.AddString("debug"); | 663 buffer.AddString("debug"); |
664 #elif defined(PRODUCT) | 664 #elif defined(PRODUCT) |
665 buffer.AddString("product"); | 665 buffer.AddString("product"); |
666 #else | 666 #else |
667 buffer.AddString("release"); | 667 buffer.AddString("release"); |
668 #endif | 668 #endif |
669 | 669 |
670 if (Snapshot::IncludesCode(kind)) { | 670 if (Snapshot::IncludesCode(kind)) { |
| 671 if (FLAG_support_debugger) { |
| 672 buffer.AddString(" support-debugger"); |
| 673 } |
| 674 |
671 // Checked mode affects deopt ids. | 675 // Checked mode affects deopt ids. |
672 #define ADD_FLAG(name, isolate_flag, flag) \ | 676 #define ADD_FLAG(name, isolate_flag, flag) \ |
673 do { \ | 677 do { \ |
674 const bool name = (isolate != NULL) ? isolate->name() : flag; \ | 678 const bool name = (isolate != NULL) ? isolate->name() : flag; \ |
675 buffer.AddString(name ? (" " #name) : (" no-" #name)); \ | 679 buffer.AddString(name ? (" " #name) : (" no-" #name)); \ |
676 } while (0); | 680 } while (0); |
677 ADD_FLAG(type_checks, enable_type_checks, FLAG_enable_type_checks); | 681 ADD_FLAG(type_checks, enable_type_checks, FLAG_enable_type_checks); |
678 ADD_FLAG(asserts, enable_asserts, FLAG_enable_asserts); | 682 ADD_FLAG(asserts, enable_asserts, FLAG_enable_asserts); |
679 ADD_FLAG(error_on_bad_type, enable_error_on_bad_type, | 683 ADD_FLAG(error_on_bad_type, enable_error_on_bad_type, |
680 FLAG_error_on_bad_type); | 684 FLAG_error_on_bad_type); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 return predefined_handles_->handles_.IsValidScopedHandle(address); | 779 return predefined_handles_->handles_.IsValidScopedHandle(address); |
776 } | 780 } |
777 | 781 |
778 | 782 |
779 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 783 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
780 ASSERT(predefined_handles_ != NULL); | 784 ASSERT(predefined_handles_ != NULL); |
781 return predefined_handles_->api_handles_.IsValidHandle(handle); | 785 return predefined_handles_->api_handles_.IsValidHandle(handle); |
782 } | 786 } |
783 | 787 |
784 } // namespace dart | 788 } // namespace dart |
OLD | NEW |