Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index b9e13c166172595b298ae227348f5a40a35dca20..017732ed42f10e76caf90a00969a85d07c7f46e1 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -307,6 +307,15 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
| // shared function object. |
| ASSERT(info()->shared_info()->code()->kind() == Code::FUNCTION); |
| + if (FLAG_trace_opt) { |
|
ulan
2014/02/11 17:24:26
Remove before landing?
Rodolph Perfetta
2014/02/11 17:58:29
Yes remove.
On 2014/02/11 17:24:26, ulan wrote:
|
| + // TODO(jbramley): This was added to help analyse the behaviour of |
| + // Crankshaft for the A64 Crankshaft port. It should eventually be deleted. |
| + Handle<JSFunction> function = info()->closure(); |
| + PrintF("Attempting optimization of "); |
| + function->PrintName(); |
| + PrintF(" / %" V8PRIxPTR "\n", reinterpret_cast<intptr_t>(*function)); |
| + } |
| + |
| // We should never arrive here if optimization has been disabled on the |
| // shared function info. |
| ASSERT(!info()->shared_info()->optimization_disabled()); |