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

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

Issue 630023002: Remove FLAG_opt_safe_uint32_operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 if (instr->representation().IsSmi() && constant_value > 0) { 699 if (instr->representation().IsSmi() && constant_value > 0) {
700 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToSmi); 700 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToSmi);
701 } 701 }
702 } else { 702 } else {
703 right = UseRegisterAtStart(right_value); 703 right = UseRegisterAtStart(right_value);
704 } 704 }
705 705
706 // Shift operations can only deoptimize if we do a logical shift 706 // Shift operations can only deoptimize if we do a logical shift
707 // by 0 and the result cannot be truncated to int32. 707 // by 0 and the result cannot be truncated to int32.
708 if (op == Token::SHR && constant_value == 0) { 708 if (op == Token::SHR && constant_value == 0) {
709 if (FLAG_opt_safe_uint32_operations) { 709 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
710 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
711 } else {
712 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToInt32);
713 }
714 } 710 }
715 711
716 LInstruction* result = 712 LInstruction* result =
717 DefineAsRegister(new(zone()) LShiftI(op, left, right, does_deopt)); 713 DefineAsRegister(new(zone()) LShiftI(op, left, right, does_deopt));
718 return does_deopt ? AssignEnvironment(result) : result; 714 return does_deopt ? AssignEnvironment(result) : result;
719 } else { 715 } else {
720 return DoArithmeticT(op, instr); 716 return DoArithmeticT(op, instr);
721 } 717 }
722 } 718 }
723 719
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 LOperand* function = UseRegisterAtStart(instr->function()); 2583 LOperand* function = UseRegisterAtStart(instr->function());
2588 LAllocateBlockContext* result = 2584 LAllocateBlockContext* result =
2589 new(zone()) LAllocateBlockContext(context, function); 2585 new(zone()) LAllocateBlockContext(context, function);
2590 return MarkAsCall(DefineFixed(result, cp), instr); 2586 return MarkAsCall(DefineFixed(result, cp), instr);
2591 } 2587 }
2592 2588
2593 2589
2594 } } // namespace v8::internal 2590 } } // namespace v8::internal
2595 2591
2596 #endif // V8_TARGET_ARCH_MIPS64 2592 #endif // V8_TARGET_ARCH_MIPS64
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