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

Side by Side Diff: runtime/vm/assembler_arm64.h

Issue 2799373002: Pass a second type argument vector to all type instantiation calls in the VM. (Closed)
Patch Set: addressed comments Created 3 years, 8 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/aot_optimizer.cc ('k') | runtime/vm/assembler_arm64.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 #ifndef RUNTIME_VM_ASSEMBLER_ARM64_H_ 5 #ifndef RUNTIME_VM_ASSEMBLER_ARM64_H_
6 #define RUNTIME_VM_ASSEMBLER_ARM64_H_ 6 #define RUNTIME_VM_ASSEMBLER_ARM64_H_
7 7
8 #ifndef RUNTIME_VM_ASSEMBLER_H_ 8 #ifndef RUNTIME_VM_ASSEMBLER_H_
9 #error Do not include assembler_arm64.h directly; use assembler.h instead. 9 #error Do not include assembler_arm64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 void negs(Register rd, Register rm) { subs(rd, ZR, Operand(rm)); } 1064 void negs(Register rd, Register rm) { subs(rd, ZR, Operand(rm)); }
1065 void mul(Register rd, Register rn, Register rm) { madd(rd, rn, rm, ZR); } 1065 void mul(Register rd, Register rn, Register rm) { madd(rd, rn, rm, ZR); }
1066 void Push(Register reg) { 1066 void Push(Register reg) {
1067 ASSERT(reg != PP); // Only push PP with TagAndPushPP(). 1067 ASSERT(reg != PP); // Only push PP with TagAndPushPP().
1068 str(reg, Address(SP, -1 * kWordSize, Address::PreIndex)); 1068 str(reg, Address(SP, -1 * kWordSize, Address::PreIndex));
1069 } 1069 }
1070 void Pop(Register reg) { 1070 void Pop(Register reg) {
1071 ASSERT(reg != PP); // Only pop PP with PopAndUntagPP(). 1071 ASSERT(reg != PP); // Only pop PP with PopAndUntagPP().
1072 ldr(reg, Address(SP, 1 * kWordSize, Address::PostIndex)); 1072 ldr(reg, Address(SP, 1 * kWordSize, Address::PostIndex));
1073 } 1073 }
1074 void PushPair(Register first, Register second) { 1074 void PushPair(Register low, Register high) {
1075 ASSERT((first != PP) && (second != PP)); 1075 ASSERT((low != PP) && (high != PP));
1076 stp(second, first, Address(SP, -2 * kWordSize, Address::PairPreIndex)); 1076 stp(low, high, Address(SP, -2 * kWordSize, Address::PairPreIndex));
1077 } 1077 }
1078 void PopPair(Register first, Register second) { 1078 void PopPair(Register low, Register high) {
1079 ASSERT((first != PP) && (second != PP)); 1079 ASSERT((low != PP) && (high != PP));
1080 ldp(second, first, Address(SP, 2 * kWordSize, Address::PairPostIndex)); 1080 ldp(low, high, Address(SP, 2 * kWordSize, Address::PairPostIndex));
1081 } 1081 }
1082 void PushFloat(VRegister reg) { 1082 void PushFloat(VRegister reg) {
1083 fstrs(reg, Address(SP, -1 * kFloatSize, Address::PreIndex)); 1083 fstrs(reg, Address(SP, -1 * kFloatSize, Address::PreIndex));
1084 } 1084 }
1085 void PushDouble(VRegister reg) { 1085 void PushDouble(VRegister reg) {
1086 fstrd(reg, Address(SP, -1 * kDoubleSize, Address::PreIndex)); 1086 fstrd(reg, Address(SP, -1 * kDoubleSize, Address::PreIndex));
1087 } 1087 }
1088 void PushQuad(VRegister reg) { 1088 void PushQuad(VRegister reg) {
1089 fstrq(reg, Address(SP, -1 * kQuadSize, Address::PreIndex)); 1089 fstrq(reg, Address(SP, -1 * kQuadSize, Address::PreIndex));
1090 } 1090 }
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 Register value, 1913 Register value,
1914 Label* no_update); 1914 Label* no_update);
1915 1915
1916 DISALLOW_ALLOCATION(); 1916 DISALLOW_ALLOCATION();
1917 DISALLOW_COPY_AND_ASSIGN(Assembler); 1917 DISALLOW_COPY_AND_ASSIGN(Assembler);
1918 }; 1918 };
1919 1919
1920 } // namespace dart 1920 } // namespace dart
1921 1921
1922 #endif // RUNTIME_VM_ASSEMBLER_ARM64_H_ 1922 #endif // RUNTIME_VM_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698