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

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

Issue 1574223002: Revert of [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-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/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); 1818 return new(zone()) LClassOfTestAndBranch(value, TempRegister());
1819 } 1819 }
1820 1820
1821 1821
1822 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1822 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1823 LOperand* map = UseRegisterAtStart(instr->value()); 1823 LOperand* map = UseRegisterAtStart(instr->value());
1824 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1824 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1825 } 1825 }
1826 1826
1827 1827
1828 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1829 LOperand* object = UseFixed(instr->value(), r0);
1830 LDateField* result =
1831 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1832 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1833 }
1834
1835
1828 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1836 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1829 LOperand* string = UseRegisterAtStart(instr->string()); 1837 LOperand* string = UseRegisterAtStart(instr->string());
1830 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1838 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1831 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1839 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1832 } 1840 }
1833 1841
1834 1842
1835 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1843 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1836 LOperand* string = UseRegisterAtStart(instr->string()); 1844 LOperand* string = UseRegisterAtStart(instr->string());
1837 LOperand* index = FLAG_debug_code 1845 LOperand* index = FLAG_debug_code
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 HAllocateBlockContext* instr) { 2635 HAllocateBlockContext* instr) {
2628 LOperand* context = UseFixed(instr->context(), cp); 2636 LOperand* context = UseFixed(instr->context(), cp);
2629 LOperand* function = UseRegisterAtStart(instr->function()); 2637 LOperand* function = UseRegisterAtStart(instr->function());
2630 LAllocateBlockContext* result = 2638 LAllocateBlockContext* result =
2631 new(zone()) LAllocateBlockContext(context, function); 2639 new(zone()) LAllocateBlockContext(context, function);
2632 return MarkAsCall(DefineFixed(result, cp), instr); 2640 return MarkAsCall(DefineFixed(result, cp), instr);
2633 } 2641 }
2634 2642
2635 } // namespace internal 2643 } // namespace internal
2636 } // namespace v8 2644 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698