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

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

Issue 239283003: Teaches the register allocator about a second assembler temporary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/constants_mips.h ('k') | runtime/vm/flow_graph_allocator.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 #ifndef VM_CONSTANTS_X64_H_ 5 #ifndef VM_CONSTANTS_X64_H_
6 #define VM_CONSTANTS_X64_H_ 6 #define VM_CONSTANTS_X64_H_
7 7
8 namespace dart { 8 namespace dart {
9 9
10 enum Register { 10 enum Register {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 REX_B = 1 << 0, 78 REX_B = 1 << 0,
79 REX_X = 1 << 1, 79 REX_X = 1 << 1,
80 REX_R = 1 << 2, 80 REX_R = 1 << 2,
81 REX_W = 1 << 3, 81 REX_W = 1 << 3,
82 REX_PREFIX = 1 << 6 82 REX_PREFIX = 1 << 6
83 }; 83 };
84 84
85 85
86 // Register aliases. 86 // Register aliases.
87 const Register TMP = R11; // Used as scratch register by the assembler. 87 const Register TMP = R11; // Used as scratch register by the assembler.
88 const Register TMP2 = kNoRegister; // No second assembler scratch register.
88 const Register CTX = R14; // Caches current context in generated code. 89 const Register CTX = R14; // Caches current context in generated code.
89 // Caches object pool pointer in generated code. 90 // Caches object pool pointer in generated code.
90 const Register PP = R15; 91 const Register PP = R15;
91 const Register SPREG = RSP; // Stack pointer register. 92 const Register SPREG = RSP; // Stack pointer register.
92 const Register FPREG = RBP; // Frame pointer register. 93 const Register FPREG = RBP; // Frame pointer register.
93 const Register ICREG = RBX; // IC data register. 94 const Register ICREG = RBX; // IC data register.
94 95
95 // Exception object is passed in this register to the catch handlers when an 96 // Exception object is passed in this register to the catch handlers when an
96 // exception is thrown. 97 // exception is thrown.
97 const Register kExceptionObjectReg = RAX; 98 const Register kExceptionObjectReg = RAX;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 }; 164 };
164 165
165 166
166 // The largest multibyte nop we will emit. This could go up to 15 if it 167 // The largest multibyte nop we will emit. This could go up to 15 if it
167 // becomes important to us. 168 // becomes important to us.
168 const int MAX_NOP_SIZE = 8; 169 const int MAX_NOP_SIZE = 8;
169 170
170 } // namespace dart 171 } // namespace dart
171 172
172 #endif // VM_CONSTANTS_X64_H_ 173 #endif // VM_CONSTANTS_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_mips.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698