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

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

Issue 11416129: Inline [] operator on one-byte strings. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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_ia32.h ('k') | runtime/vm/flow_graph_optimizer.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const Register kExceptionObjectReg = RAX; 85 const Register kExceptionObjectReg = RAX;
86 86
87 // Stack trace object is passed in this register to the catch handlers when 87 // Stack trace object is passed in this register to the catch handlers when
88 // an exception is thrown. 88 // an exception is thrown.
89 const Register kStackTraceObjectReg = RDX; 89 const Register kStackTraceObjectReg = RDX;
90 90
91 enum ScaleFactor { 91 enum ScaleFactor {
92 TIMES_1 = 0, 92 TIMES_1 = 0,
93 TIMES_2 = 1, 93 TIMES_2 = 1,
94 TIMES_4 = 2, 94 TIMES_4 = 2,
95 TIMES_8 = 3 95 TIMES_8 = 3,
96 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1
96 }; 97 };
97 98
98 99
99 enum Condition { 100 enum Condition {
100 OVERFLOW = 0, 101 OVERFLOW = 0,
101 NO_OVERFLOW = 1, 102 NO_OVERFLOW = 1,
102 BELOW = 2, 103 BELOW = 2,
103 ABOVE_EQUAL = 3, 104 ABOVE_EQUAL = 3,
104 EQUAL = 4, 105 EQUAL = 4,
105 NOT_EQUAL = 5, 106 NOT_EQUAL = 5,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 }; 149 };
149 150
150 151
151 // The largest multibyte nop we will emit. This could go up to 15 if it 152 // The largest multibyte nop we will emit. This could go up to 15 if it
152 // becomes important to us. 153 // becomes important to us.
153 const int MAX_NOP_SIZE = 8; 154 const int MAX_NOP_SIZE = 8;
154 155
155 } // namespace dart 156 } // namespace dart
156 157
157 #endif // VM_CONSTANTS_X64_H_ 158 #endif // VM_CONSTANTS_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_ia32.h ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698