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

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

Issue 9117034: New class for Date objects: caches individual date components. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add constant for index of first barrier-free slot. Created 8 years, 11 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/x64/lithium-x64.h ('k') | test/mjsunit/fuzz-natives.js » ('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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 } 1582 }
1583 1583
1584 1584
1585 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1585 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1586 LOperand* object = UseRegister(instr->value()); 1586 LOperand* object = UseRegister(instr->value());
1587 LValueOf* result = new LValueOf(object); 1587 LValueOf* result = new LValueOf(object);
1588 return DefineSameAsFirst(result); 1588 return DefineSameAsFirst(result);
1589 } 1589 }
1590 1590
1591 1591
1592 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1593 LOperand* date = UseRegister(instr->value());
1594 LDateField* result = new LDateField(date, instr->index());
1595 return DefineSameAsFirst(result);
1596 }
1597
1598
1599 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) {
1600 LOperand* date = UseRegister(instr->OperandAt(1));
1601 LOperand* value = UseRegister(instr->OperandAt(2));
1602 LSetDateField* result = new LSetDateField(date, value, instr->index());
1603 return DefineAsRegister(result);
1604 }
1605
1606
1592 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1607 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1593 return AssignEnvironment(new LBoundsCheck( 1608 return AssignEnvironment(new LBoundsCheck(
1594 UseRegisterOrConstantAtStart(instr->index()), 1609 UseRegisterOrConstantAtStart(instr->index()),
1595 Use(instr->length()))); 1610 Use(instr->length())));
1596 } 1611 }
1597 1612
1598 1613
1599 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1614 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1600 // The control instruction marking the end of a block that completed 1615 // The control instruction marking the end of a block that completed
1601 // abruptly (e.g., threw an exception). There is nothing specific to do. 1616 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 LOperand* key = UseOrConstantAtStart(instr->key()); 2288 LOperand* key = UseOrConstantAtStart(instr->key());
2274 LOperand* object = UseOrConstantAtStart(instr->object()); 2289 LOperand* object = UseOrConstantAtStart(instr->object());
2275 LIn* result = new LIn(key, object); 2290 LIn* result = new LIn(key, object);
2276 return MarkAsCall(DefineFixed(result, rax), instr); 2291 return MarkAsCall(DefineFixed(result, rax), instr);
2277 } 2292 }
2278 2293
2279 2294
2280 } } // namespace v8::internal 2295 } } // namespace v8::internal
2281 2296
2282 #endif // V8_TARGET_ARCH_X64 2297 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/fuzz-natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698