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

Side by Side Diff: frog/type.dart

Issue 8334035: Reduces code generated by dynamic calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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
None
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class Type implements Named, Hashable { 5 class Type implements Named, Hashable {
6 final String name; 6 final String name;
7 bool isTested; 7 bool isTested;
8 8
9 String _jsname; 9 String _jsname;
10 10
11 Member _typeMember; 11 Member _typeMember;
12 12
13 /** Stubs used to call into this method dynamically. Lazy initialized. */ 13 /** Stubs used to call into this method dynamically. Lazy initialized. */
14 Map<String, VarMember> varStubs; 14 Map<String, VarMember> varStubs;
15 15
16 Type(this.name): isTested = false; 16 Type(this.name): isTested = false;
17 17
18 void markUsed() {} 18 void markUsed() {}
19 abstract void genMethod(Member method);
19 20
20 TypeMember get typeMember() { 21 TypeMember get typeMember() {
21 if (_typeMember == null) { 22 if (_typeMember == null) {
22 _typeMember = new TypeMember(this); 23 _typeMember = new TypeMember(this);
23 } 24 }
24 return _typeMember; 25 return _typeMember;
25 } 26 }
26 27
27 abstract SourceSpan get span(); 28 abstract SourceSpan get span();
28 29
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 288
288 289
289 /** A type parameter within the body of the type. */ 290 /** A type parameter within the body of the type. */
290 class ParameterType extends Type { 291 class ParameterType extends Type {
291 TypeParameter typeParameter; 292 TypeParameter typeParameter;
292 Type extendsType; 293 Type extendsType;
293 294
294 bool get isClass() => false; 295 bool get isClass() => false;
295 Library get library() => null; // TODO(jimhug): Make right... 296 Library get library() => null; // TODO(jimhug): Make right...
296 SourceSpan get span() => typeParameter.span; 297 SourceSpan get span() => typeParameter.span;

error: old chunk mismatch

OLDNEW
« frog/gen.dart ('K') | « frog/member.dart ('k') | frog/value.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698