| 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 #include <sstream> | 5 #include <sstream> | 
| 6 | 6 | 
| 7 #include "src/v8.h" | 7 #include "src/v8.h" | 
| 8 | 8 | 
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 | 
| 10 | 10 | 
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1632     LInstruction* result = use_lea | 1632     LInstruction* result = use_lea | 
| 1633         ? DefineAsRegister(add) | 1633         ? DefineAsRegister(add) | 
| 1634         : DefineSameAsFirst(add); | 1634         : DefineSameAsFirst(add); | 
| 1635     if (can_overflow) { | 1635     if (can_overflow) { | 
| 1636       result = AssignEnvironment(result); | 1636       result = AssignEnvironment(result); | 
| 1637     } | 1637     } | 
| 1638     return result; | 1638     return result; | 
| 1639   } else if (instr->representation().IsDouble()) { | 1639   } else if (instr->representation().IsDouble()) { | 
| 1640     return DoArithmeticD(Token::ADD, instr); | 1640     return DoArithmeticD(Token::ADD, instr); | 
| 1641   } else if (instr->representation().IsExternal()) { | 1641   } else if (instr->representation().IsExternal()) { | 
| 1642     DCHECK(instr->left()->representation().IsExternal()); | 1642     DCHECK(instr->IsConsistentExternalRepresentation()); | 
| 1643     DCHECK(instr->right()->representation().IsInteger32()); |  | 
| 1644     DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1643     DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 
| 1645     bool use_lea = LAddI::UseLea(instr); | 1644     bool use_lea = LAddI::UseLea(instr); | 
| 1646     LOperand* left = UseRegisterAtStart(instr->left()); | 1645     LOperand* left = UseRegisterAtStart(instr->left()); | 
| 1647     HValue* right_candidate = instr->right(); | 1646     HValue* right_candidate = instr->right(); | 
| 1648     LOperand* right = use_lea | 1647     LOperand* right = use_lea | 
| 1649         ? UseRegisterOrConstantAtStart(right_candidate) | 1648         ? UseRegisterOrConstantAtStart(right_candidate) | 
| 1650         : UseOrConstantAtStart(right_candidate); | 1649         : UseOrConstantAtStart(right_candidate); | 
| 1651     LAddI* add = new(zone()) LAddI(left, right); | 1650     LAddI* add = new(zone()) LAddI(left, right); | 
| 1652     LInstruction* result = use_lea | 1651     LInstruction* result = use_lea | 
| 1653         ? DefineAsRegister(add) | 1652         ? DefineAsRegister(add) | 
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2793   LAllocateBlockContext* result = | 2792   LAllocateBlockContext* result = | 
| 2794       new(zone()) LAllocateBlockContext(context, function); | 2793       new(zone()) LAllocateBlockContext(context, function); | 
| 2795   return MarkAsCall(DefineFixed(result, esi), instr); | 2794   return MarkAsCall(DefineFixed(result, esi), instr); | 
| 2796 } | 2795 } | 
| 2797 | 2796 | 
| 2798 | 2797 | 
| 2799 }  // namespace internal | 2798 }  // namespace internal | 
| 2800 }  // namespace v8 | 2799 }  // namespace v8 | 
| 2801 | 2800 | 
| 2802 #endif  // V8_TARGET_ARCH_X87 | 2801 #endif  // V8_TARGET_ARCH_X87 | 
| OLD | NEW | 
|---|