| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 js_backend.serialization; | 5 library js_backend.serialization; |
| 6 | 6 |
| 7 import '../common.dart'; | |
| 8 import '../common/backend_api.dart' show BackendSerialization; | 7 import '../common/backend_api.dart' show BackendSerialization; |
| 9 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
| 10 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 11 import '../js/js.dart' as js; | 10 import '../js/js.dart' as js; |
| 12 import '../native/native.dart'; | 11 import '../native/native.dart'; |
| 13 import '../serialization/serialization.dart' | 12 import '../serialization/serialization.dart' |
| 14 show DeserializerPlugin, ObjectDecoder, ObjectEncoder, SerializerPlugin; | 13 show DeserializerPlugin, ObjectDecoder, ObjectEncoder, SerializerPlugin; |
| 15 import '../serialization/keys.dart'; | 14 import '../serialization/keys.dart'; |
| 16 import '../universe/side_effects.dart'; | 15 import '../universe/side_effects.dart'; |
| 17 import 'js_backend.dart'; | 16 import 'js_backend.dart'; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 behavior.codeTemplate = js.js.parseForeignJS(behavior.codeTemplateText); | 249 behavior.codeTemplate = js.js.parseForeignJS(behavior.codeTemplateText); |
| 251 } | 250 } |
| 252 | 251 |
| 253 behavior.throwBehavior = | 252 behavior.throwBehavior = |
| 254 decoder.getEnum(THROW_BEHAVIOR, NativeThrowBehavior.values); | 253 decoder.getEnum(THROW_BEHAVIOR, NativeThrowBehavior.values); |
| 255 behavior.isAllocation = decoder.getBool(IS_ALLOCATION); | 254 behavior.isAllocation = decoder.getBool(IS_ALLOCATION); |
| 256 behavior.useGvn = decoder.getBool(USE_GVN); | 255 behavior.useGvn = decoder.getBool(USE_GVN); |
| 257 return behavior; | 256 return behavior; |
| 258 } | 257 } |
| 259 } | 258 } |
| OLD | NEW |