| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 V(Goto) \ | 100 V(Goto) \ |
| 101 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
| 102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
| 103 V(In) \ | 103 V(In) \ |
| 104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
| 105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
| 106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
| 107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
| 108 V(InvokeFunction) \ | 108 V(InvokeFunction) \ |
| 109 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
| 110 V(IsNullAndBranch) \ | 110 V(IsNilAndBranch) \ |
| 111 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
| 112 V(IsSmiAndBranch) \ | 112 V(IsSmiAndBranch) \ |
| 113 V(IsUndetectableAndBranch) \ | 113 V(IsUndetectableAndBranch) \ |
| 114 V(JSArrayLength) \ | 114 V(JSArrayLength) \ |
| 115 V(Label) \ | 115 V(Label) \ |
| 116 V(LazyBailout) \ | 116 V(LazyBailout) \ |
| 117 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
| 118 V(LoadElements) \ | 118 V(LoadElements) \ |
| 119 V(LoadExternalArrayPointer) \ | 119 V(LoadExternalArrayPointer) \ |
| 120 V(LoadFunctionPrototype) \ | 120 V(LoadFunctionPrototype) \ |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 explicit LCmpConstantEqAndBranch(LOperand* left) { | 620 explicit LCmpConstantEqAndBranch(LOperand* left) { |
| 621 inputs_[0] = left; | 621 inputs_[0] = left; |
| 622 } | 622 } |
| 623 | 623 |
| 624 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 624 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 625 "cmp-constant-eq-and-branch") | 625 "cmp-constant-eq-and-branch") |
| 626 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 626 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 | 629 |
| 630 class LIsNullAndBranch: public LControlInstruction<1, 0> { | 630 class LIsNilAndBranch: public LControlInstruction<1, 0> { |
| 631 public: | 631 public: |
| 632 explicit LIsNullAndBranch(LOperand* value) { | 632 explicit LIsNilAndBranch(LOperand* value) { |
| 633 inputs_[0] = value; | 633 inputs_[0] = value; |
| 634 } | 634 } |
| 635 | 635 |
| 636 DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch") | 636 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") |
| 637 DECLARE_HYDROGEN_ACCESSOR(IsNullAndBranch) | 637 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) |
| 638 | 638 |
| 639 bool is_strict() const { return hydrogen()->is_strict(); } | 639 EqualityKind kind() const { return hydrogen()->kind(); } |
| 640 NilValue nil() const { return hydrogen()->nil(); } |
| 640 | 641 |
| 641 virtual void PrintDataTo(StringStream* stream); | 642 virtual void PrintDataTo(StringStream* stream); |
| 642 }; | 643 }; |
| 643 | 644 |
| 644 | 645 |
| 645 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 646 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
| 646 public: | 647 public: |
| 647 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 648 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
| 648 inputs_[0] = value; | 649 inputs_[0] = value; |
| 649 temps_[0] = temp; | 650 temps_[0] = temp; |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2152 LInstruction* MarkAsCall( | 2153 LInstruction* MarkAsCall( |
| 2153 LInstruction* instr, | 2154 LInstruction* instr, |
| 2154 HInstruction* hinstr, | 2155 HInstruction* hinstr, |
| 2155 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); | 2156 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); |
| 2156 LInstruction* MarkAsSaveDoubles(LInstruction* instr); | 2157 LInstruction* MarkAsSaveDoubles(LInstruction* instr); |
| 2157 | 2158 |
| 2158 LInstruction* SetInstructionPendingDeoptimizationEnvironment( | 2159 LInstruction* SetInstructionPendingDeoptimizationEnvironment( |
| 2159 LInstruction* instr, int ast_id); | 2160 LInstruction* instr, int ast_id); |
| 2160 void ClearInstructionPendingDeoptimizationEnvironment(); | 2161 void ClearInstructionPendingDeoptimizationEnvironment(); |
| 2161 | 2162 |
| 2162 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); | 2163 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env, |
| 2164 int* argument_index_accumulator); |
| 2163 | 2165 |
| 2164 void VisitInstruction(HInstruction* current); | 2166 void VisitInstruction(HInstruction* current); |
| 2165 | 2167 |
| 2166 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2168 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
| 2167 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); | 2169 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2168 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2170 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2169 LInstruction* DoArithmeticD(Token::Value op, | 2171 LInstruction* DoArithmeticD(Token::Value op, |
| 2170 HArithmeticBinaryOperation* instr); | 2172 HArithmeticBinaryOperation* instr); |
| 2171 LInstruction* DoArithmeticT(Token::Value op, | 2173 LInstruction* DoArithmeticT(Token::Value op, |
| 2172 HArithmeticBinaryOperation* instr); | 2174 HArithmeticBinaryOperation* instr); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2186 | 2188 |
| 2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2189 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2188 }; | 2190 }; |
| 2189 | 2191 |
| 2190 #undef DECLARE_HYDROGEN_ACCESSOR | 2192 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2191 #undef DECLARE_CONCRETE_INSTRUCTION | 2193 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2192 | 2194 |
| 2193 } } // namespace v8::internal | 2195 } } // namespace v8::internal |
| 2194 | 2196 |
| 2195 #endif // V8_ARM_LITHIUM_ARM_H_ | 2197 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |