Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: runtime/vm/isolate.cc

Issue 1569833003: Adds strict compilation flags to Dart_IsolateFlags (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/text_buffer.h" 10 #include "platform/text_buffer.h"
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 type_checks_ = orig.type_checks(); 689 type_checks_ = orig.type_checks();
690 asserts_ = orig.asserts(); 690 asserts_ = orig.asserts();
691 error_on_bad_type_ = orig.error_on_bad_type(); 691 error_on_bad_type_ = orig.error_on_bad_type();
692 error_on_bad_override_ = orig.error_on_bad_override(); 692 error_on_bad_override_ = orig.error_on_bad_override();
693 } 693 }
694 694
695 695
696 void Isolate::Flags::CopyFrom(const Dart_IsolateFlags& api_flags) { 696 void Isolate::Flags::CopyFrom(const Dart_IsolateFlags& api_flags) {
697 type_checks_ = api_flags.enable_type_checks; 697 type_checks_ = api_flags.enable_type_checks;
698 asserts_ = api_flags.enable_asserts; 698 asserts_ = api_flags.enable_asserts;
699 error_on_bad_type_ = api_flags.enable_error_on_bad_type;
700 error_on_bad_override_ = api_flags.enable_error_on_bad_override;
699 // Leave others at defaults. 701 // Leave others at defaults.
700 } 702 }
701 703
702 704
703 void Isolate::Flags::CopyTo(Dart_IsolateFlags* api_flags) const { 705 void Isolate::Flags::CopyTo(Dart_IsolateFlags* api_flags) const {
704 api_flags->version = DART_FLAGS_CURRENT_VERSION; 706 api_flags->version = DART_FLAGS_CURRENT_VERSION;
705 api_flags->enable_type_checks = type_checks(); 707 api_flags->enable_type_checks = type_checks();
706 api_flags->enable_asserts = asserts(); 708 api_flags->enable_asserts = asserts();
709 api_flags->enable_error_on_bad_type = error_on_bad_type();
710 api_flags->enable_error_on_bad_override = error_on_bad_override();
707 } 711 }
708 712
709 713
710 #if defined(DEBUG) 714 #if defined(DEBUG)
711 // static 715 // static
712 void BaseIsolate::AssertCurrent(BaseIsolate* isolate) { 716 void BaseIsolate::AssertCurrent(BaseIsolate* isolate) {
713 ASSERT(isolate == Isolate::Current()); 717 ASSERT(isolate == Isolate::Current());
714 } 718 }
715 719
716 void BaseIsolate::AssertCurrentThreadIsMutator() const { 720 void BaseIsolate::AssertCurrentThreadIsMutator() const {
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 } 2519 }
2516 2520
2517 2521
2518 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { 2522 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) {
2519 return DeserializeObject(thread, 2523 return DeserializeObject(thread,
2520 serialized_message_, serialized_message_len_); 2524 serialized_message_, serialized_message_len_);
2521 } 2525 }
2522 2526
2523 2527
2524 } // namespace dart 2528 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698