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

Unified Diff: src/rewriter.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: 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/rewriter.cc
diff --git a/src/rewriter.cc b/src/rewriter.cc
index 861696035ee2d950500ee0f2beef8fe0d60d321d..a021d413ac2ef01cd55fa49f64c0b95cc4e327a1 100644
--- a/src/rewriter.cc
+++ b/src/rewriter.cc
@@ -15,14 +15,14 @@ namespace internal {
class Processor: public AstVisitor {
public:
- Processor(Variable* result, Zone* zone, AstNode::IdGen* ast_node_id_gen)
+ Processor(Variable* result, Zone* zone)
: result_(result),
result_assigned_(false),
is_set_(false),
in_try_(false),
// Passing a null AstValueFactory is fine, because Processor doesn't
// need to create strings or literals.
- factory_(zone, NULL, ast_node_id_gen) {
+ factory_(zone, NULL) {
InitializeAstVisitor(zone);
}
@@ -240,7 +240,7 @@ bool Rewriter::Rewrite(CompilationInfo* info) {
scope->NewTemporary(info->ast_value_factory()->dot_result_string());
// The name string must be internalized at this point.
DCHECK(!result->name().is_null());
- Processor processor(result, info->zone(), info->ast_node_id_gen());
+ Processor processor(result, info->zone());
processor.Process(body);
if (processor.HasStackOverflow()) return false;

Powered by Google App Engine
This is Rietveld 408576698