| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |