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

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

Issue 313083008: Add LoadTaggedClassIdMayBeSmi to assembly and improve performance of inline cache stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | « runtime/vm/assembler_arm.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 VM_ASSEMBLER_ARM64_H_ 5 #ifndef VM_ASSEMBLER_ARM64_H_
6 #define VM_ASSEMBLER_ARM64_H_ 6 #define VM_ASSEMBLER_ARM64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef 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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 void PushObject(const Object& object, Register pp) { 1163 void PushObject(const Object& object, Register pp) {
1164 LoadObject(TMP, object, pp); 1164 LoadObject(TMP, object, pp);
1165 Push(TMP); 1165 Push(TMP);
1166 } 1166 }
1167 void CompareObject(Register reg, const Object& object, Register pp); 1167 void CompareObject(Register reg, const Object& object, Register pp);
1168 1168
1169 void LoadClassId(Register result, Register object, Register pp); 1169 void LoadClassId(Register result, Register object, Register pp);
1170 void LoadClassById(Register result, Register class_id, Register pp); 1170 void LoadClassById(Register result, Register class_id, Register pp);
1171 void LoadClass(Register result, Register object, Register pp); 1171 void LoadClass(Register result, Register object, Register pp);
1172 void CompareClassId(Register object, intptr_t class_id, Register pp); 1172 void CompareClassId(Register object, intptr_t class_id, Register pp);
1173 void LoadTaggedClassIdMayBeSmi(Register result, Register object);
1173 1174
1174 void EnterFrame(intptr_t frame_size); 1175 void EnterFrame(intptr_t frame_size);
1175 void LeaveFrame(); 1176 void LeaveFrame();
1176 1177
1177 // When entering Dart code from C++, we copy the system stack pointer (CSP) 1178 // When entering Dart code from C++, we copy the system stack pointer (CSP)
1178 // to the Dart stack pointer (SP), and reserve a little space for the stack 1179 // to the Dart stack pointer (SP), and reserve a little space for the stack
1179 // to grow. 1180 // to grow.
1180 void SetupDartSP(intptr_t reserved_space) { 1181 void SetupDartSP(intptr_t reserved_space) {
1181 ASSERT(Utils::IsAligned(reserved_space, 16)); 1182 ASSERT(Utils::IsAligned(reserved_space, 16));
1182 mov(SP, CSP); 1183 mov(SP, CSP);
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 Register value, 1670 Register value,
1670 Label* no_update); 1671 Label* no_update);
1671 1672
1672 DISALLOW_ALLOCATION(); 1673 DISALLOW_ALLOCATION();
1673 DISALLOW_COPY_AND_ASSIGN(Assembler); 1674 DISALLOW_COPY_AND_ASSIGN(Assembler);
1674 }; 1675 };
1675 1676
1676 } // namespace dart 1677 } // namespace dart
1677 1678
1678 #endif // VM_ASSEMBLER_ARM64_H_ 1679 #endif // VM_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698