| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.full_emitter; |
| 6 | 6 |
| 7 /// Enables debugging of fast/slow objects using V8-specific primitives. | 7 /// Enables debugging of fast/slow objects using V8-specific primitives. |
| 8 const DEBUG_FAST_OBJECTS = false; | 8 const DEBUG_FAST_OBJECTS = false; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * Call-back for adding property with [name] and [value]. | 11 * Call-back for adding property with [name] and [value]. |
| 12 */ | 12 */ |
| 13 typedef jsAst.Property AddPropertyFunction(jsAst.Name name, | 13 typedef jsAst.Property AddPropertyFunction(jsAst.Name name, |
| 14 jsAst.Expression value); | 14 jsAst.Expression value); |
| 15 | 15 |
| 16 // Function signatures used in the generation of runtime type information. | |
| 17 typedef void FunctionTypeSignatureEmitter(Element method, | |
| 18 FunctionType methodType); | |
| 19 | |
| 20 typedef void SubstitutionEmitter(Element element, {bool emitNull}); | |
| 21 | |
| 22 const String GENERATED_BY = """ | 16 const String GENERATED_BY = """ |
| 23 // Generated by dart2js, the Dart to JavaScript compiler. | 17 // Generated by dart2js, the Dart to JavaScript compiler. |
| 24 """; | 18 """; |
| 25 | 19 |
| 26 const String HOOKS_API_USAGE = """ | 20 const String HOOKS_API_USAGE = """ |
| 27 // The code supports the following hooks: | 21 // The code supports the following hooks: |
| 28 // dartPrint(message): | 22 // dartPrint(message): |
| 29 // if this function is defined it is called instead of the Dart [print] | 23 // if this function is defined it is called instead of the Dart [print] |
| 30 // method. | 24 // method. |
| 31 // | 25 // |
| (...skipping 24 matching lines...) Expand all Loading... |
| 56 // characters. | 50 // characters. |
| 57 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*"; | 51 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*"; |
| 58 const NO_FIELD_CODE = 0; | 52 const NO_FIELD_CODE = 0; |
| 59 const FIRST_FIELD_CODE = 1; | 53 const FIRST_FIELD_CODE = 1; |
| 60 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5 | 54 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5 |
| 61 const RANGE1_LAST = 0x40; | 55 const RANGE1_LAST = 0x40; |
| 62 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9 | 56 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9 |
| 63 const RANGE2_LAST = 0x7e; | 57 const RANGE2_LAST = 0x7e; |
| 64 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16 | 58 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16 |
| 65 const RANGE3_LAST = 0x2b; | 59 const RANGE3_LAST = 0x2b; |
| OLD | NEW |