| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 MONOMORPHIC, | 574 MONOMORPHIC, |
| 575 // Check failed due to prototype (or map deprecation). | 575 // Check failed due to prototype (or map deprecation). |
| 576 PROTOTYPE_FAILURE, | 576 PROTOTYPE_FAILURE, |
| 577 // Multiple receiver types have been seen. | 577 // Multiple receiver types have been seen. |
| 578 POLYMORPHIC, | 578 POLYMORPHIC, |
| 579 // Many receiver types have been seen. | 579 // Many receiver types have been seen. |
| 580 MEGAMORPHIC, | 580 MEGAMORPHIC, |
| 581 // A generic handler is installed and no extra typefeedback is recorded. | 581 // A generic handler is installed and no extra typefeedback is recorded. |
| 582 GENERIC, | 582 GENERIC, |
| 583 // Special state for debug break or step in prepare stubs. | 583 // Special state for debug break or step in prepare stubs. |
| 584 DEBUG_STUB, | 584 DEBUG_STUB |
| 585 // Type-vector-based ICs have a default state, with the full calculation | |
| 586 // of IC state only determined by a look at the IC and the typevector | |
| 587 // together. | |
| 588 DEFAULT | |
| 589 }; | 585 }; |
| 590 | 586 |
| 591 | 587 |
| 592 enum CallFunctionFlags { | 588 enum CallFunctionFlags { |
| 593 NO_CALL_FUNCTION_FLAGS, | 589 NO_CALL_FUNCTION_FLAGS, |
| 594 CALL_AS_METHOD, | 590 CALL_AS_METHOD, |
| 595 // Always wrap the receiver and call to the JSFunction. Only use this flag | 591 // Always wrap the receiver and call to the JSFunction. Only use this flag |
| 596 // both the receiver type and the target method are statically known. | 592 // both the receiver type and the target method are statically known. |
| 597 WRAP_AND_CALL | 593 WRAP_AND_CALL |
| 598 }; | 594 }; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1015 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 1020 DCHECK(IsValidFunctionKind(kind)); | 1016 DCHECK(IsValidFunctionKind(kind)); |
| 1021 return kind; | 1017 return kind; |
| 1022 } | 1018 } |
| 1023 } // namespace internal | 1019 } // namespace internal |
| 1024 } // namespace v8 | 1020 } // namespace v8 |
| 1025 | 1021 |
| 1026 namespace i = v8::internal; | 1022 namespace i = v8::internal; |
| 1027 | 1023 |
| 1028 #endif // V8_GLOBALS_H_ | 1024 #endif // V8_GLOBALS_H_ |
| OLD | NEW |