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

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

Issue 844006: Merge changes up to V8 version 2.1.3 into the partial snapshots (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/builtins-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) 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 if (OS::ArmCpuHasFeature(ARMv7)) { 95 if (OS::ArmCpuHasFeature(ARMv7)) {
96 supported_ |= 1u << ARMv7; 96 supported_ |= 1u << ARMv7;
97 found_by_runtime_probing_ |= 1u << ARMv7; 97 found_by_runtime_probing_ |= 1u << ARMv7;
98 } 98 }
99 #endif // def __arm__ 99 #endif // def __arm__
100 } 100 }
101 101
102 102
103 // ----------------------------------------------------------------------------- 103 // -----------------------------------------------------------------------------
104 // Implementation of Register and CRegister
105
106 Register no_reg = { -1 };
107
108 Register r0 = { 0 };
109 Register r1 = { 1 };
110 Register r2 = { 2 };
111 Register r3 = { 3 };
112 Register r4 = { 4 };
113 Register r5 = { 5 };
114 Register r6 = { 6 };
115 Register r7 = { 7 };
116 Register r8 = { 8 }; // Used as context register.
117 Register r9 = { 9 };
118 Register r10 = { 10 }; // Used as roots register.
119 Register fp = { 11 };
120 Register ip = { 12 };
121 Register sp = { 13 };
122 Register lr = { 14 };
123 Register pc = { 15 };
124
125
126 CRegister no_creg = { -1 };
127
128 CRegister cr0 = { 0 };
129 CRegister cr1 = { 1 };
130 CRegister cr2 = { 2 };
131 CRegister cr3 = { 3 };
132 CRegister cr4 = { 4 };
133 CRegister cr5 = { 5 };
134 CRegister cr6 = { 6 };
135 CRegister cr7 = { 7 };
136 CRegister cr8 = { 8 };
137 CRegister cr9 = { 9 };
138 CRegister cr10 = { 10 };
139 CRegister cr11 = { 11 };
140 CRegister cr12 = { 12 };
141 CRegister cr13 = { 13 };
142 CRegister cr14 = { 14 };
143 CRegister cr15 = { 15 };
144
145 // Support for the VFP registers s0 to s31 (d0 to d15).
146 // Note that "sN:sM" is the same as "dN/2".
147 SwVfpRegister s0 = { 0 };
148 SwVfpRegister s1 = { 1 };
149 SwVfpRegister s2 = { 2 };
150 SwVfpRegister s3 = { 3 };
151 SwVfpRegister s4 = { 4 };
152 SwVfpRegister s5 = { 5 };
153 SwVfpRegister s6 = { 6 };
154 SwVfpRegister s7 = { 7 };
155 SwVfpRegister s8 = { 8 };
156 SwVfpRegister s9 = { 9 };
157 SwVfpRegister s10 = { 10 };
158 SwVfpRegister s11 = { 11 };
159 SwVfpRegister s12 = { 12 };
160 SwVfpRegister s13 = { 13 };
161 SwVfpRegister s14 = { 14 };
162 SwVfpRegister s15 = { 15 };
163 SwVfpRegister s16 = { 16 };
164 SwVfpRegister s17 = { 17 };
165 SwVfpRegister s18 = { 18 };
166 SwVfpRegister s19 = { 19 };
167 SwVfpRegister s20 = { 20 };
168 SwVfpRegister s21 = { 21 };
169 SwVfpRegister s22 = { 22 };
170 SwVfpRegister s23 = { 23 };
171 SwVfpRegister s24 = { 24 };
172 SwVfpRegister s25 = { 25 };
173 SwVfpRegister s26 = { 26 };
174 SwVfpRegister s27 = { 27 };
175 SwVfpRegister s28 = { 28 };
176 SwVfpRegister s29 = { 29 };
177 SwVfpRegister s30 = { 30 };
178 SwVfpRegister s31 = { 31 };
179
180 DwVfpRegister d0 = { 0 };
181 DwVfpRegister d1 = { 1 };
182 DwVfpRegister d2 = { 2 };
183 DwVfpRegister d3 = { 3 };
184 DwVfpRegister d4 = { 4 };
185 DwVfpRegister d5 = { 5 };
186 DwVfpRegister d6 = { 6 };
187 DwVfpRegister d7 = { 7 };
188 DwVfpRegister d8 = { 8 };
189 DwVfpRegister d9 = { 9 };
190 DwVfpRegister d10 = { 10 };
191 DwVfpRegister d11 = { 11 };
192 DwVfpRegister d12 = { 12 };
193 DwVfpRegister d13 = { 13 };
194 DwVfpRegister d14 = { 14 };
195 DwVfpRegister d15 = { 15 };
196
197 // -----------------------------------------------------------------------------
198 // Implementation of RelocInfo 104 // Implementation of RelocInfo
199 105
200 const int RelocInfo::kApplyMask = 0; 106 const int RelocInfo::kApplyMask = 0;
201 107
202 108
203 void RelocInfo::PatchCode(byte* instructions, int instruction_count) { 109 void RelocInfo::PatchCode(byte* instructions, int instruction_count) {
204 // Patch the code at the current address with the supplied instructions. 110 // Patch the code at the current address with the supplied instructions.
205 Instr* pc = reinterpret_cast<Instr*>(pc_); 111 Instr* pc = reinterpret_cast<Instr*>(pc_);
206 Instr* instr = reinterpret_cast<Instr*>(instructions); 112 Instr* instr = reinterpret_cast<Instr*>(instructions);
207 for (int i = 0; i < instruction_count; i++) { 113 for (int i = 0; i < instruction_count; i++) {
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 bind(&after_pool); 1797 bind(&after_pool);
1892 } 1798 }
1893 1799
1894 // Since a constant pool was just emitted, move the check offset forward by 1800 // Since a constant pool was just emitted, move the check offset forward by
1895 // the standard interval. 1801 // the standard interval.
1896 next_buffer_check_ = pc_offset() + kCheckConstInterval; 1802 next_buffer_check_ = pc_offset() + kCheckConstInterval;
1897 } 1803 }
1898 1804
1899 1805
1900 } } // namespace v8::internal 1806 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698