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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.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 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1795 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1796 LOperand* map = UseRegisterAtStart(instr->value()); 1796 LOperand* map = UseRegisterAtStart(instr->value());
1797 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1797 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1798 } 1798 }
1799 1799
1800 1800
1801 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1801 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1802 LOperand* object = UseFixed(instr->value(), a0); 1802 LOperand* object = UseFixed(instr->value(), a0);
1803 LDateField* result = 1803 LDateField* result =
1804 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); 1804 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1805 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 1805 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1806 } 1806 }
1807 1807
1808 1808
1809 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1809 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1810 LOperand* string = UseRegisterAtStart(instr->string()); 1810 LOperand* string = UseRegisterAtStart(instr->string());
1811 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1811 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1812 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1812 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1813 } 1813 }
1814 1814
1815 1815
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 LOperand* function = UseRegisterAtStart(instr->function()); 2617 LOperand* function = UseRegisterAtStart(instr->function());
2618 LAllocateBlockContext* result = 2618 LAllocateBlockContext* result =
2619 new(zone()) LAllocateBlockContext(context, function); 2619 new(zone()) LAllocateBlockContext(context, function);
2620 return MarkAsCall(DefineFixed(result, cp), instr); 2620 return MarkAsCall(DefineFixed(result, cp), instr);
2621 } 2621 }
2622 2622
2623 } // namespace internal 2623 } // namespace internal
2624 } // namespace v8 2624 } // namespace v8
2625 2625
2626 #endif // V8_TARGET_ARCH_MIPS 2626 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698