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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm64/lithium-arm64.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 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 if (instr->representation().IsSmi() && constant_value > 0) { 692 if (instr->representation().IsSmi() && constant_value > 0) {
693 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToSmi); 693 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToSmi);
694 } 694 }
695 } else { 695 } else {
696 right = UseRegisterAtStart(right_value); 696 right = UseRegisterAtStart(right_value);
697 } 697 }
698 698
699 // Shift operations can only deoptimize if we do a logical shift 699 // Shift operations can only deoptimize if we do a logical shift
700 // by 0 and the result cannot be truncated to int32. 700 // by 0 and the result cannot be truncated to int32.
701 if (op == Token::SHR && constant_value == 0) { 701 if (op == Token::SHR && constant_value == 0) {
702 if (FLAG_opt_safe_uint32_operations) { 702 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
703 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
704 } else {
705 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToInt32);
706 }
707 } 703 }
708 704
709 LInstruction* result = 705 LInstruction* result =
710 DefineAsRegister(new(zone()) LShiftI(op, left, right, does_deopt)); 706 DefineAsRegister(new(zone()) LShiftI(op, left, right, does_deopt));
711 return does_deopt ? AssignEnvironment(result) : result; 707 return does_deopt ? AssignEnvironment(result) : result;
712 } else { 708 } else {
713 return DoArithmeticT(op, instr); 709 return DoArithmeticT(op, instr);
714 } 710 }
715 } 711 }
716 712
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2631 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2636 HAllocateBlockContext* instr) { 2632 HAllocateBlockContext* instr) {
2637 LOperand* context = UseFixed(instr->context(), cp); 2633 LOperand* context = UseFixed(instr->context(), cp);
2638 LOperand* function = UseRegisterAtStart(instr->function()); 2634 LOperand* function = UseRegisterAtStart(instr->function());
2639 LAllocateBlockContext* result = 2635 LAllocateBlockContext* result =
2640 new(zone()) LAllocateBlockContext(context, function); 2636 new(zone()) LAllocateBlockContext(context, function);
2641 return MarkAsCall(DefineFixed(result, cp), instr); 2637 return MarkAsCall(DefineFixed(result, cp), instr);
2642 } 2638 }
2643 2639
2644 } } // namespace v8::internal 2640 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698