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

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

Issue 2757783003: Set TARGET_OS_* from GN, falling back to HOST_OS_*. (Closed)
Patch Set: . Created 3 years, 9 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/cpu_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | 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/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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 #define ADD_FLAG(name, isolate_flag, flag) \ 672 #define ADD_FLAG(name, isolate_flag, flag) \
673 do { \ 673 do { \
674 const bool name = (isolate != NULL) ? isolate->name() : flag; \ 674 const bool name = (isolate != NULL) ? isolate->name() : flag; \
675 buffer.AddString(name ? (" " #name) : (" no-" #name)); \ 675 buffer.AddString(name ? (" " #name) : (" no-" #name)); \
676 } while (0); 676 } while (0);
677 ISOLATE_FLAG_LIST(ADD_FLAG); 677 ISOLATE_FLAG_LIST(ADD_FLAG);
678 #undef ADD_FLAG 678 #undef ADD_FLAG
679 679
680 // Generated code must match the host architecture and ABI. 680 // Generated code must match the host architecture and ABI.
681 #if defined(TARGET_ARCH_ARM) 681 #if defined(TARGET_ARCH_ARM)
682 #if defined(TARGET_ABI_IOS) 682 #if defined(TARGET_OS_MACOS) || defined(TARGET_OS_MACOS_IOS)
683 buffer.AddString(" arm-ios"); 683 buffer.AddString(" arm-ios");
684 #elif defined(TARGET_ABI_EABI) 684 #else
685 buffer.AddString(" arm-eabi"); 685 buffer.AddString(" arm-eabi");
686 #else
687 #error Unknown ABI
688 #endif 686 #endif
689 buffer.AddString(TargetCPUFeatures::hardfp_supported() ? " hardfp" 687 buffer.AddString(TargetCPUFeatures::hardfp_supported() ? " hardfp"
690 : " softfp"); 688 : " softfp");
691 #elif defined(TARGET_ARCH_ARM64) 689 #elif defined(TARGET_ARCH_ARM64)
692 buffer.AddString(" arm64"); 690 buffer.AddString(" arm64");
693 #elif defined(TARGET_ARCH_MIPS) 691 #elif defined(TARGET_ARCH_MIPS)
694 buffer.AddString(" mips"); 692 buffer.AddString(" mips");
695 #elif defined(TARGET_ARCH_IA32) 693 #elif defined(TARGET_ARCH_IA32)
696 buffer.AddString(" ia32"); 694 buffer.AddString(" ia32");
697 #elif defined(TARGET_ARCH_X64) 695 #elif defined(TARGET_ARCH_X64)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 return predefined_handles_->handles_.IsValidScopedHandle(address); 766 return predefined_handles_->handles_.IsValidScopedHandle(address);
769 } 767 }
770 768
771 769
772 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 770 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
773 ASSERT(predefined_handles_ != NULL); 771 ASSERT(predefined_handles_ != NULL);
774 return predefined_handles_->api_handles_.IsValidHandle(handle); 772 return predefined_handles_->api_handles_.IsValidHandle(handle);
775 } 773 }
776 774
777 } // namespace dart 775 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/cpu_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698