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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart

Issue 27524003: Generate tear-off closures dynamically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | Annotate | Revision Log
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;
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 * A convenient type alias for some functions that emit keyed values. 11 * Call-back for adding stub [function] for [selector].
12 */ 12 */
13 typedef void DefineStubFunction(String invocationName, jsAst.Expression value); 13 typedef void AddStubFunction(Selector selector, jsAst.Fun function);
14
15 /**
16 * Call-back for adding property with [name] and [value].
17 */
18 typedef void AddPropertyFunction(String name, jsAst.Expression value);
14 19
15 /** 20 /**
16 * [member] is a field (instance, static, or top level). 21 * [member] is a field (instance, static, or top level).
17 * 22 *
18 * [name] is the field name that the [Namer] has picked for this field's 23 * [name] is the field name that the [Namer] has picked for this field's
19 * storage, that is, the JavaScript property name. 24 * storage, that is, the JavaScript property name.
20 * 25 *
21 * [accessorName] is the name of the accessor. For instance fields this is 26 * [accessorName] is the name of the accessor. For instance fields this is
22 * mostly the same as [name] except when [member] is shadowing a field in its 27 * mostly the same as [name] except when [member] is shadowing a field in its
23 * superclass. For other fields, they are rarely the same. 28 * superclass. For other fields, they are rarely the same.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // characters. 80 // characters.
76 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*"; 81 const FIELD_CODE_CHARACTERS = r"<=>?@{|}~%&'()*";
77 const NO_FIELD_CODE = 0; 82 const NO_FIELD_CODE = 0;
78 const FIRST_FIELD_CODE = 1; 83 const FIRST_FIELD_CODE = 1;
79 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5 84 const RANGE1_FIRST = 0x3c; // <=>?@ encodes 1..5
80 const RANGE1_LAST = 0x40; 85 const RANGE1_LAST = 0x40;
81 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9 86 const RANGE2_FIRST = 0x7b; // {|}~ encodes 6..9
82 const RANGE2_LAST = 0x7e; 87 const RANGE2_LAST = 0x7e;
83 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16 88 const RANGE3_FIRST = 0x25; // %&'()*+ encodes 10..16
84 const RANGE3_LAST = 0x2b; 89 const RANGE3_LAST = 0x2b;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698