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 native; | 5 part of native; |
6 | 6 |
7 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); | 7 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); |
8 | 8 |
9 void handleSsaNative(SsaBuilder builder, Expression nativeBody) { | 9 void handleSsaNative(SsaBuilder builder, Expression nativeBody) { |
10 Compiler compiler = builder.compiler; | 10 Compiler compiler = builder.compiler; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 LiteralString jsCode = nativeBody.asLiteralString(); | 102 LiteralString jsCode = nativeBody.asLiteralString(); |
103 builder.push(new HForeign.statement( | 103 builder.push(new HForeign.statement( |
104 js.js.statementTemplateYielding( | 104 js.js.statementTemplateYielding( |
105 new js.LiteralStatement(jsCode.dartString.slowToString())), | 105 new js.LiteralStatement(jsCode.dartString.slowToString())), |
106 <HInstruction>[], | 106 <HInstruction>[], |
107 new SideEffects(), | 107 new SideEffects(), |
108 null, | 108 null, |
109 backend.dynamicType)); | 109 backend.dynamicType)); |
110 } | 110 } |
111 } | 111 } |
OLD | NEW |