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

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

Issue 11421056: Re-apply issue 11308169: GVN getInterceptor and use the interceptor constant when the type is known. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library elements; 5 library elements;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed.
10 import '../../compiler.dart' as api_e; 10 import '../../compiler.dart' as api_e;
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 String value = name.stringValue; 1845 String value = name.stringValue;
1846 if (value == null) { 1846 if (value == null) {
1847 return name; 1847 return name;
1848 } else if (identical(value, '==')) { 1848 } else if (identical(value, '==')) {
1849 return const SourceString(r'operator$eq'); 1849 return const SourceString(r'operator$eq');
1850 } else if (identical(value, '~')) { 1850 } else if (identical(value, '~')) {
1851 return const SourceString(r'operator$not'); 1851 return const SourceString(r'operator$not');
1852 } else if (identical(value, '[]')) { 1852 } else if (identical(value, '[]')) {
1853 return const SourceString(r'operator$index'); 1853 return const SourceString(r'operator$index');
1854 } else if (identical(value, '[]=')) { 1854 } else if (identical(value, '[]=')) {
1855 return const SourceString(r'oprator$indexSet'); 1855 return const SourceString(r'operator$indexSet');
1856 } else if (identical(value, '*')) { 1856 } else if (identical(value, '*')) {
1857 return const SourceString(r'operator$mul'); 1857 return const SourceString(r'operator$mul');
1858 } else if (identical(value, '/')) { 1858 } else if (identical(value, '/')) {
1859 return const SourceString(r'operator$div'); 1859 return const SourceString(r'operator$div');
1860 } else if (identical(value, '%')) { 1860 } else if (identical(value, '%')) {
1861 return const SourceString(r'operator$mod'); 1861 return const SourceString(r'operator$mod');
1862 } else if (identical(value, '~/')) { 1862 } else if (identical(value, '~/')) {
1863 return const SourceString(r'operator$tdiv'); 1863 return const SourceString(r'operator$tdiv');
1864 } else if (identical(value, '+')) { 1864 } else if (identical(value, '+')) {
1865 return const SourceString(r'operator$add'); 1865 return const SourceString(r'operator$add');
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 2075
2076 MetadataAnnotation ensureResolved(Compiler compiler) { 2076 MetadataAnnotation ensureResolved(Compiler compiler) {
2077 if (resolutionState == STATE_NOT_STARTED) { 2077 if (resolutionState == STATE_NOT_STARTED) {
2078 compiler.resolver.resolveMetadataAnnotation(this); 2078 compiler.resolver.resolveMetadataAnnotation(this);
2079 } 2079 }
2080 return this; 2080 return this;
2081 } 2081 }
2082 2082
2083 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2083 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2084 } 2084 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698