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

Side by Side Diff: src/hydrogen.cc

Issue 9430002: Use placement-new operator in the register allocator. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 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 | src/lithium-allocator.h » ('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 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 7599 matching lines...) Expand 10 before | Expand all | Expand 10 after
7610 TraceLiveRange(live_ranges->at(i), "object"); 7610 TraceLiveRange(live_ranges->at(i), "object");
7611 } 7611 }
7612 } 7612 }
7613 7613
7614 7614
7615 void HTracer::TraceLiveRange(LiveRange* range, const char* type) { 7615 void HTracer::TraceLiveRange(LiveRange* range, const char* type) {
7616 if (range != NULL && !range->IsEmpty()) { 7616 if (range != NULL && !range->IsEmpty()) {
7617 PrintIndent(); 7617 PrintIndent();
7618 trace_.Add("%d %s", range->id(), type); 7618 trace_.Add("%d %s", range->id(), type);
7619 if (range->HasRegisterAssigned()) { 7619 if (range->HasRegisterAssigned()) {
7620 LOperand* op = range->CreateAssignedOperand(); 7620 LOperand* op = range->CreateAssignedOperand(ZONE);
7621 int assigned_reg = op->index(); 7621 int assigned_reg = op->index();
7622 if (op->IsDoubleRegister()) { 7622 if (op->IsDoubleRegister()) {
7623 trace_.Add(" \"%s\"", 7623 trace_.Add(" \"%s\"",
7624 DoubleRegister::AllocationIndexToString(assigned_reg)); 7624 DoubleRegister::AllocationIndexToString(assigned_reg));
7625 } else { 7625 } else {
7626 ASSERT(op->IsRegister()); 7626 ASSERT(op->IsRegister());
7627 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg)); 7627 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg));
7628 } 7628 }
7629 } else if (range->IsSpilled()) { 7629 } else if (range->IsSpilled()) {
7630 LOperand* op = range->TopLevel()->GetSpillOperand(); 7630 LOperand* op = range->TopLevel()->GetSpillOperand();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
7769 } 7769 }
7770 } 7770 }
7771 7771
7772 #ifdef DEBUG 7772 #ifdef DEBUG
7773 if (graph_ != NULL) graph_->Verify(false); // No full verify. 7773 if (graph_ != NULL) graph_->Verify(false); // No full verify.
7774 if (allocator_ != NULL) allocator_->Verify(); 7774 if (allocator_ != NULL) allocator_->Verify();
7775 #endif 7775 #endif
7776 } 7776 }
7777 7777
7778 } } // namespace v8::internal 7778 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698