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

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

Issue 1167813003: [date] Refactor the %_DateField intrinsic to be optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 6 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/arm/full-codegen-arm.cc ('k') | src/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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1848 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1849 LOperand* map = UseRegisterAtStart(instr->value()); 1849 LOperand* map = UseRegisterAtStart(instr->value());
1850 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1850 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1851 } 1851 }
1852 1852
1853 1853
1854 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1854 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1855 LOperand* object = UseFixed(instr->value(), r0); 1855 LOperand* object = UseFixed(instr->value(), r0);
1856 LDateField* result = 1856 LDateField* result =
1857 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); 1857 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1858 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); 1858 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1859 } 1859 }
1860 1860
1861 1861
1862 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1862 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1863 LOperand* string = UseRegisterAtStart(instr->string()); 1863 LOperand* string = UseRegisterAtStart(instr->string());
1864 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1864 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1865 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1865 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1866 } 1866 }
1867 1867
1868 1868
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 HAllocateBlockContext* instr) { 2667 HAllocateBlockContext* instr) {
2668 LOperand* context = UseFixed(instr->context(), cp); 2668 LOperand* context = UseFixed(instr->context(), cp);
2669 LOperand* function = UseRegisterAtStart(instr->function()); 2669 LOperand* function = UseRegisterAtStart(instr->function());
2670 LAllocateBlockContext* result = 2670 LAllocateBlockContext* result =
2671 new(zone()) LAllocateBlockContext(context, function); 2671 new(zone()) LAllocateBlockContext(context, function);
2672 return MarkAsCall(DefineFixed(result, cp), instr); 2672 return MarkAsCall(DefineFixed(result, cp), instr);
2673 } 2673 }
2674 2674
2675 } // namespace internal 2675 } // namespace internal
2676 } // namespace v8 2676 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698