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

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

Issue 21374004: Print HAllocate flags in --trace-hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | 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 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 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after
3723 DeleteAndReplaceWith(dominated_allocate_instr); 3723 DeleteAndReplaceWith(dominated_allocate_instr);
3724 if (FLAG_trace_allocation_folding) { 3724 if (FLAG_trace_allocation_folding) {
3725 PrintF("#%d (%s) folded into #%d (%s)\n", 3725 PrintF("#%d (%s) folded into #%d (%s)\n",
3726 id(), Mnemonic(), dominator->id(), dominator->Mnemonic()); 3726 id(), Mnemonic(), dominator->id(), dominator->Mnemonic());
3727 } 3727 }
3728 } 3728 }
3729 3729
3730 3730
3731 void HAllocate::PrintDataTo(StringStream* stream) { 3731 void HAllocate::PrintDataTo(StringStream* stream) {
3732 size()->PrintNameTo(stream); 3732 size()->PrintNameTo(stream);
3733 if (!IsNewSpaceAllocation()) stream->Add(" (pretenure)"); 3733 stream->Add(" (");
3734 if (IsNewSpaceAllocation()) stream->Add("N");
3735 if (IsOldPointerSpaceAllocation()) stream->Add("P");
3736 if (IsOldDataSpaceAllocation()) stream->Add("D");
3737 if (MustAllocateDoubleAligned()) stream->Add("A");
3738 if (MustPrefillWithFiller()) stream->Add("F");
3739 stream->Add(")");
3734 } 3740 }
3735 3741
3736 3742
3737 HValue* HUnaryMathOperation::EnsureAndPropagateNotMinusZero( 3743 HValue* HUnaryMathOperation::EnsureAndPropagateNotMinusZero(
3738 BitVector* visited) { 3744 BitVector* visited) {
3739 visited->Add(id()); 3745 visited->Add(id());
3740 if (representation().IsSmiOrInteger32() && 3746 if (representation().IsSmiOrInteger32() &&
3741 !value()->representation().Equals(representation())) { 3747 !value()->representation().Equals(representation())) {
3742 if (value()->range() == NULL || value()->range()->CanBeMinusZero()) { 3748 if (value()->range() == NULL || value()->range()->CanBeMinusZero()) {
3743 SetFlag(kBailoutOnMinusZero); 3749 SetFlag(kBailoutOnMinusZero);
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 break; 4466 break;
4461 case kExternalMemory: 4467 case kExternalMemory:
4462 stream->Add("[external-memory]"); 4468 stream->Add("[external-memory]");
4463 break; 4469 break;
4464 } 4470 }
4465 4471
4466 stream->Add("@%d", offset()); 4472 stream->Add("@%d", offset());
4467 } 4473 }
4468 4474
4469 } } // namespace v8::internal 4475 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698