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

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

Issue 2349163003: Move towards using WorldImpact for codegen (Closed)
Patch Set: Reinsert missing features uses. Created 4 years, 2 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 part of dart2js.js_emitter; 5 part of dart2js.js_emitter;
6 6
7 class InterceptorStubGenerator { 7 class InterceptorStubGenerator {
8 final Compiler compiler; 8 final Compiler compiler;
9 final Namer namer; 9 final Namer namer;
10 final JavaScriptBackend backend; 10 final JavaScriptBackend backend;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 bool hasArray = false; 51 bool hasArray = false;
52 bool hasBool = false; 52 bool hasBool = false;
53 bool hasDouble = false; 53 bool hasDouble = false;
54 bool hasInt = false; 54 bool hasInt = false;
55 bool hasNull = false; 55 bool hasNull = false;
56 bool hasNumber = false; 56 bool hasNumber = false;
57 bool hasString = false; 57 bool hasString = false;
58 bool hasNative = false; 58 bool hasNative = false;
59 bool anyNativeClasses = 59 bool anyNativeClasses =
60 compiler.enqueuer.codegen.nativeEnqueuer.hasInstantiatedNativeClasses(); 60 compiler.enqueuer.codegen.nativeEnqueuer.hasInstantiatedNativeClasses;
61 61
62 for (ClassElement cls in classes) { 62 for (ClassElement cls in classes) {
63 if (cls == helpers.jsArrayClass || 63 if (cls == helpers.jsArrayClass ||
64 cls == helpers.jsMutableArrayClass || 64 cls == helpers.jsMutableArrayClass ||
65 cls == helpers.jsFixedArrayClass || 65 cls == helpers.jsFixedArrayClass ||
66 cls == helpers.jsExtendableArrayClass) 66 cls == helpers.jsExtendableArrayClass)
67 hasArray = true; 67 hasArray = true;
68 else if (cls == helpers.jsBoolClass) 68 else if (cls == helpers.jsBoolClass)
69 hasBool = true; 69 hasBool = true;
70 else if (cls == helpers.jsDoubleClass) 70 else if (cls == helpers.jsDoubleClass)
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 var map = new jsAst.ObjectInitializer(properties); 391 var map = new jsAst.ObjectInitializer(properties);
392 elements.add(map); 392 elements.add(map);
393 } 393 }
394 } 394 }
395 } 395 }
396 396
397 return new jsAst.ArrayInitializer(elements); 397 return new jsAst.ArrayInitializer(elements);
398 } 398 }
399 } 399 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/type_variable_handler.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698