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

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

Issue 1156593002: Cache current thread in a reserved register and use it in LoadIsolate (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Added more comments. Created 5 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 VM_CONSTANTS_ARM64_H_ 5 #ifndef VM_CONSTANTS_ARM64_H_
6 #define VM_CONSTANTS_ARM64_H_ 6 #define VM_CONSTANTS_ARM64_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const Register TMP = R16; // Used as scratch register by assembler. 110 const Register TMP = R16; // Used as scratch register by assembler.
111 const Register TMP2 = R17; 111 const Register TMP2 = R17;
112 const Register CTX = R28; // Location of current context at method entry. 112 const Register CTX = R28; // Location of current context at method entry.
113 const Register PP = R27; // Caches object pool pointer in generated code. 113 const Register PP = R27; // Caches object pool pointer in generated code.
114 const Register kNoPP = kNoRegister; 114 const Register kNoPP = kNoRegister;
115 const Register FPREG = FP; // Frame pointer register. 115 const Register FPREG = FP; // Frame pointer register.
116 const Register SPREG = R18; // Stack pointer register. 116 const Register SPREG = R18; // Stack pointer register.
117 const Register LRREG = LR; // Link register. 117 const Register LRREG = LR; // Link register.
118 const Register ICREG = R5; // IC data register. 118 const Register ICREG = R5; // IC data register.
119 const Register ARGS_DESC_REG = R4; // Arguments descriptor register. 119 const Register ARGS_DESC_REG = R4; // Arguments descriptor register.
120 const Register THR = R20; // Caches current thread in generated code.
120 121
121 // Exception object is passed in this register to the catch handlers when an 122 // Exception object is passed in this register to the catch handlers when an
122 // exception is thrown. 123 // exception is thrown.
123 const Register kExceptionObjectReg = R0; 124 const Register kExceptionObjectReg = R0;
124 125
125 // Stack trace object is passed in this register to the catch handlers when 126 // Stack trace object is passed in this register to the catch handlers when
126 // an exception is thrown. 127 // an exception is thrown.
127 const Register kStackTraceObjectReg = R1; 128 const Register kStackTraceObjectReg = R1;
128 129
129 // Masks, sizes, etc. 130 // Masks, sizes, etc.
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } 1068 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); }
1068 1069
1069 private: 1070 private:
1070 DISALLOW_ALLOCATION(); 1071 DISALLOW_ALLOCATION();
1071 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 1072 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
1072 }; 1073 };
1073 1074
1074 } // namespace dart 1075 } // namespace dart
1075 1076
1076 #endif // VM_CONSTANTS_ARM64_H_ 1077 #endif // VM_CONSTANTS_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698