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

Side by Side 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: Add DST test and fix bugs. 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
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 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 } 1640 }
1641 1641
1642 1642
1643 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1643 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1644 LOperand* object = UseRegister(instr->value()); 1644 LOperand* object = UseRegister(instr->value());
1645 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); 1645 LValueOf* result = new(zone()) LValueOf(object, TempRegister());
1646 return DefineSameAsFirst(result); 1646 return DefineSameAsFirst(result);
1647 } 1647 }
1648 1648
1649 1649
1650 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1651 LOperand* date = UseFixed(instr->value(), eax);
1652 LDateField* result =
1653 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1654 return MarkAsCall(DefineFixed(result, eax), instr);
1655 }
1656
1657
1650 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1658 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1651 return AssignEnvironment(new(zone()) LBoundsCheck( 1659 return AssignEnvironment(new(zone()) LBoundsCheck(
1652 UseRegisterOrConstantAtStart(instr->index()), 1660 UseRegisterOrConstantAtStart(instr->index()),
1653 UseAtStart(instr->length()))); 1661 UseAtStart(instr->length())));
1654 } 1662 }
1655 1663
1656 1664
1657 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1665 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1658 // The control instruction marking the end of a block that completed 1666 // The control instruction marking the end of a block that completed
1659 // abruptly (e.g., threw an exception). There is nothing specific to do. 1667 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2451 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2444 LOperand* object = UseRegister(instr->object()); 2452 LOperand* object = UseRegister(instr->object());
2445 LOperand* index = UseTempRegister(instr->index()); 2453 LOperand* index = UseTempRegister(instr->index());
2446 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2454 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2447 } 2455 }
2448 2456
2449 2457
2450 } } // namespace v8::internal 2458 } } // namespace v8::internal
2451 2459
2452 #endif // V8_TARGET_ARCH_IA32 2460 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698