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

Unified Diff: src/interpreter/bytecode-array-builder.h

Issue 2664083002: [ignition] desugar async functions/generators/modules in BytecodeGenerator
Patch Set: get rid of lambdas, for better or worse.. Created 3 years, 10 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/interpreter/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 2b25400cabd3b9b2d2f03fbd3cc5f501ea6ab254..ed7a0b9e6fdbf56c2daf6d65dbce293bf3b73d9e 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -348,12 +348,16 @@ class V8_EXPORT_PRIVATE BytecodeArrayBuilder final
latest_source_info_.MakeStatementPosition(stmt->position());
}
- void SetExpressionPosition(Expression* expr) {
- if (expr->position() == kNoSourcePosition) return;
+ inline void SetExpressionPosition(Expression* expr) {
+ SetExpressionPosition(expr->position());
+ }
+
+ void SetExpressionPosition(int position) {
+ if (position == kNoSourcePosition) return;
if (!latest_source_info_.is_statement()) {
// Ensure the current expression position is overwritten with the
// latest value.
- latest_source_info_.MakeExpressionPosition(expr->position());
+ latest_source_info_.MakeExpressionPosition(position);
}
}

Powered by Google App Engine
This is Rietveld 408576698