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

Side by Side Diff: src/arm/assembler-arm-inl.h

Issue 2136012: Remove unused relocation mode. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | src/assembler.h » ('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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 164
165 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) { 165 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) {
166 rm_ = no_reg; 166 rm_ = no_reg;
167 imm32_ = immediate; 167 imm32_ = immediate;
168 rmode_ = rmode; 168 rmode_ = rmode;
169 } 169 }
170 170
171 171
172 Operand::Operand(const char* s) {
173 rm_ = no_reg;
174 imm32_ = reinterpret_cast<int32_t>(s);
175 rmode_ = RelocInfo::EMBEDDED_STRING;
176 }
177
178
179 Operand::Operand(const ExternalReference& f) { 172 Operand::Operand(const ExternalReference& f) {
180 rm_ = no_reg; 173 rm_ = no_reg;
181 imm32_ = reinterpret_cast<int32_t>(f.address()); 174 imm32_ = reinterpret_cast<int32_t>(f.address());
182 rmode_ = RelocInfo::EXTERNAL_REFERENCE; 175 rmode_ = RelocInfo::EXTERNAL_REFERENCE;
183 } 176 }
184 177
185 178
186 Operand::Operand(Smi* value) { 179 Operand::Operand(Smi* value) {
187 rm_ = no_reg; 180 rm_ = no_reg;
188 imm32_ = reinterpret_cast<intptr_t>(value); 181 imm32_ = reinterpret_cast<intptr_t>(value);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // CPU::FlushICache(pc, sizeof(target)); 266 // CPU::FlushICache(pc, sizeof(target));
274 // However, on ARM, no instruction was actually patched by the assignment 267 // However, on ARM, no instruction was actually patched by the assignment
275 // above; the target address is not part of an instruction, it is patched in 268 // above; the target address is not part of an instruction, it is patched in
276 // the constant pool and is read via a data access; the instruction accessing 269 // the constant pool and is read via a data access; the instruction accessing
277 // this address in the constant pool remains unchanged. 270 // this address in the constant pool remains unchanged.
278 } 271 }
279 272
280 } } // namespace v8::internal 273 } } // namespace v8::internal
281 274
282 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 275 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698