| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/arm64/lithium-codegen-arm64.h" | 9 #include "src/arm64/lithium-codegen-arm64.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 UseRegisterOrConstantAtStart(instr->BetterRightOperand()); | 881 UseRegisterOrConstantAtStart(instr->BetterRightOperand()); |
| 882 LInstruction* result = instr->representation().IsSmi() ? | 882 LInstruction* result = instr->representation().IsSmi() ? |
| 883 DefineAsRegister(new(zone()) LAddS(left, right)) : | 883 DefineAsRegister(new(zone()) LAddS(left, right)) : |
| 884 DefineAsRegister(new(zone()) LAddI(left, right)); | 884 DefineAsRegister(new(zone()) LAddI(left, right)); |
| 885 if (instr->CheckFlag(HValue::kCanOverflow)) { | 885 if (instr->CheckFlag(HValue::kCanOverflow)) { |
| 886 result = AssignEnvironment(result); | 886 result = AssignEnvironment(result); |
| 887 } | 887 } |
| 888 return result; | 888 return result; |
| 889 } else if (instr->representation().IsExternal()) { | 889 } else if (instr->representation().IsExternal()) { |
| 890 DCHECK(instr->left()->representation().IsExternal()); | 890 DCHECK(instr->left()->representation().IsExternal()); |
| 891 DCHECK(instr->right()->representation().IsInteger32()); | 891 DCHECK(instr->right()->representation().IsInteger32() || |
| 892 instr->right()->representation().IsTagged()); |
| 892 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 893 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
| 893 LOperand* left = UseRegisterAtStart(instr->left()); | 894 LOperand* left = UseRegisterAtStart(instr->left()); |
| 894 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); | 895 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
| 895 return DefineAsRegister(new(zone()) LAddE(left, right)); | 896 return DefineAsRegister(new(zone()) LAddE(left, right)); |
| 896 } else if (instr->representation().IsDouble()) { | 897 } else if (instr->representation().IsDouble()) { |
| 897 return DoArithmeticD(Token::ADD, instr); | 898 return DoArithmeticD(Token::ADD, instr); |
| 898 } else { | 899 } else { |
| 899 DCHECK(instr->representation().IsTagged()); | 900 DCHECK(instr->representation().IsTagged()); |
| 900 return DoArithmeticT(Token::ADD, instr); | 901 return DoArithmeticT(Token::ADD, instr); |
| 901 } | 902 } |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2783 LOperand* context = UseFixed(instr->context(), cp); | 2784 LOperand* context = UseFixed(instr->context(), cp); |
| 2784 LOperand* function = UseRegisterAtStart(instr->function()); | 2785 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2785 LAllocateBlockContext* result = | 2786 LAllocateBlockContext* result = |
| 2786 new(zone()) LAllocateBlockContext(context, function); | 2787 new(zone()) LAllocateBlockContext(context, function); |
| 2787 return MarkAsCall(DefineFixed(result, cp), instr); | 2788 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2788 } | 2789 } |
| 2789 | 2790 |
| 2790 | 2791 |
| 2791 } // namespace internal | 2792 } // namespace internal |
| 2792 } // namespace v8 | 2793 } // namespace v8 |
| OLD | NEW |