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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 14556020: Remove HLoadElements instruction and replace with use of more general HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
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 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 for (int i = 0; i < map_set()->length(); i++) { 1594 for (int i = 0; i < map_set()->length(); i++) {
1595 if (map_unique_id == map_unique_ids_.at(i)) { 1595 if (map_unique_id == map_unique_ids_.at(i)) {
1596 DeleteAndReplaceWith(NULL); 1596 DeleteAndReplaceWith(NULL);
1597 return; 1597 return;
1598 } 1598 }
1599 } 1599 }
1600 } 1600 }
1601 } 1601 }
1602 1602
1603 1603
1604 void HLoadElements::PrintDataTo(StringStream* stream) {
1605 value()->PrintNameTo(stream);
1606 if (HasTypeCheck()) {
1607 stream->Add(" ");
1608 typecheck()->PrintNameTo(stream);
1609 }
1610 }
1611
1612
1613 void HCheckMaps::PrintDataTo(StringStream* stream) { 1604 void HCheckMaps::PrintDataTo(StringStream* stream) {
1614 value()->PrintNameTo(stream); 1605 value()->PrintNameTo(stream);
1615 stream->Add(" [%p", *map_set()->first()); 1606 stream->Add(" [%p", *map_set()->first());
1616 for (int i = 1; i < map_set()->length(); ++i) { 1607 for (int i = 1; i < map_set()->length(); ++i) {
1617 stream->Add(",%p", *map_set()->at(i)); 1608 stream->Add(",%p", *map_set()->at(i));
1618 } 1609 }
1619 stream->Add("]"); 1610 stream->Add("]");
1620 } 1611 }
1621 1612
1622 1613
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 3638
3648 3639
3649 void HCheckFunction::Verify() { 3640 void HCheckFunction::Verify() {
3650 HInstruction::Verify(); 3641 HInstruction::Verify();
3651 ASSERT(HasNoUses()); 3642 ASSERT(HasNoUses());
3652 } 3643 }
3653 3644
3654 #endif 3645 #endif
3655 3646
3656 } } // namespace v8::internal 3647 } } // namespace v8::internal
OLDNEW
« .gitignore ('K') | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698