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

Side by Side Diff: runtime/vm/constants_ia32.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 | « no previous file | runtime/vm/constants_x64.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_IA32_H_ 5 #ifndef VM_CONSTANTS_IA32_H_
6 #define VM_CONSTANTS_IA32_H_ 6 #define VM_CONSTANTS_IA32_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const Register kExceptionObjectReg = EAX; 62 const Register kExceptionObjectReg = EAX;
63 63
64 // Stack trace object is passed in this register to the catch handlers when 64 // Stack trace object is passed in this register to the catch handlers when
65 // an exception is thrown. 65 // an exception is thrown.
66 const Register kStackTraceObjectReg = EDX; 66 const Register kStackTraceObjectReg = EDX;
67 67
68 enum ScaleFactor { 68 enum ScaleFactor {
69 TIMES_1 = 0, 69 TIMES_1 = 0,
70 TIMES_2 = 1, 70 TIMES_2 = 1,
71 TIMES_4 = 2, 71 TIMES_4 = 2,
72 TIMES_8 = 3 72 TIMES_8 = 3,
73 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1
73 }; 74 };
74 75
75 76
76 enum Condition { 77 enum Condition {
77 OVERFLOW = 0, 78 OVERFLOW = 0,
78 NO_OVERFLOW = 1, 79 NO_OVERFLOW = 1,
79 BELOW = 2, 80 BELOW = 2,
80 ABOVE_EQUAL = 3, 81 ABOVE_EQUAL = 3,
81 EQUAL = 4, 82 EQUAL = 4,
82 NOT_EQUAL = 5, 83 NOT_EQUAL = 5,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 }; 126 };
126 127
127 128
128 // The largest multibyte nop we will emit. This could go up to 15 if it 129 // The largest multibyte nop we will emit. This could go up to 15 if it
129 // becomes important to us. 130 // becomes important to us.
130 const int MAX_NOP_SIZE = 8; 131 const int MAX_NOP_SIZE = 8;
131 132
132 } // namespace dart 133 } // namespace dart
133 134
134 #endif // VM_CONSTANTS_IA32_H_ 135 #endif // VM_CONSTANTS_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/constants_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698