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

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

Issue 5899002: Fix several register allocation issues revealed by fuzzer: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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 | « no previous file | src/lithium-allocator.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 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 ASSERT(instr->value()->representation().IsTagged()); 1643 ASSERT(instr->value()->representation().IsTagged());
1644 LOperand* value = UseRegisterAtStart(instr->value()); 1644 LOperand* value = UseRegisterAtStart(instr->value());
1645 1645
1646 return DefineAsRegister(new LIsNull(value, 1646 return DefineAsRegister(new LIsNull(value,
1647 instr->is_strict())); 1647 instr->is_strict()));
1648 } 1648 }
1649 1649
1650 1650
1651 LInstruction* LChunkBuilder::DoIsObject(HIsObject* instr) { 1651 LInstruction* LChunkBuilder::DoIsObject(HIsObject* instr) {
1652 ASSERT(instr->value()->representation().IsTagged()); 1652 ASSERT(instr->value()->representation().IsTagged());
1653 LOperand* value = UseRegisterAtStart(instr->value()); 1653 LOperand* value = UseRegister(instr->value());
1654 1654
1655 return DefineAsRegister(new LIsObject(value, TempRegister())); 1655 return DefineAsRegister(new LIsObject(value, TempRegister()));
1656 } 1656 }
1657 1657
1658 1658
1659 LInstruction* LChunkBuilder::DoIsSmi(HIsSmi* instr) { 1659 LInstruction* LChunkBuilder::DoIsSmi(HIsSmi* instr) {
1660 ASSERT(instr->value()->representation().IsTagged()); 1660 ASSERT(instr->value()->representation().IsTagged());
1661 LOperand* value = UseAtStart(instr->value()); 1661 LOperand* value = UseAtStart(instr->value());
1662 1662
1663 return DefineAsRegister(new LIsSmi(value)); 1663 return DefineAsRegister(new LIsSmi(value));
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 void LPointerMap::PrintTo(StringStream* stream) const { 2131 void LPointerMap::PrintTo(StringStream* stream) const {
2132 stream->Add("{"); 2132 stream->Add("{");
2133 for (int i = 0; i < pointer_operands_.length(); ++i) { 2133 for (int i = 0; i < pointer_operands_.length(); ++i) {
2134 if (i != 0) stream->Add(";"); 2134 if (i != 0) stream->Add(";");
2135 pointer_operands_[i]->PrintTo(stream); 2135 pointer_operands_[i]->PrintTo(stream);
2136 } 2136 }
2137 stream->Add("} @%d", position()); 2137 stream->Add("} @%d", position());
2138 } 2138 }
2139 2139
2140 } } // namespace v8::internal 2140 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698