| 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; |
| 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 /** |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 String name, | 39 String name, |
| 40 String accessorName, | 40 String accessorName, |
| 41 bool needsGetter, | 41 bool needsGetter, |
| 42 bool needsSetter, | 42 bool needsSetter, |
| 43 bool needsCheckedSetter); | 43 bool needsCheckedSetter); |
| 44 | 44 |
| 45 // Function signatures used in the generation of runtime type information. | 45 // Function signatures used in the generation of runtime type information. |
| 46 typedef void FunctionTypeSignatureEmitter(Element method, | 46 typedef void FunctionTypeSignatureEmitter(Element method, |
| 47 FunctionType methodType); | 47 FunctionType methodType); |
| 48 | 48 |
| 49 // TODO(johnniwinther): Clean up terminology for rti in the emitter. | |
| 50 typedef void FunctionTypeTestEmitter(FunctionType functionType); | |
| 51 | |
| 52 typedef void SubstitutionEmitter(Element element, {bool emitNull}); | 49 typedef void SubstitutionEmitter(Element element, {bool emitNull}); |
| 53 | 50 |
| 54 const String GENERATED_BY = """ | 51 const String GENERATED_BY = """ |
| 55 // Generated by dart2js, the Dart to JavaScript compiler. | 52 // Generated by dart2js, the Dart to JavaScript compiler. |
| 56 """; | 53 """; |
| 57 | 54 |
| 58 const String HOOKS_API_USAGE = """ | 55 const String HOOKS_API_USAGE = """ |
| 59 // The code supports the following hooks: | 56 // The code supports the following hooks: |
| 60 // dartPrint(message): | 57 // dartPrint(message): |
| 61 // if this function is defined it is called instead of the Dart [print] | 58 // if this function is defined it is called instead of the Dart [print] |
| (...skipping 20 matching lines...) Expand all Loading... |
| 82 // characters. | 79 // characters. |
| 83 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*"; | 80 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*"; |
| 84 const NO_FIELD_CODE = 0; | 81 const NO_FIELD_CODE = 0; |
| 85 const FIRST_FIELD_CODE = 1; | 82 const FIRST_FIELD_CODE = 1; |
| 86 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5 | 83 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5 |
| 87 const RANGE1_LAST = 0x40; | 84 const RANGE1_LAST = 0x40; |
| 88 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9 | 85 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9 |
| 89 const RANGE2_LAST = 0x7e; | 86 const RANGE2_LAST = 0x7e; |
| 90 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16 | 87 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16 |
| 91 const RANGE3_LAST = 0x2b; | 88 const RANGE3_LAST = 0x2b; |
| OLD | NEW |