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

Unified Diff: pkg/kernel/binary.md

Issue 2999633002: [kernel] Offsets on loops (Closed)
Patch Set: Fix long line Created 3 years, 4 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: pkg/kernel/binary.md
diff --git a/pkg/kernel/binary.md b/pkg/kernel/binary.md
index 840efa0ff7ae0ba91f04771e880197e507af6b40..deacc0c90d333e479d6556dabaaac1c1961908e6 100644
--- a/pkg/kernel/binary.md
+++ b/pkg/kernel/binary.md
@@ -790,18 +790,21 @@ type BreakStatement extends Statement {
type WhileStatement extends Statement {
Byte tag = 67;
+ FileOffset fileOffset;
Expression condition;
Statement body;
}
type DoStatement extends Statement {
Byte tag = 68;
+ FileOffset fileOffset;
Statement body;
Expression condition;
}
type ForStatement extends Statement {
Byte tag = 69;
+ FileOffset fileOffset;
List<VariableDeclaration> variables;
Option<Expression> condition;
List<Expression> updates;
@@ -810,7 +813,8 @@ type ForStatement extends Statement {
type ForInStatement extends Statement {
Byte tag = 70;
- FileOffset fileOffset; // note that this is actually the body offset
+ FileOffset fileOffset;
+ FileOffset bodyOffset;
VariableDeclaration variable;
Expression iterable;
Statement body;
@@ -818,7 +822,8 @@ type ForInStatement extends Statement {
type AsyncForInStatement extends Statement {
Byte tag = 80; // Note: tag is out of order.
- FileOffset fileOffset; // note that this is actually the body offset
+ FileOffset fileOffset;
+ FileOffset bodyOffset;
VariableDeclaration variable;
Expression iterable;
Statement body;

Powered by Google App Engine
This is Rietveld 408576698