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

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

Issue 1174913002: X87: [date] Refactor the %_DateField intrinsic to be optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/lithium-codegen-x87.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_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1814 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1815 LOperand* map = UseRegisterAtStart(instr->value()); 1815 LOperand* map = UseRegisterAtStart(instr->value());
1816 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1816 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1817 } 1817 }
1818 1818
1819 1819
1820 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1820 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1821 LOperand* date = UseFixed(instr->value(), eax); 1821 LOperand* date = UseFixed(instr->value(), eax);
1822 LDateField* result = 1822 LDateField* result =
1823 new(zone()) LDateField(date, FixedTemp(ecx), instr->index()); 1823 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1824 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1824 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1825 } 1825 }
1826 1826
1827 1827
1828 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1828 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1829 LOperand* string = UseRegisterAtStart(instr->string()); 1829 LOperand* string = UseRegisterAtStart(instr->string());
1830 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1830 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1831 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1831 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1832 } 1832 }
1833 1833
1834 1834
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2736 LAllocateBlockContext* result = 2736 LAllocateBlockContext* result =
2737 new(zone()) LAllocateBlockContext(context, function); 2737 new(zone()) LAllocateBlockContext(context, function);
2738 return MarkAsCall(DefineFixed(result, esi), instr); 2738 return MarkAsCall(DefineFixed(result, esi), instr);
2739 } 2739 }
2740 2740
2741 2741
2742 } // namespace internal 2742 } // namespace internal
2743 } // namespace v8 2743 } // namespace v8
2744 2744
2745 #endif // V8_TARGET_ARCH_X87 2745 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698