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

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

Issue 10917223: Guard against allocation top overflow in ObjectArray_Allocate intrinsic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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) 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 PARITY_EVEN = 10, 102 PARITY_EVEN = 10,
103 PARITY_ODD = 11, 103 PARITY_ODD = 11,
104 LESS = 12, 104 LESS = 12,
105 GREATER_EQUAL = 13, 105 GREATER_EQUAL = 13,
106 LESS_EQUAL = 14, 106 LESS_EQUAL = 14,
107 GREATER = 15, 107 GREATER = 15,
108 108
109 ZERO = EQUAL, 109 ZERO = EQUAL,
110 NOT_ZERO = NOT_EQUAL, 110 NOT_ZERO = NOT_EQUAL,
111 NEGATIVE = SIGN, 111 NEGATIVE = SIGN,
112 POSITIVE = NOT_SIGN 112 POSITIVE = NOT_SIGN,
113 CARRY = BELOW,
114 NOT_CARRY = ABOVE_EQUAL
113 }; 115 };
114 116
115 117
116 class Instr { 118 class Instr {
117 public: 119 public:
118 static const uint8_t kHltInstruction = 0xF4; 120 static const uint8_t kHltInstruction = 0xF4;
119 // We prefer not to use the int3 instruction since it conflicts with gdb. 121 // We prefer not to use the int3 instruction since it conflicts with gdb.
120 static const uint8_t kBreakPointInstruction = kHltInstruction; 122 static const uint8_t kBreakPointInstruction = kHltInstruction;
121 static const int kBreakPointInstructionSize = 1; 123 static const int kBreakPointInstructionSize = 1;
122 124
(...skipping 15 matching lines...) Expand all
138 }; 140 };
139 141
140 142
141 // The largest multibyte nop we will emit. This could go up to 15 if it 143 // The largest multibyte nop we will emit. This could go up to 15 if it
142 // becomes important to us. 144 // becomes important to us.
143 const int MAX_NOP_SIZE = 8; 145 const int MAX_NOP_SIZE = 8;
144 146
145 } // namespace dart 147 } // namespace dart
146 148
147 #endif // VM_CONSTANTS_X64_H_ 149 #endif // VM_CONSTANTS_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698