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

Unified Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 1564493002: Make Scanner::kNoSourcePos be a true sentinel value (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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: runtime/vm/flow_graph_compiler_mips.cc
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc
index 55a3dfc36ced4f2dddcc4e58b9667c188bd7cb48..3c7f8e99c6584817d4e622dc90a8d114561e0001 100644
--- a/runtime/vm/flow_graph_compiler_mips.cc
+++ b/runtime/vm/flow_graph_compiler_mips.cc
@@ -668,7 +668,7 @@ void FlowGraphCompiler::GenerateAssertAssignable(intptr_t token_pos,
const String& dst_name,
LocationSummary* locs) {
__ Comment("AssertAssignable");
- ASSERT(token_pos >= 0);
+ ASSERT(Scanner::ValidSourcePosition(token_pos));
ASSERT(!dst_type.IsNull());
ASSERT(dst_type.IsFinalized());
// Assignable check is skipped in FlowGraphBuilder, not here.

Powered by Google App Engine
This is Rietveld 408576698