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

Side by Side Diff: src/arm/assembler-arm.cc

Issue 12082044: Make DwVfpRegister::AllocationIndexToString use VFPRegister::Name (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 95
96 const char* DwVfpRegister::AllocationIndexToString(int index) { 96 const char* DwVfpRegister::AllocationIndexToString(int index) {
97 if (CpuFeatures::IsSupported(VFP2)) { 97 if (CpuFeatures::IsSupported(VFP2)) {
98 ASSERT(index >= 0 && index < NumAllocatableRegisters()); 98 ASSERT(index >= 0 && index < NumAllocatableRegisters());
99 ASSERT(kScratchDoubleReg.code() - kDoubleRegZero.code() == 99 ASSERT(kScratchDoubleReg.code() - kDoubleRegZero.code() ==
100 kNumReservedRegisters - 1); 100 kNumReservedRegisters - 1);
101 if (index >= kDoubleRegZero.code()) 101 if (index >= kDoubleRegZero.code())
102 index += kNumReservedRegisters; 102 index += kNumReservedRegisters;
103 103
104 // TODO(hans): Maybe this could just use VFPRegisters::Name()? 104 return VFPRegisters::Name(index, true);
105 const char* const names[] = {
106 "d0",
107 "d1",
108 "d2",
109 "d3",
110 "d4",
111 "d5",
112 "d6",
113 "d7",
114 "d8",
115 "d9",
116 "d10",
117 "d11",
118 "d12",
119 "d13"
120 "d14",
121 "d15",
122 "d16",
123 "d17",
124 "d18",
125 "d19",
126 "d20",
127 "d21",
128 "d22",
129 "d23",
130 "d24",
131 "d25",
132 "d26",
133 "d27",
134 "d28",
135 "d29",
136 "d30",
137 "d31"
138 };
139 return names[index];
140 } else { 105 } else {
141 ASSERT(index == 0); 106 ASSERT(index == 0);
142 return "sfpd0"; 107 return "sfpd0";
143 } 108 }
144 } 109 }
145 110
146 111
147 void CpuFeatures::Probe() { 112 void CpuFeatures::Probe() {
148 unsigned standard_features = static_cast<unsigned>( 113 unsigned standard_features = static_cast<unsigned>(
149 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); 114 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler();
(...skipping 2911 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 3026
3062 // Since a constant pool was just emitted, move the check offset forward by 3027 // Since a constant pool was just emitted, move the check offset forward by
3063 // the standard interval. 3028 // the standard interval.
3064 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 3029 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
3065 } 3030 }
3066 3031
3067 3032
3068 } } // namespace v8::internal 3033 } } // namespace v8::internal
3069 3034
3070 #endif // V8_TARGET_ARCH_ARM 3035 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698