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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 // State for inline cache call sites. Aliased as IC::State. | 545 // State for inline cache call sites. Aliased as IC::State. |
546 enum InlineCacheState { | 546 enum InlineCacheState { |
547 // Has never been executed. | 547 // Has never been executed. |
548 UNINITIALIZED, | 548 UNINITIALIZED, |
549 // Has been executed but monomorhic state has been delayed. | 549 // Has been executed but monomorhic state has been delayed. |
550 PREMONOMORPHIC, | 550 PREMONOMORPHIC, |
551 // Has been executed and only one receiver type has been seen. | 551 // Has been executed and only one receiver type has been seen. |
552 MONOMORPHIC, | 552 MONOMORPHIC, |
553 // Check failed due to prototype (or map deprecation). | 553 // Check failed due to prototype (or map deprecation). |
554 PROTOTYPE_FAILURE, | 554 RECOMPUTE_HANDLER, |
555 // Multiple receiver types have been seen. | 555 // Multiple receiver types have been seen. |
556 POLYMORPHIC, | 556 POLYMORPHIC, |
557 // Many receiver types have been seen. | 557 // Many receiver types have been seen. |
558 MEGAMORPHIC, | 558 MEGAMORPHIC, |
559 // A generic handler is installed and no extra typefeedback is recorded. | 559 // A generic handler is installed and no extra typefeedback is recorded. |
560 GENERIC, | 560 GENERIC, |
561 // Special state for debug break or step in prepare stubs. | 561 // Special state for debug break or step in prepare stubs. |
562 DEBUG_STUB | 562 DEBUG_STUB |
563 }; | 563 }; |
564 | 564 |
565 | |
566 enum CacheHolderFlag { | 565 enum CacheHolderFlag { |
567 kCacheOnPrototype, | 566 kCacheOnPrototype, |
568 kCacheOnPrototypeReceiverIsDictionary, | 567 kCacheOnPrototypeReceiverIsDictionary, |
569 kCacheOnPrototypeReceiverIsPrimitive, | 568 kCacheOnPrototypeReceiverIsPrimitive, |
570 kCacheOnReceiver | 569 kCacheOnReceiver |
571 }; | 570 }; |
572 | 571 |
573 | 572 |
574 // The Store Buffer (GC). | 573 // The Store Buffer (GC). |
575 typedef enum { | 574 typedef enum { |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1039 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> |
1041 kPointerSizeLog2); | 1040 kPointerSizeLog2); |
1042 } | 1041 } |
1043 | 1042 |
1044 } // namespace internal | 1043 } // namespace internal |
1045 } // namespace v8 | 1044 } // namespace v8 |
1046 | 1045 |
1047 namespace i = v8::internal; | 1046 namespace i = v8::internal; |
1048 | 1047 |
1049 #endif // V8_GLOBALS_H_ | 1048 #endif // V8_GLOBALS_H_ |
OLD | NEW |