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

Side by Side Diff: src/arm/lithium-arm.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 1596
1597 1597
1598 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1598 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1599 LOperand* object = UseRegister(instr->value()); 1599 LOperand* object = UseRegister(instr->value());
1600 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); 1600 LValueOf* result = new(zone()) LValueOf(object, TempRegister());
1601 return DefineAsRegister(result); 1601 return DefineAsRegister(result);
1602 } 1602 }
1603 1603
1604 1604
1605 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1605 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1606 LOperand* object = UseRegister(instr->value()); 1606 LOperand* object = UseFixed(instr->value(), r0);
1607 LDateField* result = new LDateField(object, TempRegister(), instr->index()); 1607 LDateField* result = new LDateField(object, FixedTemp(r1), instr->index());
1608 return DefineAsRegister(result); 1608 return MarkAsCall(DefineFixed(result, r0), instr);
1609 } 1609 }
1610 1610
1611 1611
1612 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) {
1613 LOperand* date = UseTempRegister(instr->OperandAt(1));
1614 LOperand* value = UseTempRegister(instr->OperandAt(2));
1615 LSetDateField* result =
1616 new LSetDateField(date, value, TempRegister(), instr->index());
1617 return DefineAsRegister(result);
1618 }
1619
1620
1621 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1612 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1622 LOperand* value = UseRegisterAtStart(instr->index()); 1613 LOperand* value = UseRegisterAtStart(instr->index());
1623 LOperand* length = UseRegister(instr->length()); 1614 LOperand* length = UseRegister(instr->length());
1624 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1615 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1625 } 1616 }
1626 1617
1627 1618
1628 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1619 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1629 // The control instruction marking the end of a block that completed 1620 // The control instruction marking the end of a block that completed
1630 // abruptly (e.g., threw an exception). There is nothing specific to do. 1621 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 2307
2317 2308
2318 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2309 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2319 LOperand* object = UseRegister(instr->object()); 2310 LOperand* object = UseRegister(instr->object());
2320 LOperand* index = UseRegister(instr->index()); 2311 LOperand* index = UseRegister(instr->index());
2321 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2312 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2322 } 2313 }
2323 2314
2324 2315
2325 } } // namespace v8::internal 2316 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698