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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/unsugar.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/compiler/lib/src/js_backend/codegen/unsugar.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
index f7ff67ffc8f02436e8f1703f11c181dc2d3749e0..3c0f48545cff758247ffae37ee066b09fdd5b440 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
@@ -107,18 +107,17 @@ class UnsugarVisitor extends TrampolineRecursiveVisitor implements Pass {
// body;
//
CpsFragment cps = new CpsFragment();
- Primitive isNull = cps.applyBuiltin(
- BuiltinOperator.Identical,
+ Primitive isNull = cps.applyBuiltin(BuiltinOperator.Identical,
<Primitive>[function.parameters.single, cps.makeNull()]);
CpsFragment trueBranch = cps.ifTruthy(isNull);
- trueBranch.invokeContinuation(function.returnContinuation,
- <Primitive>[trueBranch.makeFalse()]);
+ trueBranch.invokeContinuation(
+ function.returnContinuation, <Primitive>[trueBranch.makeFalse()]);
cps.insertAbove(function.body);
}
/// Insert a static call to [function] immediately above [node].
- Primitive insertStaticCallAbove(FunctionElement function,
- List<Primitive> arguments, Expression node) {
+ Primitive insertStaticCallAbove(
+ FunctionElement function, List<Primitive> arguments, Expression node) {
// TODO(johnniwinther): Come up with an implementation of SourceInformation
// for calls such as this one that don't appear in the original source.
InvokeStatic invoke = new InvokeStatic(
@@ -152,9 +151,7 @@ class UnsugarVisitor extends TrampolineRecursiveVisitor implements Pass {
if (stackTraceParameter.hasAtLeastOneUse) {
InvokeStatic stackTraceValue = insertStaticCallAbove(
- _glue.getTraceFromException(),
- [_exceptionParameter],
- body);
+ _glue.getTraceFromException(), [_exceptionParameter], body);
stackTraceParameter.replaceUsesWith(stackTraceValue);
}
}
@@ -171,9 +168,7 @@ class UnsugarVisitor extends TrampolineRecursiveVisitor implements Pass {
processThrow(Throw node) {
// The subexpression of throw is wrapped in the JavaScript output.
Primitive wrappedException = insertStaticCallAbove(
- _glue.getWrapExceptionHelper(),
- [node.value],
- node);
+ _glue.getWrapExceptionHelper(), [node.value], node);
node.valueRef.changeTo(wrappedException);
}
@@ -201,10 +196,8 @@ class UnsugarVisitor extends TrampolineRecursiveVisitor implements Pass {
if (node.selector == Selectors.equals &&
node.argumentRefs.length == 1 &&
isNullConstant(node.argument(0))) {
- node.replaceWith(new ApplyBuiltinOperator(
- BuiltinOperator.Identical,
- [node.receiver, node.argument(0)],
- node.sourceInformation));
+ node.replaceWith(new ApplyBuiltinOperator(BuiltinOperator.Identical,
+ [node.receiver, node.argument(0)], node.sourceInformation));
return;
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/task.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