| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/hydrogen-osr.h" | 7 #include "src/hydrogen-osr.h" |
| 8 #include "src/lithium-allocator-inl.h" | 8 #include "src/lithium-allocator-inl.h" |
| 9 #include "src/mips64/lithium-codegen-mips64.h" | 9 #include "src/mips64/lithium-codegen-mips64.h" |
| 10 #include "src/mips64/lithium-mips64.h" | 10 #include "src/mips64/lithium-mips64.h" |
| (...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 | 1413 |
| 1414 | 1414 |
| 1415 LInstruction* LChunkBuilder::DoModByPowerOf2I(HMod* instr) { | 1415 LInstruction* LChunkBuilder::DoModByPowerOf2I(HMod* instr) { |
| 1416 ASSERT(instr->representation().IsSmiOrInteger32()); | 1416 ASSERT(instr->representation().IsSmiOrInteger32()); |
| 1417 ASSERT(instr->left()->representation().Equals(instr->representation())); | 1417 ASSERT(instr->left()->representation().Equals(instr->representation())); |
| 1418 ASSERT(instr->right()->representation().Equals(instr->representation())); | 1418 ASSERT(instr->right()->representation().Equals(instr->representation())); |
| 1419 LOperand* dividend = UseRegisterAtStart(instr->left()); | 1419 LOperand* dividend = UseRegisterAtStart(instr->left()); |
| 1420 int32_t divisor = instr->right()->GetInteger32Constant(); | 1420 int32_t divisor = instr->right()->GetInteger32Constant(); |
| 1421 LInstruction* result = DefineSameAsFirst(new(zone()) LModByPowerOf2I( | 1421 LInstruction* result = DefineSameAsFirst(new(zone()) LModByPowerOf2I( |
| 1422 dividend, divisor)); | 1422 dividend, divisor)); |
| 1423 if (instr->CheckFlag(HValue::kBailoutOnMinusZero)) { | 1423 if (instr->CheckFlag(HValue::kLeftCanBeNegative) && |
| 1424 instr->CheckFlag(HValue::kBailoutOnMinusZero)) { |
| 1424 result = AssignEnvironment(result); | 1425 result = AssignEnvironment(result); |
| 1425 } | 1426 } |
| 1426 return result; | 1427 return result; |
| 1427 } | 1428 } |
| 1428 | 1429 |
| 1429 | 1430 |
| 1430 LInstruction* LChunkBuilder::DoModByConstI(HMod* instr) { | 1431 LInstruction* LChunkBuilder::DoModByConstI(HMod* instr) { |
| 1431 ASSERT(instr->representation().IsSmiOrInteger32()); | 1432 ASSERT(instr->representation().IsSmiOrInteger32()); |
| 1432 ASSERT(instr->left()->representation().Equals(instr->representation())); | 1433 ASSERT(instr->left()->representation().Equals(instr->representation())); |
| 1433 ASSERT(instr->right()->representation().Equals(instr->representation())); | 1434 ASSERT(instr->right()->representation().Equals(instr->representation())); |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2568 HAllocateBlockContext* instr) { | 2569 HAllocateBlockContext* instr) { |
| 2569 LOperand* context = UseFixed(instr->context(), cp); | 2570 LOperand* context = UseFixed(instr->context(), cp); |
| 2570 LOperand* function = UseRegisterAtStart(instr->function()); | 2571 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2571 LAllocateBlockContext* result = | 2572 LAllocateBlockContext* result = |
| 2572 new(zone()) LAllocateBlockContext(context, function); | 2573 new(zone()) LAllocateBlockContext(context, function); |
| 2573 return MarkAsCall(DefineFixed(result, cp), instr); | 2574 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2574 } | 2575 } |
| 2575 | 2576 |
| 2576 | 2577 |
| 2577 } } // namespace v8::internal | 2578 } } // namespace v8::internal |
| OLD | NEW |