OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
108 V(InstanceSize) \ | 108 V(InstanceSize) \ |
109 V(InstructionGap) \ | 109 V(InstructionGap) \ |
110 V(Integer32ToDouble) \ | 110 V(Integer32ToDouble) \ |
111 V(Integer32ToSmi) \ | 111 V(Integer32ToSmi) \ |
112 V(InvokeFunction) \ | 112 V(InvokeFunction) \ |
113 V(IsConstructCallAndBranch) \ | 113 V(IsConstructCallAndBranch) \ |
114 V(IsObjectAndBranch) \ | 114 V(IsObjectAndBranch) \ |
115 V(IsStringAndBranch) \ | 115 V(IsStringAndBranch) \ |
116 V(IsSmiAndBranch) \ | 116 V(IsSmiAndBranch) \ |
| 117 V(IsNumberAndBranch) \ |
117 V(IsUndetectableAndBranch) \ | 118 V(IsUndetectableAndBranch) \ |
118 V(Label) \ | 119 V(Label) \ |
119 V(LazyBailout) \ | 120 V(LazyBailout) \ |
120 V(LoadContextSlot) \ | 121 V(LoadContextSlot) \ |
121 V(LoadExternalArrayPointer) \ | 122 V(LoadExternalArrayPointer) \ |
122 V(LoadFieldByIndex) \ | 123 V(LoadFieldByIndex) \ |
123 V(LoadFunctionPrototype) \ | 124 V(LoadFunctionPrototype) \ |
124 V(LoadGlobalCell) \ | 125 V(LoadGlobalCell) \ |
125 V(LoadGlobalGeneric) \ | 126 V(LoadGlobalGeneric) \ |
126 V(LoadKeyed) \ | 127 V(LoadKeyed) \ |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 | 876 |
876 LOperand* value() { return inputs_[0]; } | 877 LOperand* value() { return inputs_[0]; } |
877 | 878 |
878 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 879 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
879 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 880 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
880 | 881 |
881 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 882 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
882 }; | 883 }; |
883 | 884 |
884 | 885 |
| 886 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { |
| 887 public: |
| 888 explicit LIsNumberAndBranch(LOperand* value) { |
| 889 inputs_[0] = value; |
| 890 } |
| 891 |
| 892 LOperand* value() { return inputs_[0]; } |
| 893 |
| 894 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 895 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 896 }; |
| 897 |
| 898 |
885 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { | 899 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
886 public: | 900 public: |
887 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { | 901 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { |
888 inputs_[0] = value; | 902 inputs_[0] = value; |
889 temps_[0] = temp; | 903 temps_[0] = temp; |
890 } | 904 } |
891 | 905 |
892 LOperand* value() { return inputs_[0]; } | 906 LOperand* value() { return inputs_[0]; } |
893 LOperand* temp() { return temps_[0]; } | 907 LOperand* temp() { return temps_[0]; } |
894 | 908 |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 public: | 2042 public: |
2029 LTaggedToI(LOperand* value, LOperand* temp) { | 2043 LTaggedToI(LOperand* value, LOperand* temp) { |
2030 inputs_[0] = value; | 2044 inputs_[0] = value; |
2031 temps_[0] = temp; | 2045 temps_[0] = temp; |
2032 } | 2046 } |
2033 | 2047 |
2034 LOperand* value() { return inputs_[0]; } | 2048 LOperand* value() { return inputs_[0]; } |
2035 LOperand* temp() { return temps_[0]; } | 2049 LOperand* temp() { return temps_[0]; } |
2036 | 2050 |
2037 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2051 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
2038 DECLARE_HYDROGEN_ACCESSOR(Change) | 2052 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
2039 | 2053 |
2040 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2054 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
2041 }; | 2055 }; |
2042 | 2056 |
2043 | 2057 |
2044 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2058 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
2045 public: | 2059 public: |
2046 explicit LSmiTag(LOperand* value) { | 2060 explicit LSmiTag(LOperand* value) { |
2047 inputs_[0] = value; | 2061 inputs_[0] = value; |
2048 } | 2062 } |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2680 int* argument_index_accumulator, | 2694 int* argument_index_accumulator, |
2681 ZoneList<HValue*>* objects_to_materialize); | 2695 ZoneList<HValue*>* objects_to_materialize); |
2682 | 2696 |
2683 void VisitInstruction(HInstruction* current); | 2697 void VisitInstruction(HInstruction* current); |
2684 | 2698 |
2685 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2699 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
2686 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2700 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
2687 LInstruction* DoArithmeticD(Token::Value op, | 2701 LInstruction* DoArithmeticD(Token::Value op, |
2688 HArithmeticBinaryOperation* instr); | 2702 HArithmeticBinaryOperation* instr); |
2689 LInstruction* DoArithmeticT(Token::Value op, | 2703 LInstruction* DoArithmeticT(Token::Value op, |
2690 HBinaryOperation* instr); | 2704 HArithmeticBinaryOperation* instr); |
2691 | 2705 |
2692 LPlatformChunk* chunk_; | 2706 LPlatformChunk* chunk_; |
2693 CompilationInfo* info_; | 2707 CompilationInfo* info_; |
2694 HGraph* const graph_; | 2708 HGraph* const graph_; |
2695 Zone* zone_; | 2709 Zone* zone_; |
2696 Status status_; | 2710 Status status_; |
2697 HInstruction* current_instruction_; | 2711 HInstruction* current_instruction_; |
2698 HBasicBlock* current_block_; | 2712 HBasicBlock* current_block_; |
2699 HBasicBlock* next_block_; | 2713 HBasicBlock* next_block_; |
2700 int argument_count_; | 2714 int argument_count_; |
2701 LAllocator* allocator_; | 2715 LAllocator* allocator_; |
2702 int position_; | 2716 int position_; |
2703 LInstruction* instruction_pending_deoptimization_environment_; | 2717 LInstruction* instruction_pending_deoptimization_environment_; |
2704 BailoutId pending_deoptimization_ast_id_; | 2718 BailoutId pending_deoptimization_ast_id_; |
2705 | 2719 |
2706 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2707 }; | 2721 }; |
2708 | 2722 |
2709 #undef DECLARE_HYDROGEN_ACCESSOR | 2723 #undef DECLARE_HYDROGEN_ACCESSOR |
2710 #undef DECLARE_CONCRETE_INSTRUCTION | 2724 #undef DECLARE_CONCRETE_INSTRUCTION |
2711 | 2725 |
2712 } } // namespace v8::int | 2726 } } // namespace v8::int |
2713 | 2727 |
2714 #endif // V8_X64_LITHIUM_X64_H_ | 2728 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |