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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/macros.py » ('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_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1809 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1810 LOperand* map = UseRegisterAtStart(instr->value()); 1810 LOperand* map = UseRegisterAtStart(instr->value());
1811 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1811 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1812 } 1812 }
1813 1813
1814 1814
1815 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1815 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1816 LOperand* date = UseFixed(instr->value(), eax); 1816 LOperand* date = UseFixed(instr->value(), eax);
1817 LDateField* result = 1817 LDateField* result =
1818 new(zone()) LDateField(date, FixedTemp(ecx), instr->index()); 1818 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1819 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1819 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1820 } 1820 }
1821 1821
1822 1822
1823 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1823 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1824 LOperand* string = UseRegisterAtStart(instr->string()); 1824 LOperand* string = UseRegisterAtStart(instr->string());
1825 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1825 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1826 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1826 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1827 } 1827 }
1828 1828
1829 1829
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 LAllocateBlockContext* result = 2732 LAllocateBlockContext* result =
2733 new(zone()) LAllocateBlockContext(context, function); 2733 new(zone()) LAllocateBlockContext(context, function);
2734 return MarkAsCall(DefineFixed(result, esi), instr); 2734 return MarkAsCall(DefineFixed(result, esi), instr);
2735 } 2735 }
2736 2736
2737 2737
2738 } // namespace internal 2738 } // namespace internal
2739 } // namespace v8 2739 } // namespace v8
2740 2740
2741 #endif // V8_TARGET_ARCH_IA32 2741 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698