Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: src/mips64/lithium-mips64.cc

Issue 423093009: Ensure LModByPowerOf2I only gets environment when it deopts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698