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

Side by Side Diff: pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart

Issue 1450393002: Roll sdk dependency to 34357cdad108dcba734949bd13bd28c76ea285e0 (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library fletchc.lazy_field_initializer_codegen; 5 library fletchc.lazy_field_initializer_codegen;
6 6
7 import 'package:compiler/src/dart2jslib.dart' show 7 import 'package:compiler/src/elements/elements.dart';
8 MessageKind, 8 import 'package:compiler/src/resolution/tree_elements.dart' show
9 Registry; 9 TreeElements;
10 10
11 import 'package:compiler/src/elements/elements.dart';
12 import 'package:compiler/src/resolution/resolution.dart';
13 import 'package:compiler/src/tree/tree.dart'; 11 import 'package:compiler/src/tree/tree.dart';
14 12
15 import 'fletch_context.dart'; 13 import 'fletch_context.dart';
16 14
17 import 'fletch_function_builder.dart' show 15 import 'fletch_function_builder.dart' show
18 FletchFunctionBuilder; 16 FletchFunctionBuilder;
19 17
20 import 'fletch_registry.dart' show 18 import 'fletch_registry.dart' show
21 FletchRegistry; 19 FletchRegistry;
22 20
(...skipping 19 matching lines...) Expand all
42 void compile() { 40 void compile() {
43 Node initializer = field.initializer; 41 Node initializer = field.initializer;
44 visitForValue(initializer); 42 visitForValue(initializer);
45 // TODO(ajohnsen): Add cycle detection. 43 // TODO(ajohnsen): Add cycle detection.
46 assembler 44 assembler
47 ..storeStatic(context.getStaticFieldIndex(field, null)) 45 ..storeStatic(context.getStaticFieldIndex(field, null))
48 ..ret() 46 ..ret()
49 ..methodEnd(); 47 ..methodEnd();
50 } 48 }
51 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698