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

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

Issue 6040008: ARM: Support DoCheckInstanceType in lithium codegenerator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove use of ip and unused temp register. Created 9 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/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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1755 1755
1756 1756
1757 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 1757 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) {
1758 LOperand* value = UseRegisterAtStart(instr->value()); 1758 LOperand* value = UseRegisterAtStart(instr->value());
1759 return AssignEnvironment(new LCheckSmi(value, eq)); 1759 return AssignEnvironment(new LCheckSmi(value, eq));
1760 } 1760 }
1761 1761
1762 1762
1763 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1763 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1764 LOperand* value = UseRegisterAtStart(instr->value()); 1764 LOperand* value = UseRegisterAtStart(instr->value());
1765 LOperand* temp = TempRegister(); 1765 LInstruction* result = new LCheckInstanceType(value);
1766 LInstruction* result = new LCheckInstanceType(value, temp);
1767 return AssignEnvironment(result); 1766 return AssignEnvironment(result);
1768 } 1767 }
1769 1768
1770 1769
1771 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1770 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1772 LOperand* temp1 = TempRegister(); 1771 LOperand* temp1 = TempRegister();
1773 LOperand* temp2 = TempRegister(); 1772 LOperand* temp2 = TempRegister();
1774 LInstruction* result = 1773 LInstruction* result =
1775 new LCheckPrototypeMaps(temp1, 1774 new LCheckPrototypeMaps(temp1,
1776 temp2, 1775 temp2,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 void LPointerMap::PrintTo(StringStream* stream) const { 2106 void LPointerMap::PrintTo(StringStream* stream) const {
2108 stream->Add("{"); 2107 stream->Add("{");
2109 for (int i = 0; i < pointer_operands_.length(); ++i) { 2108 for (int i = 0; i < pointer_operands_.length(); ++i) {
2110 if (i != 0) stream->Add(";"); 2109 if (i != 0) stream->Add(";");
2111 pointer_operands_[i]->PrintTo(stream); 2110 pointer_operands_[i]->PrintTo(stream);
2112 } 2111 }
2113 stream->Add("} @%d", position()); 2112 stream->Add("} @%d", position());
2114 } 2113 }
2115 2114
2116 } } // namespace v8::internal 2115 } } // 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