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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister()); 1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister());
1782 } 1782 }
1783 1783
1784 1784
1785 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1785 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1786 LOperand* map = UseRegisterAtStart(instr->value()); 1786 LOperand* map = UseRegisterAtStart(instr->value());
1787 return DefineAsRegister(new (zone()) LMapEnumLength(map)); 1787 return DefineAsRegister(new (zone()) LMapEnumLength(map));
1788 } 1788 }
1789 1789
1790 1790
1791 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1792 LOperand* object = UseFixed(instr->value(), r3);
1793 LDateField* result =
1794 new (zone()) LDateField(object, FixedTemp(r4), instr->index());
1795 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1796 }
1797
1798
1799 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1791 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1800 LOperand* string = UseRegisterAtStart(instr->string()); 1792 LOperand* string = UseRegisterAtStart(instr->string());
1801 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1793 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1802 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); 1794 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index));
1803 } 1795 }
1804 1796
1805 1797
1806 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1798 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1807 LOperand* string = UseRegisterAtStart(instr->string()); 1799 LOperand* string = UseRegisterAtStart(instr->string());
1808 LOperand* index = FLAG_debug_code 1800 LOperand* index = FLAG_debug_code
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2578 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2587 HAllocateBlockContext* instr) { 2579 HAllocateBlockContext* instr) {
2588 LOperand* context = UseFixed(instr->context(), cp); 2580 LOperand* context = UseFixed(instr->context(), cp);
2589 LOperand* function = UseRegisterAtStart(instr->function()); 2581 LOperand* function = UseRegisterAtStart(instr->function());
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 } // namespace internal 2586 } // namespace internal
2595 } // namespace v8 2587 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698