| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 7428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7439 | 7439 |
| 7440 // Indicates that asm->wasm conversion failed and should not be re-attempted. | 7440 // Indicates that asm->wasm conversion failed and should not be re-attempted. |
| 7441 DECL_BOOLEAN_ACCESSORS(is_asm_wasm_broken) | 7441 DECL_BOOLEAN_ACCESSORS(is_asm_wasm_broken) |
| 7442 | 7442 |
| 7443 // Indicates that the function cannot cause side-effects. | 7443 // Indicates that the function cannot cause side-effects. |
| 7444 DECL_BOOLEAN_ACCESSORS(has_no_side_effect) | 7444 DECL_BOOLEAN_ACCESSORS(has_no_side_effect) |
| 7445 | 7445 |
| 7446 // Indicates that |has_no_side_effect| has been computed and set. | 7446 // Indicates that |has_no_side_effect| has been computed and set. |
| 7447 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) | 7447 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) |
| 7448 | 7448 |
| 7449 // Indicates that the function should be skipped during stepping. |
| 7450 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) |
| 7451 |
| 7449 inline FunctionKind kind() const; | 7452 inline FunctionKind kind() const; |
| 7450 inline void set_kind(FunctionKind kind); | 7453 inline void set_kind(FunctionKind kind); |
| 7451 | 7454 |
| 7452 // Indicates whether or not the code in the shared function support | 7455 // Indicates whether or not the code in the shared function support |
| 7453 // deoptimization. | 7456 // deoptimization. |
| 7454 inline bool has_deoptimization_support(); | 7457 inline bool has_deoptimization_support(); |
| 7455 | 7458 |
| 7456 // Enable deoptimization support through recompiled code. | 7459 // Enable deoptimization support through recompiled code. |
| 7457 void EnableDeoptimizationSupport(Code* recompiled); | 7460 void EnableDeoptimizationSupport(Code* recompiled); |
| 7458 | 7461 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7728 | 7731 |
| 7729 kUnused, // unused. | 7732 kUnused, // unused. |
| 7730 // byte 2 | 7733 // byte 2 |
| 7731 kFunctionKind, | 7734 kFunctionKind, |
| 7732 // rest of byte 2 and first two bits of byte 3 are used by FunctionKind | 7735 // rest of byte 2 and first two bits of byte 3 are used by FunctionKind |
| 7733 // byte 3 | 7736 // byte 3 |
| 7734 kDeserialized = kFunctionKind + 10, | 7737 kDeserialized = kFunctionKind + 10, |
| 7735 kIsAsmWasmBroken, | 7738 kIsAsmWasmBroken, |
| 7736 kHasNoSideEffect, | 7739 kHasNoSideEffect, |
| 7737 kComputedHasNoSideEffect, | 7740 kComputedHasNoSideEffect, |
| 7741 kDebugIsBlackboxed, |
| 7738 kCompilerHintsCount, // Pseudo entry | 7742 kCompilerHintsCount, // Pseudo entry |
| 7739 }; | 7743 }; |
| 7740 // kFunctionKind has to be byte-aligned | 7744 // kFunctionKind has to be byte-aligned |
| 7741 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); | 7745 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); |
| 7742 | 7746 |
| 7743 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; | 7747 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; |
| 7744 | 7748 |
| 7745 class DeoptCountBits : public BitField<int, 0, 4> {}; | 7749 class DeoptCountBits : public BitField<int, 0, 4> {}; |
| 7746 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 7750 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
| 7747 class ICAgeBits : public BitField<int, 22, 8> {}; | 7751 class ICAgeBits : public BitField<int, 22, 8> {}; |
| (...skipping 3903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11651 } | 11655 } |
| 11652 }; | 11656 }; |
| 11653 | 11657 |
| 11654 | 11658 |
| 11655 } // NOLINT, false-positive due to second-order macros. | 11659 } // NOLINT, false-positive due to second-order macros. |
| 11656 } // NOLINT, false-positive due to second-order macros. | 11660 } // NOLINT, false-positive due to second-order macros. |
| 11657 | 11661 |
| 11658 #include "src/objects/object-macros-undef.h" | 11662 #include "src/objects/object-macros-undef.h" |
| 11659 | 11663 |
| 11660 #endif // V8_OBJECTS_H_ | 11664 #endif // V8_OBJECTS_H_ |
| OLD | NEW |