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

Unified Diff: src/compiler.cc

Issue 143003013: Initial patch for a64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index e8781c7b30bb629aeb0f386803926a7b959744a6..720962643be6fec2e1bdfedbbc29e4a6f2eeff53 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -313,6 +313,15 @@ OptimizingCompiler::Status OptimizingCompiler::CreateGraph() {
Handle<Code> code(info()->shared_info()->code());
ASSERT(code->kind() == Code::FUNCTION);
+ if (FLAG_trace_opt) {
+ // 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());
« no previous file with comments | « src/codegen.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698