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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.cc

Issue 1579613002: [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: As per offline discussion, remove the weird test, which does not add a lot of value. Created 4 years, 11 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/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.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 "src/crankshaft/ia32/lithium-ia32.h" 5 #include "src/crankshaft/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 TempRegister()); 1779 TempRegister());
1780 } 1780 }
1781 1781
1782 1782
1783 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1783 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1784 LOperand* map = UseRegisterAtStart(instr->value()); 1784 LOperand* map = UseRegisterAtStart(instr->value());
1785 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1785 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1786 } 1786 }
1787 1787
1788 1788
1789 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1790 LOperand* date = UseFixed(instr->value(), eax);
1791 LDateField* result =
1792 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1793 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1794 }
1795
1796
1797 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1789 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1798 LOperand* string = UseRegisterAtStart(instr->string()); 1790 LOperand* string = UseRegisterAtStart(instr->string());
1799 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1791 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1800 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1792 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1801 } 1793 }
1802 1794
1803 1795
1804 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { 1796 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) {
1805 if (instr->encoding() == String::ONE_BYTE_ENCODING) { 1797 if (instr->encoding() == String::ONE_BYTE_ENCODING) {
1806 if (FLAG_debug_code) { 1798 if (FLAG_debug_code) {
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 LAllocateBlockContext* result = 2687 LAllocateBlockContext* result =
2696 new(zone()) LAllocateBlockContext(context, function); 2688 new(zone()) LAllocateBlockContext(context, function);
2697 return MarkAsCall(DefineFixed(result, esi), instr); 2689 return MarkAsCall(DefineFixed(result, esi), instr);
2698 } 2690 }
2699 2691
2700 2692
2701 } // namespace internal 2693 } // namespace internal
2702 } // namespace v8 2694 } // namespace v8
2703 2695
2704 #endif // V8_TARGET_ARCH_IA32 2696 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698