Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart

Issue 1223293002: dart2js: Rename old emitter to full emitter and make it its own library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698