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

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

Issue 10910088: Fix host-checked + checked by registering when a class is being instantiated, not when being proces… (Closed) Base URL: http://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<SourceString> instantiatedClassInstanceFields;
10 final Set<FunctionElement> staticFunctionsNeedingGetter; 9 final Set<FunctionElement> staticFunctionsNeedingGetter;
11 final Map<SourceString, Set<Selector>> invokedNames; 10 final Map<SourceString, Set<Selector>> invokedNames;
12 final Map<SourceString, Set<Selector>> invokedGetters; 11 final Map<SourceString, Set<Selector>> invokedGetters;
13 final Map<SourceString, Set<Selector>> invokedSetters; 12 final Map<SourceString, Set<Selector>> invokedSetters;
14 final Map<SourceString, Set<Selector>> fieldGetters; 13 final Map<SourceString, Set<Selector>> fieldGetters;
15 final Map<SourceString, Set<Selector>> fieldSetters; 14 final Map<SourceString, Set<Selector>> fieldSetters;
16 // TODO(ngeoffray): This should be a Set<DartType>. 15 // TODO(ngeoffray): This should be a Set<DartType>.
17 final Set<Element> isChecks; 16 final Set<Element> isChecks;
18 final RuntimeTypeInformation rti; 17 final RuntimeTypeInformation rti;
19 18
20 Universe() : generatedCode = new Map<Element, CodeBuffer>(), 19 Universe() : generatedCode = new Map<Element, CodeBuffer>(),
21 generatedBailoutCode = new Map<Element, CodeBuffer>(), 20 generatedBailoutCode = new Map<Element, CodeBuffer>(),
22 instantiatedClasses = new Set<ClassElement>(), 21 instantiatedClasses = new Set<ClassElement>(),
23 instantiatedClassInstanceFields = new Set<SourceString>(),
24 staticFunctionsNeedingGetter = new Set<FunctionElement>(), 22 staticFunctionsNeedingGetter = new Set<FunctionElement>(),
25 invokedNames = new Map<SourceString, Set<Selector>>(), 23 invokedNames = new Map<SourceString, Set<Selector>>(),
26 invokedGetters = new Map<SourceString, Set<Selector>>(), 24 invokedGetters = new Map<SourceString, Set<Selector>>(),
27 invokedSetters = new Map<SourceString, Set<Selector>>(), 25 invokedSetters = new Map<SourceString, Set<Selector>>(),
28 fieldGetters = new Map<SourceString, Set<Selector>>(), 26 fieldGetters = new Map<SourceString, Set<Selector>>(),
29 fieldSetters = new Map<SourceString, Set<Selector>>(), 27 fieldSetters = new Map<SourceString, Set<Selector>>(),
30 isChecks = new Set<Element>(), 28 isChecks = new Set<Element>(),
31 rti = new RuntimeTypeInformation(); 29 rti = new RuntimeTypeInformation();
32 30
33 void addGeneratedCode(WorkItem work, CodeBuffer codeBuffer) { 31 void addGeneratedCode(WorkItem work, CodeBuffer codeBuffer) {
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 384 }
387 385
388 return false; 386 return false;
389 } 387 }
390 388
391 toString() { 389 toString() {
392 return 'Selector($kind, "${name.slowToString()}", ' 390 return 'Selector($kind, "${name.slowToString()}", '
393 '$argumentCount, type=$receiverType)'; 391 '$argumentCount, type=$receiverType)';
394 } 392 }
395 } 393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698