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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-x87.h ('k') | src/full-codegen/arm/full-codegen-arm.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/x87/lithium-x87.h" 5 #include "src/crankshaft/x87/lithium-x87.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 TempRegister()); 1784 TempRegister());
1785 } 1785 }
1786 1786
1787 1787
1788 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1788 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1789 LOperand* map = UseRegisterAtStart(instr->value()); 1789 LOperand* map = UseRegisterAtStart(instr->value());
1790 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1790 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1791 } 1791 }
1792 1792
1793 1793
1794 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1795 LOperand* date = UseFixed(instr->value(), eax);
1796 LDateField* result =
1797 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1798 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1799 }
1800
1801
1802 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1794 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1803 LOperand* string = UseRegisterAtStart(instr->string()); 1795 LOperand* string = UseRegisterAtStart(instr->string());
1804 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1796 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1805 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1797 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1806 } 1798 }
1807 1799
1808 1800
1809 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { 1801 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) {
1810 if (instr->encoding() == String::ONE_BYTE_ENCODING) { 1802 if (instr->encoding() == String::ONE_BYTE_ENCODING) {
1811 if (FLAG_debug_code) { 1803 if (FLAG_debug_code) {
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2699 LAllocateBlockContext* result = 2691 LAllocateBlockContext* result =
2700 new(zone()) LAllocateBlockContext(context, function); 2692 new(zone()) LAllocateBlockContext(context, function);
2701 return MarkAsCall(DefineFixed(result, esi), instr); 2693 return MarkAsCall(DefineFixed(result, esi), instr);
2702 } 2694 }
2703 2695
2704 2696
2705 } // namespace internal 2697 } // namespace internal
2706 } // namespace v8 2698 } // namespace v8
2707 2699
2708 #endif // V8_TARGET_ARCH_X87 2700 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-x87.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698