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

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

Issue 2856543002: Use off-heap data for class check instructions (Closed)
Patch Set: Feedback from Slava: rejig inheritance of CallTargets Created 3 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
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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 void SmiTag(Register reg) { LslImmediate(reg, reg, kSmiTagSize); } 1137 void SmiTag(Register reg) { LslImmediate(reg, reg, kSmiTagSize); }
1138 void SmiTag(Register dst, Register src) { 1138 void SmiTag(Register dst, Register src) {
1139 LslImmediate(dst, src, kSmiTagSize); 1139 LslImmediate(dst, src, kSmiTagSize);
1140 } 1140 }
1141 1141
1142 void BranchIfNotSmi(Register reg, Label* label) { 1142 void BranchIfNotSmi(Register reg, Label* label) {
1143 tsti(reg, Immediate(kSmiTagMask)); 1143 tsti(reg, Immediate(kSmiTagMask));
1144 b(label, NE); 1144 b(label, NE);
1145 } 1145 }
1146 1146
1147 void BranchIfSmi(Register reg, Label* label) {
1148 tsti(reg, Immediate(kSmiTagMask));
1149 b(label, EQ);
1150 }
1151
1147 void Branch(const StubEntry& stub_entry, 1152 void Branch(const StubEntry& stub_entry,
1148 Register pp, 1153 Register pp,
1149 Patchability patchable = kNotPatchable); 1154 Patchability patchable = kNotPatchable);
1150 void BranchPatchable(const StubEntry& stub_entry); 1155 void BranchPatchable(const StubEntry& stub_entry);
1151 1156
1152 void BranchLink(const StubEntry& stub_entry, 1157 void BranchLink(const StubEntry& stub_entry,
1153 Patchability patchable = kNotPatchable); 1158 Patchability patchable = kNotPatchable);
1154 1159
1155 void BranchLinkPatchable(const StubEntry& stub_entry); 1160 void BranchLinkPatchable(const StubEntry& stub_entry);
1156 void BranchLinkToRuntime(); 1161 void BranchLinkToRuntime();
1157 1162
1158 // Emit a call that shares its object pool entries with other calls 1163 // Emit a call that shares its object pool entries with other calls
1159 // that have the same equivalence marker. 1164 // that have the same equivalence marker.
1160 void BranchLinkWithEquivalence(const StubEntry& stub_entry, 1165 void BranchLinkWithEquivalence(const StubEntry& stub_entry,
1161 const Object& equivalence); 1166 const Object& equivalence);
1162 1167
1163 // Macros accepting a pp Register argument may attempt to load values from 1168 // Macros accepting a pp Register argument may attempt to load values from
1164 // the object pool when possible. Unless you are sure that the untagged object 1169 // the object pool when possible. Unless you are sure that the untagged object
1165 // pool pointer is in another register, or that it is not available at all, 1170 // pool pointer is in another register, or that it is not available at all,
1166 // PP should be passed for pp. 1171 // PP should be passed for pp.
1172 void AddImmediate(Register dest, int64_t imm);
Vyacheslav Egorov (Google) 2017/05/09 21:07:27 It does not seem like anybody is actually using th
erikcorry 2017/05/10 08:47:43 Gone
1167 void AddImmediate(Register dest, Register rn, int64_t imm); 1173 void AddImmediate(Register dest, Register rn, int64_t imm);
1168 void AddImmediateSetFlags(Register dest, Register rn, int64_t imm); 1174 void AddImmediateSetFlags(Register dest, Register rn, int64_t imm);
1169 void SubImmediateSetFlags(Register dest, Register rn, int64_t imm); 1175 void SubImmediateSetFlags(Register dest, Register rn, int64_t imm);
1170 void AndImmediate(Register rd, Register rn, int64_t imm); 1176 void AndImmediate(Register rd, Register rn, int64_t imm);
1171 void OrImmediate(Register rd, Register rn, int64_t imm); 1177 void OrImmediate(Register rd, Register rn, int64_t imm);
1172 void XorImmediate(Register rd, Register rn, int64_t imm); 1178 void XorImmediate(Register rd, Register rn, int64_t imm);
1173 void TestImmediate(Register rn, int64_t imm); 1179 void TestImmediate(Register rn, int64_t imm);
1174 void CompareImmediate(Register rn, int64_t imm); 1180 void CompareImmediate(Register rn, int64_t imm);
1175 1181
1176 void LoadFromOffset(Register dest, 1182 void LoadFromOffset(Register dest,
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 Register value, 1919 Register value,
1914 Label* no_update); 1920 Label* no_update);
1915 1921
1916 DISALLOW_ALLOCATION(); 1922 DISALLOW_ALLOCATION();
1917 DISALLOW_COPY_AND_ASSIGN(Assembler); 1923 DISALLOW_COPY_AND_ASSIGN(Assembler);
1918 }; 1924 };
1919 1925
1920 } // namespace dart 1926 } // namespace dart
1921 1927
1922 #endif // RUNTIME_VM_ASSEMBLER_ARM64_H_ 1928 #endif // RUNTIME_VM_ASSEMBLER_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698