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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart

Issue 2979783003: More equivalence testing (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.js_emitter.program_builder; 5 library dart2js.js_emitter.program_builder;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:convert' show JSON; 8 import 'dart:convert' show JSON;
9 9
10 import '../../closure.dart' show ClosureConversionTask, ClosureFieldElement; 10 import '../../closure.dart' show ClosureConversionTask, ClosureFieldElement;
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 if (visitStatics || 1080 if (visitStatics ||
1081 !_interceptorData.fieldHasInterceptedSetter(field)) { 1081 !_interceptorData.fieldHasInterceptedSetter(field)) {
1082 setterFlags = 1; 1082 setterFlags = 1;
1083 } else { 1083 } else {
1084 setterFlags += 2; 1084 setterFlags += 2;
1085 if (!isHolderInterceptedClass) { 1085 if (!isHolderInterceptedClass) {
1086 setterFlags += 1; 1086 setterFlags += 1;
1087 } 1087 }
1088 } 1088 }
1089 } 1089 }
1090
1091 fields.add(new Field(field, name, accessorName, getterFlags, setterFlags, 1090 fields.add(new Field(field, name, accessorName, getterFlags, setterFlags,
1092 needsCheckedSetter)); 1091 needsCheckedSetter));
1093 } 1092 }
1094 1093
1095 FieldVisitor visitor = new FieldVisitor(_options, _elementEnvironment, 1094 FieldVisitor visitor = new FieldVisitor(_options, _elementEnvironment,
1096 _worldBuilder, _nativeData, _mirrorsData, _namer, _closedWorld); 1095 _worldBuilder, _nativeData, _mirrorsData, _namer, _closedWorld);
1097 visitor.visitFields(visitField, 1096 visitor.visitFields(visitField,
1098 visitStatics: visitStatics, library: library, cls: cls); 1097 visitStatics: visitStatics, library: library, cls: cls);
1099 1098
1100 return fields; 1099 return fields;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 Constant constant = new Constant(name, holder, constantValue); 1192 Constant constant = new Constant(name, holder, constantValue);
1194 _constants[constantValue] = constant; 1193 _constants[constantValue] = constant;
1195 } 1194 }
1196 } 1195 }
1197 1196
1198 Holder _registerStaticStateHolder() { 1197 Holder _registerStaticStateHolder() {
1199 return _registry.registerHolder(_namer.staticStateHolder, 1198 return _registry.registerHolder(_namer.staticStateHolder,
1200 isStaticStateHolder: true); 1199 isStaticStateHolder: true);
1201 } 1200 }
1202 } 1201 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698