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

Unified Diff: src/ast.h

Issue 1481753003: [compiler] Decouple ToObject from CreateWithContext. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index cb9fb6f5596e49fea53fa1fe102b29b4bda2adc2..0be9948f95b179a54985c73c0623624c07613c58 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1007,8 +1007,9 @@ class WithStatement final : public Statement {
void set_statement(Statement* s) { statement_ = s; }
void set_base_id(int id) { base_id_ = id; }
- static int num_ids() { return parent_num_ids() + 1; }
- BailoutId EntryId() const { return BailoutId(local_id(0)); }
+ static int num_ids() { return parent_num_ids() + 2; }
+ BailoutId ToObjectId() const { return BailoutId(local_id(0)); }
+ BailoutId EntryId() const { return BailoutId(local_id(1)); }
protected:
WithStatement(Zone* zone, Scope* scope, Expression* expression,
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698