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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // Multiple receiver types have been seen. | 667 // Multiple receiver types have been seen. |
668 POLYMORPHIC, | 668 POLYMORPHIC, |
669 // Many receiver types have been seen. | 669 // Many receiver types have been seen. |
670 MEGAMORPHIC, | 670 MEGAMORPHIC, |
671 // A generic handler is installed and no extra typefeedback is recorded. | 671 // A generic handler is installed and no extra typefeedback is recorded. |
672 GENERIC, | 672 GENERIC, |
673 }; | 673 }; |
674 | 674 |
675 enum WhereToStart { kStartAtReceiver, kStartAtPrototype }; | 675 enum WhereToStart { kStartAtReceiver, kStartAtPrototype }; |
676 | 676 |
| 677 enum ResultSentinel { kNotFound = -1, kUnsupported = -2 }; |
| 678 |
677 // The Store Buffer (GC). | 679 // The Store Buffer (GC). |
678 typedef enum { | 680 typedef enum { |
679 kStoreBufferFullEvent, | 681 kStoreBufferFullEvent, |
680 kStoreBufferStartScanningPagesEvent, | 682 kStoreBufferStartScanningPagesEvent, |
681 kStoreBufferScanningPageEvent | 683 kStoreBufferScanningPageEvent |
682 } StoreBufferEvent; | 684 } StoreBufferEvent; |
683 | 685 |
684 | 686 |
685 typedef void (*StoreBufferCallback)(Heap* heap, | 687 typedef void (*StoreBufferCallback)(Heap* heap, |
686 MemoryChunk* page, | 688 MemoryChunk* page, |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 } // namespace internal | 1423 } // namespace internal |
1422 } // namespace v8 | 1424 } // namespace v8 |
1423 | 1425 |
1424 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is | 1426 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
1425 // reducing a JSArray method, or a JSTypedArray method. | 1427 // reducing a JSArray method, or a JSTypedArray method. |
1426 enum class ArrayIteratorKind { kArray, kTypedArray }; | 1428 enum class ArrayIteratorKind { kArray, kTypedArray }; |
1427 | 1429 |
1428 namespace i = v8::internal; | 1430 namespace i = v8::internal; |
1429 | 1431 |
1430 #endif // V8_GLOBALS_H_ | 1432 #endif // V8_GLOBALS_H_ |
OLD | NEW |