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

Unified Diff: src/compiler.cc

Issue 636403003: Assign bailout and type feedback IDs in a post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address feedback Created 6 years, 2 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
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index ce3badb0f380727a0eef5c5f57412e2bce9c0097..960870a95145845fc3819fa0ea1d0dfb426e932d 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -6,6 +6,7 @@
#include "src/compiler.h"
+#include "src/ast-numbering.h"
#include "src/bootstrapper.h"
#include "src/codegen.h"
#include "src/compilation-cache.h"
@@ -640,6 +641,7 @@ static bool CompileUnoptimizedCode(CompilationInfo* info) {
DCHECK(info->function() != NULL);
if (!Rewriter::Rewrite(info)) return false;
if (!Scope::Analyze(info)) return false;
+ if (!AstNumbering::Renumber(info->function(), info->zone())) return false;
Sven Panne 2014/10/15 07:41:56 Not a fault of this CL, but we should *really, rea
DCHECK(info->scope() != NULL);
if (!FullCodeGenerator::MakeCode(info)) {
@@ -737,6 +739,7 @@ static bool CompileOptimizedPrologue(CompilationInfo* info) {
if (!Parser::Parse(info)) return false;
if (!Rewriter::Rewrite(info)) return false;
if (!Scope::Analyze(info)) return false;
+ if (!AstNumbering::Renumber(info->function(), info->zone())) return false;
DCHECK(info->scope() != NULL);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698