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

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

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 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/cpuinfo_linux.cc ('k') | runtime/vm/debugger_mips.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 #if defined(TARGET_ARCH_ARM) 90 #if defined(TARGET_ARCH_ARM)
91 // These offsets are embedded in precompiled instructions. We need simarm 91 // These offsets are embedded in precompiled instructions. We need simarm
92 // (compiler) and arm (runtime) to agree. 92 // (compiler) and arm (runtime) to agree.
93 CHECK_OFFSET(Heap::TopOffset(Heap::kNew), 8); 93 CHECK_OFFSET(Heap::TopOffset(Heap::kNew), 8);
94 CHECK_OFFSET(Thread::stack_limit_offset(), 4); 94 CHECK_OFFSET(Thread::stack_limit_offset(), 4);
95 CHECK_OFFSET(Thread::object_null_offset(), 40); 95 CHECK_OFFSET(Thread::object_null_offset(), 40);
96 CHECK_OFFSET(SingleTargetCache::upper_limit_offset(), 14); 96 CHECK_OFFSET(SingleTargetCache::upper_limit_offset(), 14);
97 CHECK_OFFSET(Isolate::object_store_offset(), 28); 97 CHECK_OFFSET(Isolate::object_store_offset(), 28);
98 NOT_IN_PRODUCT(CHECK_OFFSET(sizeof(ClassHeapStats), 120)); 98 NOT_IN_PRODUCT(CHECK_OFFSET(sizeof(ClassHeapStats), 120));
99 #endif 99 #endif
100 #if defined(TARGET_ARCH_MIPS)
101 // These offsets are embedded in precompiled instructions. We need simmips
102 // (compiler) and mips (runtime) to agree.
103 CHECK_OFFSET(Heap::TopOffset(Heap::kNew), 8);
104 CHECK_OFFSET(Thread::stack_limit_offset(), 4);
105 CHECK_OFFSET(Thread::object_null_offset(), 40);
106 CHECK_OFFSET(SingleTargetCache::upper_limit_offset(), 14);
107 CHECK_OFFSET(Isolate::object_store_offset(), 28);
108 NOT_IN_PRODUCT(CHECK_OFFSET(sizeof(ClassHeapStats), 120));
109 #endif
110 #if defined(TARGET_ARCH_ARM64) 100 #if defined(TARGET_ARCH_ARM64)
111 // These offsets are embedded in precompiled instructions. We need simarm64 101 // These offsets are embedded in precompiled instructions. We need simarm64
112 // (compiler) and arm64 (runtime) to agree. 102 // (compiler) and arm64 (runtime) to agree.
113 CHECK_OFFSET(Heap::TopOffset(Heap::kNew), 8); 103 CHECK_OFFSET(Heap::TopOffset(Heap::kNew), 8);
114 CHECK_OFFSET(Thread::stack_limit_offset(), 8); 104 CHECK_OFFSET(Thread::stack_limit_offset(), 8);
115 CHECK_OFFSET(Thread::object_null_offset(), 80); 105 CHECK_OFFSET(Thread::object_null_offset(), 80);
116 CHECK_OFFSET(SingleTargetCache::upper_limit_offset(), 26); 106 CHECK_OFFSET(SingleTargetCache::upper_limit_offset(), 26);
117 CHECK_OFFSET(Isolate::object_store_offset(), 56); 107 CHECK_OFFSET(Isolate::object_store_offset(), 56);
118 NOT_IN_PRODUCT(CHECK_OFFSET(sizeof(ClassHeapStats), 208)); 108 NOT_IN_PRODUCT(CHECK_OFFSET(sizeof(ClassHeapStats), 208));
119 #endif 109 #endif
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 #if defined(TARGET_ARCH_ARM) 684 #if defined(TARGET_ARCH_ARM)
695 #if defined(TARGET_OS_MACOS) || defined(TARGET_OS_MACOS_IOS) 685 #if defined(TARGET_OS_MACOS) || defined(TARGET_OS_MACOS_IOS)
696 buffer.AddString(" arm-ios"); 686 buffer.AddString(" arm-ios");
697 #else 687 #else
698 buffer.AddString(" arm-eabi"); 688 buffer.AddString(" arm-eabi");
699 #endif 689 #endif
700 buffer.AddString(TargetCPUFeatures::hardfp_supported() ? " hardfp" 690 buffer.AddString(TargetCPUFeatures::hardfp_supported() ? " hardfp"
701 : " softfp"); 691 : " softfp");
702 #elif defined(TARGET_ARCH_ARM64) 692 #elif defined(TARGET_ARCH_ARM64)
703 buffer.AddString(" arm64"); 693 buffer.AddString(" arm64");
704 #elif defined(TARGET_ARCH_MIPS)
705 buffer.AddString(" mips");
706 #elif defined(TARGET_ARCH_IA32) 694 #elif defined(TARGET_ARCH_IA32)
707 buffer.AddString(" ia32"); 695 buffer.AddString(" ia32");
708 #elif defined(TARGET_ARCH_X64) 696 #elif defined(TARGET_ARCH_X64)
709 #if defined(_WIN64) 697 #if defined(_WIN64)
710 buffer.AddString(" x64-win"); 698 buffer.AddString(" x64-win");
711 #else 699 #else
712 buffer.AddString(" x64-sysv"); 700 buffer.AddString(" x64-sysv");
713 #endif 701 #endif
714 #elif defined(TARGET_ARCH_DBC) 702 #elif defined(TARGET_ARCH_DBC)
715 buffer.AddString(" dbc"); 703 buffer.AddString(" dbc");
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 return predefined_handles_->handles_.IsValidScopedHandle(address); 767 return predefined_handles_->handles_.IsValidScopedHandle(address);
780 } 768 }
781 769
782 770
783 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 771 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
784 ASSERT(predefined_handles_ != NULL); 772 ASSERT(predefined_handles_ != NULL);
785 return predefined_handles_->api_handles_.IsValidHandle(handle); 773 return predefined_handles_->api_handles_.IsValidHandle(handle);
786 } 774 }
787 775
788 } // namespace dart 776 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/cpuinfo_linux.cc ('k') | runtime/vm/debugger_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698