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

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

Issue 8305001: Introduce HTransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits fixed Created 9 years, 2 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/hydrogen-instructions.h ('k') | src/ia32/ic-ia32.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 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 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 UNREACHABLE(); 1626 UNREACHABLE();
1627 break; 1627 break;
1628 } 1628 }
1629 stream->Add("["); 1629 stream->Add("[");
1630 key()->PrintNameTo(stream); 1630 key()->PrintNameTo(stream);
1631 stream->Add("] = "); 1631 stream->Add("] = ");
1632 value()->PrintNameTo(stream); 1632 value()->PrintNameTo(stream);
1633 } 1633 }
1634 1634
1635 1635
1636 void HTransitionElementsKind::PrintDataTo(StringStream* stream) {
1637 object()->PrintNameTo(stream);
1638 stream->Add(" %p -> %p", *original_map(), *transitioned_map());
1639 }
1640
1641
1636 void HLoadGlobalCell::PrintDataTo(StringStream* stream) { 1642 void HLoadGlobalCell::PrintDataTo(StringStream* stream) {
1637 stream->Add("[%p]", *cell()); 1643 stream->Add("[%p]", *cell());
1638 if (!details_.IsDontDelete()) stream->Add(" (deleteable)"); 1644 if (!details_.IsDontDelete()) stream->Add(" (deleteable)");
1639 if (details_.IsReadOnly()) stream->Add(" (read-only)"); 1645 if (details_.IsReadOnly()) stream->Add(" (read-only)");
1640 } 1646 }
1641 1647
1642 1648
1643 bool HLoadGlobalCell::RequiresHoleCheck() { 1649 bool HLoadGlobalCell::RequiresHoleCheck() {
1644 if (details_.IsDontDelete() && !details_.IsReadOnly()) return false; 1650 if (details_.IsDontDelete() && !details_.IsReadOnly()) return false;
1645 for (HUseIterator it(uses()); !it.Done(); it.Advance()) { 1651 for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 1941
1936 1942
1937 void HCheckPrototypeMaps::Verify() { 1943 void HCheckPrototypeMaps::Verify() {
1938 HInstruction::Verify(); 1944 HInstruction::Verify();
1939 ASSERT(HasNoUses()); 1945 ASSERT(HasNoUses());
1940 } 1946 }
1941 1947
1942 #endif 1948 #endif
1943 1949
1944 } } // namespace v8::internal 1950 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698