| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 13095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13106 os << "NULL"; | 13106 os << "NULL"; |
| 13107 } | 13107 } |
| 13108 os << "\n"; | 13108 os << "\n"; |
| 13109 } | 13109 } |
| 13110 return os << "\n"; | 13110 return os << "\n"; |
| 13111 } | 13111 } |
| 13112 | 13112 |
| 13113 | 13113 |
| 13114 void HTracer::TraceCompilation(CompilationInfo* info) { | 13114 void HTracer::TraceCompilation(CompilationInfo* info) { |
| 13115 Tag tag(this, "compilation"); | 13115 Tag tag(this, "compilation"); |
| 13116 base::SmartArrayPointer<char> name = info->GetDebugName(); |
| 13116 if (info->IsOptimizing()) { | 13117 if (info->IsOptimizing()) { |
| 13117 Handle<String> name = info->literal()->debug_name(); | 13118 PrintStringProperty("name", name.get()); |
| 13118 PrintStringProperty("name", name->ToCString().get()); | |
| 13119 PrintIndent(); | 13119 PrintIndent(); |
| 13120 trace_.Add("method \"%s:%d\"\n", | 13120 trace_.Add("method \"%s:%d\"\n", name.get(), info->optimization_id()); |
| 13121 name->ToCString().get(), | |
| 13122 info->optimization_id()); | |
| 13123 } else { | 13121 } else { |
| 13124 CodeStub::Major major_key = info->code_stub()->MajorKey(); | 13122 PrintStringProperty("name", name.get()); |
| 13125 PrintStringProperty("name", CodeStub::MajorName(major_key, false)); | |
| 13126 PrintStringProperty("method", "stub"); | 13123 PrintStringProperty("method", "stub"); |
| 13127 } | 13124 } |
| 13128 PrintLongProperty("date", | 13125 PrintLongProperty("date", |
| 13129 static_cast<int64_t>(base::OS::TimeCurrentMillis())); | 13126 static_cast<int64_t>(base::OS::TimeCurrentMillis())); |
| 13130 } | 13127 } |
| 13131 | 13128 |
| 13132 | 13129 |
| 13133 void HTracer::TraceLithium(const char* name, LChunk* chunk) { | 13130 void HTracer::TraceLithium(const char* name, LChunk* chunk) { |
| 13134 DCHECK(!chunk->isolate()->concurrent_recompilation_enabled()); | 13131 DCHECK(!chunk->isolate()->concurrent_recompilation_enabled()); |
| 13135 AllowHandleDereference allow_deref; | 13132 AllowHandleDereference allow_deref; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13440 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13437 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13441 } | 13438 } |
| 13442 | 13439 |
| 13443 #ifdef DEBUG | 13440 #ifdef DEBUG |
| 13444 graph_->Verify(false); // No full verify. | 13441 graph_->Verify(false); // No full verify. |
| 13445 #endif | 13442 #endif |
| 13446 } | 13443 } |
| 13447 | 13444 |
| 13448 } // namespace internal | 13445 } // namespace internal |
| 13449 } // namespace v8 | 13446 } // namespace v8 |
| OLD | NEW |