| 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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 enum { | 1231 enum { |
| 1232 kNone = 0x0, | 1232 kNone = 0x0, |
| 1233 kSignedSmall = 0x1, | 1233 kSignedSmall = 0x1, |
| 1234 kNumber = 0x3, | 1234 kNumber = 0x3, |
| 1235 kNumberOrOddball = 0x7, | 1235 kNumberOrOddball = 0x7, |
| 1236 kString = 0x8, | 1236 kString = 0x8, |
| 1237 kAny = 0x1F | 1237 kAny = 0x1F |
| 1238 }; | 1238 }; |
| 1239 }; | 1239 }; |
| 1240 | 1240 |
| 1241 // Type feedback is encoded in such a way that, we can combine the feedback |
| 1242 // at different points by performing an 'OR' operation. Type feedback moves |
| 1243 // to a more generic type when we combine feedback. |
| 1244 // kSignedSmall -> kNumber -> kAny |
| 1245 // kString -> kAny |
| 1241 // TODO(epertoso): consider unifying this with BinaryOperationFeedback. | 1246 // TODO(epertoso): consider unifying this with BinaryOperationFeedback. |
| 1242 class CompareOperationFeedback { | 1247 class CompareOperationFeedback { |
| 1243 public: | 1248 public: |
| 1244 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; | 1249 enum { |
| 1250 kNone = 0x00, |
| 1251 kSignedSmall = 0x01, |
| 1252 kNumber = 0x3, |
| 1253 kString = 0x4, |
| 1254 kAny = 0xf |
| 1255 }; |
| 1245 }; | 1256 }; |
| 1246 | 1257 |
| 1247 // Describes how exactly a frame has been dropped from stack. | 1258 // Describes how exactly a frame has been dropped from stack. |
| 1248 enum LiveEditFrameDropMode { | 1259 enum LiveEditFrameDropMode { |
| 1249 // No frame has been dropped. | 1260 // No frame has been dropped. |
| 1250 LIVE_EDIT_FRAMES_UNTOUCHED, | 1261 LIVE_EDIT_FRAMES_UNTOUCHED, |
| 1251 // The top JS frame had been calling debug break slot stub. Patch the | 1262 // The top JS frame had been calling debug break slot stub. Patch the |
| 1252 // address this stub jumps to in the end. | 1263 // address this stub jumps to in the end. |
| 1253 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL, | 1264 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL, |
| 1254 // The top JS frame had been calling some C++ function. The return address | 1265 // The top JS frame had been calling some C++ function. The return address |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 } // namespace internal | 1308 } // namespace internal |
| 1298 } // namespace v8 | 1309 } // namespace v8 |
| 1299 | 1310 |
| 1300 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is | 1311 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
| 1301 // reducing a JSArray method, or a JSTypedArray method. | 1312 // reducing a JSArray method, or a JSTypedArray method. |
| 1302 enum class ArrayIteratorKind { kArray, kTypedArray }; | 1313 enum class ArrayIteratorKind { kArray, kTypedArray }; |
| 1303 | 1314 |
| 1304 namespace i = v8::internal; | 1315 namespace i = v8::internal; |
| 1305 | 1316 |
| 1306 #endif // V8_GLOBALS_H_ | 1317 #endif // V8_GLOBALS_H_ |
| OLD | NEW |