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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2982783003: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/compiler/lib/src/js_backend/constant_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 02a3cac1543c2e2da263fa06177de2af3b4a0d3f..864b96c6369e5c3112b2e824b4680d8e37b2873d 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -192,7 +192,7 @@ class FunctionInlineCache {
if (insideLoop) {
switch (oldDecision) {
case _mustNotInline:
- throw new SpannableAssertionFailure(
+ throw failedAt(
element,
"Can't mark a function as non-inlinable and inlinable at the "
"same time.");
@@ -219,7 +219,7 @@ class FunctionInlineCache {
case _mustNotInline:
case _mayInlineInLoopMustNotOutside:
case _canInlineInLoopMustNotOutside:
- throw new SpannableAssertionFailure(
+ throw failedAt(
element,
"Can't mark a function as non-inlinable and inlinable at the "
"same time.");
@@ -251,7 +251,7 @@ class FunctionInlineCache {
case _canInlineInLoopMayInlineOutside:
case _canInline:
case _mustInline:
- throw new SpannableAssertionFailure(
+ throw failedAt(
element,
"Can't mark a function as non-inlinable and inlinable at the "
"same time.");
@@ -269,7 +269,7 @@ class FunctionInlineCache {
switch (oldDecision) {
case _canInline:
case _mustInline:
- throw new SpannableAssertionFailure(
+ throw failedAt(
element,
"Can't mark a function as non-inlinable and inlinable at the "
"same time.");
« no previous file with comments | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/compiler/lib/src/js_backend/constant_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698