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

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

Issue 6221003: Use HIR accessor for CheckPrototypeMaps to remove the duplicate members in li... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' 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/ia32/lithium-ia32.h ('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 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1604 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1605 LOperand* value = UseRegisterAtStart(instr->value()); 1605 LOperand* value = UseRegisterAtStart(instr->value());
1606 LOperand* temp = TempRegister(); 1606 LOperand* temp = TempRegister();
1607 LCheckInstanceType* result = new LCheckInstanceType(value, temp); 1607 LCheckInstanceType* result = new LCheckInstanceType(value, temp);
1608 return AssignEnvironment(result); 1608 return AssignEnvironment(result);
1609 } 1609 }
1610 1610
1611 1611
1612 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1612 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1613 LOperand* temp = TempRegister(); 1613 LOperand* temp = TempRegister();
1614 LCheckPrototypeMaps* result = 1614 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp);
1615 new LCheckPrototypeMaps(temp,
1616 instr->holder(),
1617 instr->receiver_map());
1618 return AssignEnvironment(result); 1615 return AssignEnvironment(result);
1619 } 1616 }
1620 1617
1621 1618
1622 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1619 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1623 LOperand* value = UseRegisterAtStart(instr->value()); 1620 LOperand* value = UseRegisterAtStart(instr->value());
1624 return AssignEnvironment(new LCheckSmi(value, not_zero)); 1621 return AssignEnvironment(new LCheckSmi(value, not_zero));
1625 } 1622 }
1626 1623
1627 1624
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 void LPointerMap::PrintTo(StringStream* stream) { 1925 void LPointerMap::PrintTo(StringStream* stream) {
1929 stream->Add("{"); 1926 stream->Add("{");
1930 for (int i = 0; i < pointer_operands_.length(); ++i) { 1927 for (int i = 0; i < pointer_operands_.length(); ++i) {
1931 if (i != 0) stream->Add(";"); 1928 if (i != 0) stream->Add(";");
1932 pointer_operands_[i]->PrintTo(stream); 1929 pointer_operands_[i]->PrintTo(stream);
1933 } 1930 }
1934 stream->Add("} @%d", position()); 1931 stream->Add("} @%d", position());
1935 } 1932 }
1936 1933
1937 } } // namespace v8::internal 1934 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698