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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 7596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7607 SetOperandAt(0, context); | 7607 SetOperandAt(0, context); |
7608 set_representation(Representation::Tagged()); | 7608 set_representation(Representation::Tagged()); |
7609 SetChangesFlag(kNewSpacePromotion); | 7609 SetChangesFlag(kNewSpacePromotion); |
7610 } | 7610 } |
7611 | 7611 |
7612 bool IsDeletable() const OVERRIDE { return true; } | 7612 bool IsDeletable() const OVERRIDE { return true; } |
7613 | 7613 |
7614 class FunctionKindField : public BitField<FunctionKind, 0, 4> {}; | 7614 class FunctionKindField : public BitField<FunctionKind, 0, 4> {}; |
7615 class PretenureField : public BitField<bool, 5, 1> {}; | 7615 class PretenureField : public BitField<bool, 5, 1> {}; |
7616 class HasNoLiteralsField : public BitField<bool, 6, 1> {}; | 7616 class HasNoLiteralsField : public BitField<bool, 6, 1> {}; |
7617 STATIC_ASSERT(LANGUAGE_END == 2); | 7617 STATIC_ASSERT(LANGUAGE_END == 3); |
7618 class LanguageModeField : public BitField<LanguageMode, 7, 1> {}; | 7618 class LanguageModeField : public BitField<LanguageMode, 7, 2> {}; |
7619 | 7619 |
7620 Handle<SharedFunctionInfo> shared_info_; | 7620 Handle<SharedFunctionInfo> shared_info_; |
7621 uint32_t bit_field_; | 7621 uint32_t bit_field_; |
7622 }; | 7622 }; |
7623 | 7623 |
7624 | 7624 |
7625 class HTypeof FINAL : public HTemplateInstruction<2> { | 7625 class HTypeof FINAL : public HTemplateInstruction<2> { |
7626 public: | 7626 public: |
7627 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HTypeof, HValue*); | 7627 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HTypeof, HValue*); |
7628 | 7628 |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7995 }; | 7995 }; |
7996 | 7996 |
7997 | 7997 |
7998 | 7998 |
7999 #undef DECLARE_INSTRUCTION | 7999 #undef DECLARE_INSTRUCTION |
8000 #undef DECLARE_CONCRETE_INSTRUCTION | 8000 #undef DECLARE_CONCRETE_INSTRUCTION |
8001 | 8001 |
8002 } } // namespace v8::internal | 8002 } } // namespace v8::internal |
8003 | 8003 |
8004 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 8004 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |