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

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

Issue 6793040: Remove unused last_pc_ in AssemblerX64. (Closed)
Patch Set: Created 9 years, 8 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
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 if (from.IsTagged()) { 1606 if (from.IsTagged()) {
1607 if (to.IsDouble()) { 1607 if (to.IsDouble()) {
1608 LOperand* value = UseRegister(instr->value()); 1608 LOperand* value = UseRegister(instr->value());
1609 LNumberUntagD* res = new LNumberUntagD(value); 1609 LNumberUntagD* res = new LNumberUntagD(value);
1610 return AssignEnvironment(DefineAsRegister(res)); 1610 return AssignEnvironment(DefineAsRegister(res));
1611 } else { 1611 } else {
1612 ASSERT(to.IsInteger32()); 1612 ASSERT(to.IsInteger32());
1613 LOperand* value = UseRegister(instr->value()); 1613 LOperand* value = UseRegister(instr->value());
1614 bool needs_check = !instr->value()->type().IsSmi(); 1614 bool needs_check = !instr->value()->type().IsSmi();
1615 if (needs_check) { 1615 if (needs_check) {
1616 LOperand* xmm_temp = 1616 LOperand* xmm_temp = instr->CanTruncateToInt32() ? NULL
1617 (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3)) 1617 : FixedTemp(xmm1);
1618 ? NULL
1619 : FixedTemp(xmm1);
1620 LTaggedToI* res = new LTaggedToI(value, xmm_temp); 1618 LTaggedToI* res = new LTaggedToI(value, xmm_temp);
1621 return AssignEnvironment(DefineSameAsFirst(res)); 1619 return AssignEnvironment(DefineSameAsFirst(res));
1622 } else { 1620 } else {
1623 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); 1621 return DefineSameAsFirst(new LSmiUntag(value, needs_check));
1624 } 1622 }
1625 } 1623 }
1626 } else if (from.IsDouble()) { 1624 } else if (from.IsDouble()) {
1627 if (to.IsTagged()) { 1625 if (to.IsTagged()) {
1628 LOperand* value = UseRegister(instr->value()); 1626 LOperand* value = UseRegister(instr->value());
1629 LOperand* temp = TempRegister(); 1627 LOperand* temp = TempRegister();
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 2107
2110 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2108 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2111 HEnvironment* outer = current_block_->last_environment()->outer(); 2109 HEnvironment* outer = current_block_->last_environment()->outer();
2112 current_block_->UpdateEnvironment(outer); 2110 current_block_->UpdateEnvironment(outer);
2113 return NULL; 2111 return NULL;
2114 } 2112 }
2115 2113
2116 } } // namespace v8::internal 2114 } } // namespace v8::internal
2117 2115
2118 #endif // V8_TARGET_ARCH_X64 2116 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698