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

Side by Side Diff: runtime/vm/constants_ia32.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
« no previous file with comments | « no previous file | runtime/vm/constants_x64.h » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 PARITY_EVEN = 10, 87 PARITY_EVEN = 10,
88 PARITY_ODD = 11, 88 PARITY_ODD = 11,
89 LESS = 12, 89 LESS = 12,
90 GREATER_EQUAL = 13, 90 GREATER_EQUAL = 13,
91 LESS_EQUAL = 14, 91 LESS_EQUAL = 14,
92 GREATER = 15, 92 GREATER = 15,
93 93
94 ZERO = EQUAL, 94 ZERO = EQUAL,
95 NOT_ZERO = NOT_EQUAL, 95 NOT_ZERO = NOT_EQUAL,
96 NEGATIVE = SIGN, 96 NEGATIVE = SIGN,
97 POSITIVE = NOT_SIGN 97 POSITIVE = NOT_SIGN,
98 CARRY = BELOW,
99 NOT_CARRY = ABOVE_EQUAL
98 }; 100 };
99 101
100 102
101 class Instr { 103 class Instr {
102 public: 104 public:
103 static const uint8_t kHltInstruction = 0xF4; 105 static const uint8_t kHltInstruction = 0xF4;
104 // We prefer not to use the int3 instruction since it conflicts with gdb. 106 // We prefer not to use the int3 instruction since it conflicts with gdb.
105 static const uint8_t kBreakPointInstruction = kHltInstruction; 107 static const uint8_t kBreakPointInstruction = kHltInstruction;
106 static const int kBreakPointInstructionSize = 1; 108 static const int kBreakPointInstructionSize = 1;
107 109
(...skipping 15 matching lines...) Expand all
123 }; 125 };
124 126
125 127
126 // The largest multibyte nop we will emit. This could go up to 15 if it 128 // The largest multibyte nop we will emit. This could go up to 15 if it
127 // becomes important to us. 129 // becomes important to us.
128 const int MAX_NOP_SIZE = 8; 130 const int MAX_NOP_SIZE = 8;
129 131
130 } // namespace dart 132 } // namespace dart
131 133
132 #endif // VM_CONSTANTS_IA32_H_ 134 #endif // VM_CONSTANTS_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/constants_x64.h » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698