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

Side by Side Diff: src/hydrogen.cc

Issue 10701141: Remove duplicated LChunk code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits. Created 8 years, 5 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.h ('k') | src/ia32/lithium-ia32.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 9248 matching lines...) Expand 10 before | Expand all | Expand 10 after
9259 9259
9260 void HTracer::TraceCompilation(FunctionLiteral* function) { 9260 void HTracer::TraceCompilation(FunctionLiteral* function) {
9261 Tag tag(this, "compilation"); 9261 Tag tag(this, "compilation");
9262 Handle<String> name = function->debug_name(); 9262 Handle<String> name = function->debug_name();
9263 PrintStringProperty("name", *name->ToCString()); 9263 PrintStringProperty("name", *name->ToCString());
9264 PrintStringProperty("method", *name->ToCString()); 9264 PrintStringProperty("method", *name->ToCString());
9265 PrintLongProperty("date", static_cast<int64_t>(OS::TimeCurrentMillis())); 9265 PrintLongProperty("date", static_cast<int64_t>(OS::TimeCurrentMillis()));
9266 } 9266 }
9267 9267
9268 9268
9269 void HTracer::TraceLithium(const char* name, LChunk* chunk) { 9269 void HTracer::TraceLithium(const char* name, LChunkBase* chunk) {
9270 Trace(name, chunk->graph(), chunk); 9270 Trace(name, chunk->graph(), chunk);
9271 } 9271 }
9272 9272
9273 9273
9274 void HTracer::TraceHydrogen(const char* name, HGraph* graph) { 9274 void HTracer::TraceHydrogen(const char* name, HGraph* graph) {
9275 Trace(name, graph, NULL); 9275 Trace(name, graph, NULL);
9276 } 9276 }
9277 9277
9278 9278
9279 void HTracer::Trace(const char* name, HGraph* graph, LChunk* chunk) { 9279 void HTracer::Trace(const char* name, HGraph* graph, LChunkBase* chunk) {
9280 Tag tag(this, "cfg"); 9280 Tag tag(this, "cfg");
9281 PrintStringProperty("name", name); 9281 PrintStringProperty("name", name);
9282 const ZoneList<HBasicBlock*>* blocks = graph->blocks(); 9282 const ZoneList<HBasicBlock*>* blocks = graph->blocks();
9283 for (int i = 0; i < blocks->length(); i++) { 9283 for (int i = 0; i < blocks->length(); i++) {
9284 HBasicBlock* current = blocks->at(i); 9284 HBasicBlock* current = blocks->at(i);
9285 Tag block_tag(this, "block"); 9285 Tag block_tag(this, "block");
9286 PrintBlockProperty("name", current->block_id()); 9286 PrintBlockProperty("name", current->block_id());
9287 PrintIntProperty("from_bci", -1); 9287 PrintIntProperty("from_bci", -1);
9288 PrintIntProperty("to_bci", -1); 9288 PrintIntProperty("to_bci", -1);
9289 9289
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
9531 } 9531 }
9532 } 9532 }
9533 9533
9534 9534
9535 const char* const HPhase::kFullCodeGen = "Full code generator"; 9535 const char* const HPhase::kFullCodeGen = "Full code generator";
9536 const char* const HPhase::kTotal = "Total"; 9536 const char* const HPhase::kTotal = "Total";
9537 9537
9538 9538
9539 void HPhase::Begin(const char* name, 9539 void HPhase::Begin(const char* name,
9540 HGraph* graph, 9540 HGraph* graph,
9541 LChunk* chunk, 9541 LChunkBase* chunk,
9542 LAllocator* allocator) { 9542 LAllocator* allocator) {
9543 name_ = name; 9543 name_ = name;
9544 graph_ = graph; 9544 graph_ = graph;
9545 chunk_ = chunk; 9545 chunk_ = chunk;
9546 allocator_ = allocator; 9546 allocator_ = allocator;
9547 if (allocator != NULL && chunk_ == NULL) { 9547 if (allocator != NULL && chunk_ == NULL) {
9548 chunk_ = allocator->chunk(); 9548 chunk_ = allocator->chunk();
9549 } 9549 }
9550 if (FLAG_hydrogen_stats) start_ = OS::Ticks(); 9550 if (FLAG_hydrogen_stats) start_ = OS::Ticks();
9551 start_allocation_size_ = Zone::allocation_size_; 9551 start_allocation_size_ = Zone::allocation_size_;
(...skipping 18 matching lines...) Expand all
9570 } 9570 }
9571 } 9571 }
9572 9572
9573 #ifdef DEBUG 9573 #ifdef DEBUG
9574 if (graph_ != NULL) graph_->Verify(false); // No full verify. 9574 if (graph_ != NULL) graph_->Verify(false); // No full verify.
9575 if (allocator_ != NULL) allocator_->Verify(); 9575 if (allocator_ != NULL) allocator_->Verify();
9576 #endif 9576 #endif
9577 } 9577 }
9578 9578
9579 } } // namespace v8::internal 9579 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698