OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 kNumber = 0x3, | 1240 kNumber = 0x3, |
1241 kNumberOrOddball = 0x7, | 1241 kNumberOrOddball = 0x7, |
1242 kString = 0x8, | 1242 kString = 0x8, |
1243 kAny = 0x1F | 1243 kAny = 0x1F |
1244 }; | 1244 }; |
1245 }; | 1245 }; |
1246 | 1246 |
1247 // Type feedback is encoded in such a way that, we can combine the feedback | 1247 // Type feedback is encoded in such a way that, we can combine the feedback |
1248 // at different points by performing an 'OR' operation. Type feedback moves | 1248 // at different points by performing an 'OR' operation. Type feedback moves |
1249 // to a more generic type when we combine feedback. | 1249 // to a more generic type when we combine feedback. |
1250 // kSignedSmall -> kNumber -> kAny | 1250 // kSignedSmall -> kNumber -> kAny |
1251 // kInternalizedString -> kString -> kAny | 1251 // kInternalizedString -> kString -> kAny |
| 1252 // kReceiver -> kAny |
1252 // TODO(epertoso): consider unifying this with BinaryOperationFeedback. | 1253 // TODO(epertoso): consider unifying this with BinaryOperationFeedback. |
1253 class CompareOperationFeedback { | 1254 class CompareOperationFeedback { |
1254 public: | 1255 public: |
1255 enum { | 1256 enum { |
1256 kNone = 0x00, | 1257 kNone = 0x00, |
1257 kSignedSmall = 0x01, | 1258 kSignedSmall = 0x01, |
1258 kNumber = 0x3, | 1259 kNumber = 0x3, |
1259 kNumberOrOddball = 0x7, | 1260 kNumberOrOddball = 0x7, |
1260 kInternalizedString = 0x8, | 1261 kInternalizedString = 0x8, |
1261 kString = 0x18, | 1262 kString = 0x18, |
1262 kAny = 0x3F | 1263 kReceiver = 0x20, |
| 1264 kAny = 0x7F |
1263 }; | 1265 }; |
1264 }; | 1266 }; |
1265 | 1267 |
1266 // Describes how exactly a frame has been dropped from stack. | 1268 // Describes how exactly a frame has been dropped from stack. |
1267 enum LiveEditFrameDropMode { | 1269 enum LiveEditFrameDropMode { |
1268 // No frame has been dropped. | 1270 // No frame has been dropped. |
1269 LIVE_EDIT_FRAMES_UNTOUCHED, | 1271 LIVE_EDIT_FRAMES_UNTOUCHED, |
1270 // The top JS frame had been calling debug break slot stub. Patch the | 1272 // The top JS frame had been calling debug break slot stub. Patch the |
1271 // address this stub jumps to in the end. | 1273 // address this stub jumps to in the end. |
1272 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL, | 1274 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 } // namespace internal | 1329 } // namespace internal |
1328 } // namespace v8 | 1330 } // namespace v8 |
1329 | 1331 |
1330 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is | 1332 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
1331 // reducing a JSArray method, or a JSTypedArray method. | 1333 // reducing a JSArray method, or a JSTypedArray method. |
1332 enum class ArrayIteratorKind { kArray, kTypedArray }; | 1334 enum class ArrayIteratorKind { kArray, kTypedArray }; |
1333 | 1335 |
1334 namespace i = v8::internal; | 1336 namespace i = v8::internal; |
1335 | 1337 |
1336 #endif // V8_GLOBALS_H_ | 1338 #endif // V8_GLOBALS_H_ |
OLD | NEW |