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

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

Issue 2732633002: Remove Enqueuer.nativeEnqueuer (Closed)
Patch Set: Created 3 years, 9 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.interceptor_stub_generator; 5 library dart2js.js_emitter.interceptor_stub_generator;
6 6
7 import '../compiler.dart' show Compiler; 7 import '../compiler.dart' show Compiler;
8 import '../constants/values.dart'; 8 import '../constants/values.dart';
9 import '../elements/entities.dart'; 9 import '../elements/entities.dart';
10 import '../elements/types.dart' show InterfaceType; 10 import '../elements/types.dart' show InterfaceType;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 bool hasArray = false; 71 bool hasArray = false;
72 bool hasBool = false; 72 bool hasBool = false;
73 bool hasDouble = false; 73 bool hasDouble = false;
74 bool hasInt = false; 74 bool hasInt = false;
75 bool hasNull = false; 75 bool hasNull = false;
76 bool hasNumber = false; 76 bool hasNumber = false;
77 bool hasString = false; 77 bool hasString = false;
78 bool hasNative = false; 78 bool hasNative = false;
79 bool anyNativeClasses = 79 bool anyNativeClasses =
80 compiler.enqueuer.codegen.nativeEnqueuer.hasInstantiatedNativeClasses; 80 backend.nativeCodegenEnqueuer.hasInstantiatedNativeClasses;
81 81
82 for (ClassEntity cls in classes) { 82 for (ClassEntity cls in classes) {
83 if (cls == helpers.jsArrayClass || 83 if (cls == helpers.jsArrayClass ||
84 cls == helpers.jsMutableArrayClass || 84 cls == helpers.jsMutableArrayClass ||
85 cls == helpers.jsFixedArrayClass || 85 cls == helpers.jsFixedArrayClass ||
86 cls == helpers.jsExtendableArrayClass) 86 cls == helpers.jsExtendableArrayClass)
87 hasArray = true; 87 hasArray = true;
88 else if (cls == helpers.jsBoolClass) 88 else if (cls == helpers.jsBoolClass)
89 hasBool = true; 89 hasBool = true;
90 else if (cls == helpers.jsDoubleClass) 90 else if (cls == helpers.jsDoubleClass)
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 415
416 var map = new jsAst.ObjectInitializer(properties); 416 var map = new jsAst.ObjectInitializer(properties);
417 elements.add(map); 417 elements.add(map);
418 } 418 }
419 } 419 }
420 420
421 return new jsAst.ArrayInitializer(elements); 421 return new jsAst.ArrayInitializer(elements);
422 } 422 }
423 } 423 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698