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

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

Issue 7290006: Relax register constraints for instructions that support memory operands on IA32. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 LOperand* left = UseRegisterAtStart(instr->left()); 1426 LOperand* left = UseRegisterAtStart(instr->left());
1427 LOperand* right = UseRegisterAtStart(instr->right()); 1427 LOperand* right = UseRegisterAtStart(instr->right());
1428 return new LCmpIDAndBranch(left, right); 1428 return new LCmpIDAndBranch(left, right);
1429 } 1429 }
1430 } 1430 }
1431 1431
1432 1432
1433 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1433 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
1434 HCompareObjectEqAndBranch* instr) { 1434 HCompareObjectEqAndBranch* instr) {
1435 LOperand* left = UseRegisterAtStart(instr->left()); 1435 LOperand* left = UseRegisterAtStart(instr->left());
1436 LOperand* right = UseRegisterAtStart(instr->right()); 1436 LOperand* right = UseAtStart(instr->right());
1437 return new LCmpObjectEqAndBranch(left, right); 1437 return new LCmpObjectEqAndBranch(left, right);
1438 } 1438 }
1439 1439
1440 1440
1441 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( 1441 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch(
1442 HCompareConstantEqAndBranch* instr) { 1442 HCompareConstantEqAndBranch* instr) {
1443 return new LCmpConstantEqAndBranch(UseRegisterAtStart(instr->value())); 1443 return new LCmpConstantEqAndBranch(UseRegisterAtStart(instr->value()));
1444 } 1444 }
1445 1445
1446 1446
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 1533
1534 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1534 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1535 LOperand* object = UseRegister(instr->value()); 1535 LOperand* object = UseRegister(instr->value());
1536 LValueOf* result = new LValueOf(object, TempRegister()); 1536 LValueOf* result = new LValueOf(object, TempRegister());
1537 return AssignEnvironment(DefineSameAsFirst(result)); 1537 return AssignEnvironment(DefineSameAsFirst(result));
1538 } 1538 }
1539 1539
1540 1540
1541 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1541 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1542 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), 1542 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()),
1543 Use(instr->length()))); 1543 UseAtStart(instr->length())));
1544 } 1544 }
1545 1545
1546 1546
1547 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1547 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1548 // The control instruction marking the end of a block that completed 1548 // The control instruction marking the end of a block that completed
1549 // abruptly (e.g., threw an exception). There is nothing specific to do. 1549 // abruptly (e.g., threw an exception). There is nothing specific to do.
1550 return NULL; 1550 return NULL;
1551 } 1551 }
1552 1552
1553 1553
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 ASSERT(to.IsDouble()); 1626 ASSERT(to.IsDouble());
1627 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value()))); 1627 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value())));
1628 } 1628 }
1629 } 1629 }
1630 UNREACHABLE(); 1630 UNREACHABLE();
1631 return NULL; 1631 return NULL;
1632 } 1632 }
1633 1633
1634 1634
1635 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 1635 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) {
1636 LOperand* value = UseRegisterAtStart(instr->value()); 1636 LOperand* value = UseAtStart(instr->value());
1637 return AssignEnvironment(new LCheckNonSmi(value)); 1637 return AssignEnvironment(new LCheckNonSmi(value));
1638 } 1638 }
1639 1639
1640 1640
1641 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1641 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1642 LOperand* value = UseRegisterAtStart(instr->value()); 1642 LOperand* value = UseRegisterAtStart(instr->value());
1643 LOperand* temp = TempRegister(); 1643 LOperand* temp = TempRegister();
1644 LCheckInstanceType* result = new LCheckInstanceType(value, temp); 1644 LCheckInstanceType* result = new LCheckInstanceType(value, temp);
1645 return AssignEnvironment(result); 1645 return AssignEnvironment(result);
1646 } 1646 }
1647 1647
1648 1648
1649 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1649 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1650 LOperand* temp = TempRegister(); 1650 LOperand* temp = TempRegister();
1651 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp); 1651 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp);
1652 return AssignEnvironment(result); 1652 return AssignEnvironment(result);
1653 } 1653 }
1654 1654
1655 1655
1656 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1656 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1657 LOperand* value = UseRegisterAtStart(instr->value()); 1657 LOperand* value = UseAtStart(instr->value());
1658 return AssignEnvironment(new LCheckSmi(value)); 1658 return AssignEnvironment(new LCheckSmi(value));
1659 } 1659 }
1660 1660
1661 1661
1662 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1662 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1663 LOperand* value = UseRegisterAtStart(instr->value()); 1663 LOperand* value = UseAtStart(instr->value());
1664 return AssignEnvironment(new LCheckFunction(value)); 1664 return AssignEnvironment(new LCheckFunction(value));
1665 } 1665 }
1666 1666
1667 1667
1668 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { 1668 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) {
1669 LOperand* value = UseRegisterAtStart(instr->value()); 1669 LOperand* value = UseRegisterAtStart(instr->value());
1670 LCheckMap* result = new LCheckMap(value); 1670 LCheckMap* result = new LCheckMap(value);
1671 return AssignEnvironment(result); 1671 return AssignEnvironment(result);
1672 } 1672 }
1673 1673
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 LOperand* key = UseOrConstantAtStart(instr->key()); 2193 LOperand* key = UseOrConstantAtStart(instr->key());
2194 LOperand* object = UseOrConstantAtStart(instr->object()); 2194 LOperand* object = UseOrConstantAtStart(instr->object());
2195 LIn* result = new LIn(key, object); 2195 LIn* result = new LIn(key, object);
2196 return MarkAsCall(DefineFixed(result, eax), instr); 2196 return MarkAsCall(DefineFixed(result, eax), instr);
2197 } 2197 }
2198 2198
2199 2199
2200 } } // namespace v8::internal 2200 } } // namespace v8::internal
2201 2201
2202 #endif // V8_TARGET_ARCH_IA32 2202 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698