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

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

Issue 19774007: Collect both arguments for math's min/max static functions. Later that information will be used to … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CTX = R15; // Caches current context in generated code. 88 const Register CTX = R15; // Caches current context in generated code.
89 const Register PP = kNoRegister; // No object pool pointer. 89 const Register PP = kNoRegister; // No object pool pointer.
90 const Register SPREG = RSP; // Stack pointer register. 90 const Register SPREG = RSP; // Stack pointer register.
91 const Register FPREG = RBP; // Frame pointer register. 91 const Register FPREG = RBP; // Frame pointer register.
92 const Register ICREG = RBX; // IC data register.
92 93
93 // Exception object is passed in this register to the catch handlers when an 94 // Exception object is passed in this register to the catch handlers when an
94 // exception is thrown. 95 // exception is thrown.
95 const Register kExceptionObjectReg = RAX; 96 const Register kExceptionObjectReg = RAX;
96 97
97 // Stack trace object is passed in this register to the catch handlers when 98 // Stack trace object is passed in this register to the catch handlers when
98 // an exception is thrown. 99 // an exception is thrown.
99 const Register kStackTraceObjectReg = RDX; 100 const Register kStackTraceObjectReg = RDX;
100 101
101 102
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 }; 162 };
162 163
163 164
164 // The largest multibyte nop we will emit. This could go up to 15 if it 165 // The largest multibyte nop we will emit. This could go up to 15 if it
165 // becomes important to us. 166 // becomes important to us.
166 const int MAX_NOP_SIZE = 8; 167 const int MAX_NOP_SIZE = 8;
167 168
168 } // namespace dart 169 } // namespace dart
169 170
170 #endif // VM_CONSTANTS_X64_H_ 171 #endif // VM_CONSTANTS_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698