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

Unified Diff: src/ia32/lithium-ia32.cc

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/lithium-ia32.cc
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
index db8fa2a637e861336a34dd6686cac853e9308b59..223fde2be58c7d58b92e428c82981ddd41668c5c 100644
--- a/src/ia32/lithium-ia32.cc
+++ b/src/ia32/lithium-ia32.cc
@@ -1648,19 +1648,10 @@ LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
- LOperand* date = UseRegister(instr->value());
+ LOperand* date = UseFixed(instr->value(), eax);
LDateField* result =
- new(zone()) LDateField(date, TempRegister(), instr->index());
- return DefineSameAsFirst(result);
-}
-
-
-LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) {
- LOperand* date = UseTempRegister(instr->OperandAt(1));
- LOperand* value = UseTempRegister(instr->OperandAt(2));
- LSetDateField* result =
- new(zone()) LSetDateField(date, value, TempRegister(), instr->index());
- return DefineAsRegister(result);
+ new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
+ return MarkAsCall(DefineFixed(result, eax), instr);
}
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698