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

Side by Side Diff: lib/compiler/implementation/universe.dart

Issue 10915104: Move namer into javascript backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 Universe { 5 class Universe {
6 Map<Element, CodeBuffer> generatedCode; 6 Map<Element, CodeBuffer> generatedCode;
7 Map<Element, CodeBuffer> generatedBailoutCode; 7 Map<Element, CodeBuffer> generatedBailoutCode;
8 final Set<ClassElement> instantiatedClasses; 8 final Set<ClassElement> instantiatedClasses;
9 final Set<FunctionElement> staticFunctionsNeedingGetter; 9 final Set<FunctionElement> staticFunctionsNeedingGetter;
10 final Map<SourceString, Set<Selector>> invokedNames; 10 final Map<SourceString, Set<Selector>> invokedNames;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 Elements.constructOperatorName(const SourceString("[]="), false), 134 Elements.constructOperatorName(const SourceString("[]="), false),
135 null, 2); 135 null, 2);
136 136
137 Selector.call(SourceString name, 137 Selector.call(SourceString name,
138 LibraryElement library, 138 LibraryElement library,
139 int arity, 139 int arity,
140 [List<SourceString> named = const []]) 140 [List<SourceString> named = const []])
141 : this(SelectorKind.CALL, name, library, arity, named); 141 : this(SelectorKind.CALL, name, library, arity, named);
142 142
143 Selector.callClosure(int arity, [List<SourceString> named = const []]) 143 Selector.callClosure(int arity, [List<SourceString> named = const []])
144 : this(SelectorKind.CALL, Namer.CLOSURE_INVOCATION_NAME, null, 144 : this(SelectorKind.CALL, Compiler.CALL_OPERATOR_NAME, null,
145 arity, named); 145 arity, named);
146 146
147 Selector.callClosureFrom(Selector selector) 147 Selector.callClosureFrom(Selector selector)
148 : this(SelectorKind.CALL, Namer.CLOSURE_INVOCATION_NAME, null, 148 : this(SelectorKind.CALL, Compiler.CALL_OPERATOR_NAME, null,
149 selector.argumentCount, selector.namedArguments); 149 selector.argumentCount, selector.namedArguments);
150 150
151 // TODO(kasperl): This belongs somewhere else. 151 // TODO(kasperl): This belongs somewhere else.
152 Selector.noSuchMethod() 152 Selector.noSuchMethod()
153 : this(SelectorKind.CALL, Compiler.NO_SUCH_METHOD, null, 2); 153 : this(SelectorKind.CALL, Compiler.NO_SUCH_METHOD, null, 2);
154 154
155 bool isGetter() => kind === SelectorKind.GETTER; 155 bool isGetter() => kind === SelectorKind.GETTER;
156 bool isSetter() => kind === SelectorKind.SETTER; 156 bool isSetter() => kind === SelectorKind.SETTER;
157 bool isCall() => kind === SelectorKind.CALL; 157 bool isCall() => kind === SelectorKind.CALL;
158 158
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 384 }
385 385
386 return false; 386 return false;
387 } 387 }
388 388
389 toString() { 389 toString() {
390 return 'Selector($kind, "${name.slowToString()}", ' 390 return 'Selector($kind, "${name.slowToString()}", '
391 '$argumentCount, type=$receiverType)'; 391 '$argumentCount, type=$receiverType)';
392 } 392 }
393 } 393 }
OLDNEW
« lib/compiler/implementation/compiler.dart ('K') | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698