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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 TempRegister()); 1771 TempRegister());
1772 } 1772 }
1773 1773
1774 1774
1775 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1775 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1776 LOperand* map = UseRegisterAtStart(instr->value()); 1776 LOperand* map = UseRegisterAtStart(instr->value());
1777 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1777 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1778 } 1778 }
1779 1779
1780 1780
1781 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1782 LOperand* object = UseFixed(instr->value(), a0);
1783 LDateField* result =
1784 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1785 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1786 }
1787
1788
1789 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1781 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1790 LOperand* string = UseRegisterAtStart(instr->string()); 1782 LOperand* string = UseRegisterAtStart(instr->string());
1791 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1783 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1792 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1784 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1793 } 1785 }
1794 1786
1795 1787
1796 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1788 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1797 LOperand* string = UseRegisterAtStart(instr->string()); 1789 LOperand* string = UseRegisterAtStart(instr->string());
1798 LOperand* index = FLAG_debug_code 1790 LOperand* index = FLAG_debug_code
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2590 LAllocateBlockContext* result = 2582 LAllocateBlockContext* result =
2591 new(zone()) LAllocateBlockContext(context, function); 2583 new(zone()) LAllocateBlockContext(context, function);
2592 return MarkAsCall(DefineFixed(result, cp), instr); 2584 return MarkAsCall(DefineFixed(result, cp), instr);
2593 } 2585 }
2594 2586
2595 2587
2596 } // namespace internal 2588 } // namespace internal
2597 } // namespace v8 2589 } // namespace v8
2598 2590
2599 #endif // V8_TARGET_ARCH_MIPS64 2591 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698