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

Side by Side Diff: pkg/compiler/lib/src/serialization/serialization_util.dart

Issue 2862163003: Move resolution/operators.dart to elements/operators.dart (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.serialization.util; 5 library dart2js.serialization.util;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../elements/resolution_types.dart'; 9 import '../elements/resolution_types.dart';
10 import '../diagnostics/messages.dart'; 10 import '../diagnostics/messages.dart';
11 import '../elements/elements.dart'; 11 import '../elements/elements.dart';
12 import '../elements/modelx.dart' show WrappedMessage; 12 import '../elements/modelx.dart' show WrappedMessage;
13 import '../elements/operators.dart';
13 import '../resolution/access_semantics.dart'; 14 import '../resolution/access_semantics.dart';
14 import '../resolution/operators.dart';
15 import '../resolution/send_structure.dart'; 15 import '../resolution/send_structure.dart';
16 import '../universe/call_structure.dart'; 16 import '../universe/call_structure.dart';
17 import '../universe/selector.dart'; 17 import '../universe/selector.dart';
18 import 'keys.dart'; 18 import 'keys.dart';
19 import 'serialization.dart'; 19 import 'serialization.dart';
20 20
21 /// Serialize [name] into [encoder]. 21 /// Serialize [name] into [encoder].
22 void serializeName(Name name, ObjectEncoder encoder) { 22 void serializeName(Name name, ObjectEncoder encoder) {
23 encoder.setString(Key.NAME, name.text); 23 encoder.setString(Key.NAME, name.text);
24 encoder.setBool(Key.IS_SETTER, name.isSetter); 24 encoder.setBool(Key.IS_SETTER, name.isSetter);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 ObjectDecoder sourceSpanDecoder = 582 ObjectDecoder sourceSpanDecoder =
583 object.getObject(Key.SOURCE_SPAN, isOptional: true); 583 object.getObject(Key.SOURCE_SPAN, isOptional: true);
584 if (sourceSpanDecoder != null) { 584 if (sourceSpanDecoder != null) {
585 sourceSpan = deserializeSourceSpan(sourceSpanDecoder); 585 sourceSpan = deserializeSourceSpan(sourceSpanDecoder);
586 } 586 }
587 MessageKind messageKind = object.getEnum(Key.KIND, MessageKind.values); 587 MessageKind messageKind = object.getEnum(Key.KIND, MessageKind.values);
588 Map<String, dynamic> messageArguments = 588 Map<String, dynamic> messageArguments =
589 deserializeMessageArguments(object, Key.ARGUMENTS); 589 deserializeMessageArguments(object, Key.ARGUMENTS);
590 return new WrappedMessage(sourceSpan, messageKind, messageArguments); 590 return new WrappedMessage(sourceSpan, messageKind, messageArguments);
591 } 591 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/constant_serialization.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698