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

Side by Side Diff: src/DartARM32/assembler_arm.h

Issue 1486263002: More coverage of load/stores in ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix remaining issue in patch set 2. Created 5 years 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 | « no previous file | src/DartARM32/assembler_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 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe
6 // Please update the (git) revision if we merge changes from Dart. 6 // Please update the (git) revision if we merge changes from Dart.
7 // https://code.google.com/p/dart/wiki/GettingTheSource 7 // https://code.google.com/p/dart/wiki/GettingTheSource
8 8
9 #ifndef VM_ASSEMBLER_ARM_H_ 9 #ifndef VM_ASSEMBLER_ARM_H_
10 #define VM_ASSEMBLER_ARM_H_ 10 #define VM_ASSEMBLER_ARM_H_
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 Register rm() const { 335 Register rm() const {
336 return ((kind() == IndexRegister) || (kind() == ScaledIndexRegister)) ? 336 return ((kind() == IndexRegister) || (kind() == ScaledIndexRegister)) ?
337 Instr::At(reinterpret_cast<uword>(&encoding_))->RmField() : 337 Instr::At(reinterpret_cast<uword>(&encoding_))->RmField() :
338 kNoRegister; 338 kNoRegister;
339 } 339 }
340 340
341 Mode mode() const { return static_cast<Mode>(encoding() & kModeMask); } 341 Mode mode() const { return static_cast<Mode>(encoding() & kModeMask); }
342 342
343 uint32_t encoding() const { return encoding_; } 343 uint32_t encoding() const { return encoding_; }
344 344
345 #if 0
346 // Moved to encodeImmRegOffsetEnc3 in IceAssemblerARM32.cpp
345 // Encoding for addressing mode 3. 347 // Encoding for addressing mode 3.
346 uint32_t encoding3() const; 348 uint32_t encoding3() const;
349 #endif
347 350
348 // Encoding for vfp load/store addressing. 351 // Encoding for vfp load/store addressing.
349 uint32_t vencoding() const; 352 uint32_t vencoding() const;
350 353
351 OffsetKind kind() const { return kind_; } 354 OffsetKind kind() const { return kind_; }
352 355
353 uint32_t encoding_; 356 uint32_t encoding_;
354 357
355 OffsetKind kind_; 358 OffsetKind kind_;
356 359
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1179
1177 // Moved to ARM32::AssemblerARM32::emitType05() 1180 // Moved to ARM32::AssemblerARM32::emitType05()
1178 void EmitType5(Condition cond, int32_t offset, bool link); 1181 void EmitType5(Condition cond, int32_t offset, bool link);
1179 1182
1180 // Moved to ARM32::AssemberARM32::emitMemOp() 1183 // Moved to ARM32::AssemberARM32::emitMemOp()
1181 void EmitMemOp(Condition cond, 1184 void EmitMemOp(Condition cond,
1182 bool load, 1185 bool load,
1183 bool byte, 1186 bool byte,
1184 Register rd, 1187 Register rd,
1185 Address ad); 1188 Address ad);
1186 #endif
1187 1189
1190 // Moved to AssemblerARM32::emitMemOpEnc3();
1188 void EmitMemOpAddressMode3(Condition cond, 1191 void EmitMemOpAddressMode3(Condition cond,
1189 int32_t mode, 1192 int32_t mode,
1190 Register rd, 1193 Register rd,
1191 Address ad); 1194 Address ad);
1192 1195
1193 #if 0
1194 // Moved to ARM32::AssemblerARM32::emitMultiMemOp() 1196 // Moved to ARM32::AssemblerARM32::emitMultiMemOp()
1195 void EmitMultiMemOp(Condition cond, 1197 void EmitMultiMemOp(Condition cond,
1196 BlockAddressMode am, 1198 BlockAddressMode am,
1197 bool load, 1199 bool load,
1198 Register base, 1200 Register base,
1199 RegList regs); 1201 RegList regs);
1200 #endif 1202 #endif
1201 1203
1202 void EmitShiftImmediate(Condition cond, 1204 void EmitShiftImmediate(Condition cond,
1203 Shift opcode, 1205 Shift opcode,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 // ARM32::AssemblerARM::uxt() (uxtb and uxth). 1317 // ARM32::AssemblerARM::uxt() (uxtb and uxth).
1316 #endif 1318 #endif
1317 1319
1318 DISALLOW_ALLOCATION(); 1320 DISALLOW_ALLOCATION();
1319 DISALLOW_COPY_AND_ASSIGN(Assembler); 1321 DISALLOW_COPY_AND_ASSIGN(Assembler);
1320 }; 1322 };
1321 1323
1322 } // namespace dart 1324 } // namespace dart
1323 1325
1324 #endif // VM_ASSEMBLER_ARM_H_ 1326 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/DartARM32/assembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698