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

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

Issue 1167813003: [date] Refactor the %_DateField intrinsic to be optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 6 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/lithium-codegen-x64.cc ('k') | no next file » | 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_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 1786
1787 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1787 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1788 LOperand* map = UseRegisterAtStart(instr->value()); 1788 LOperand* map = UseRegisterAtStart(instr->value());
1789 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1789 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1790 } 1790 }
1791 1791
1792 1792
1793 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1793 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1794 LOperand* object = UseFixed(instr->value(), rax); 1794 LOperand* object = UseFixed(instr->value(), rax);
1795 LDateField* result = new(zone()) LDateField(object, instr->index()); 1795 LDateField* result = new(zone()) LDateField(object, instr->index());
1796 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); 1796 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1797 } 1797 }
1798 1798
1799 1799
1800 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1800 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1801 LOperand* string = UseRegisterAtStart(instr->string()); 1801 LOperand* string = UseRegisterAtStart(instr->string());
1802 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1802 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1803 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1803 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1804 } 1804 }
1805 1805
1806 1806
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
2704 LAllocateBlockContext* result = 2704 LAllocateBlockContext* result =
2705 new(zone()) LAllocateBlockContext(context, function); 2705 new(zone()) LAllocateBlockContext(context, function);
2706 return MarkAsCall(DefineFixed(result, rsi), instr); 2706 return MarkAsCall(DefineFixed(result, rsi), instr);
2707 } 2707 }
2708 2708
2709 2709
2710 } // namespace internal 2710 } // namespace internal
2711 } // namespace v8 2711 } // namespace v8
2712 2712
2713 #endif // V8_TARGET_ARCH_X64 2713 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698