| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analysis.server; | 5 library analysis.server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:math' show max; | 9 import 'dart:math' show max; |
| 10 | 10 |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 if (context is AnalysisContextImpl) { | 1034 if (context is AnalysisContextImpl) { |
| 1035 DartEntry dartEntry = context.getReadableSourceEntryOrNull(source); | 1035 DartEntry dartEntry = context.getReadableSourceEntryOrNull(source); |
| 1036 dartEntry.flushAstStructures(); | 1036 dartEntry.flushAstStructures(); |
| 1037 } else if (context is newContext.AnalysisContextImpl) { | 1037 } else if (context is newContext.AnalysisContextImpl) { |
| 1038 CacheEntry entry = context.getCacheEntry(source); | 1038 CacheEntry entry = context.getCacheEntry(source); |
| 1039 entry.setState(RESOLVED_UNIT1, CacheState.FLUSHED); | 1039 entry.setState(RESOLVED_UNIT1, CacheState.FLUSHED); |
| 1040 entry.setState(RESOLVED_UNIT2, CacheState.FLUSHED); | 1040 entry.setState(RESOLVED_UNIT2, CacheState.FLUSHED); |
| 1041 entry.setState(RESOLVED_UNIT3, CacheState.FLUSHED); | 1041 entry.setState(RESOLVED_UNIT3, CacheState.FLUSHED); |
| 1042 entry.setState(RESOLVED_UNIT4, CacheState.FLUSHED); | 1042 entry.setState(RESOLVED_UNIT4, CacheState.FLUSHED); |
| 1043 entry.setState(RESOLVED_UNIT5, CacheState.FLUSHED); | 1043 entry.setState(RESOLVED_UNIT5, CacheState.FLUSHED); |
| 1044 entry.setState(RESOLVED_UNIT6, CacheState.FLUSHED); | 1044 entry.setState(RESOLVED_UNIT_NO_CONSTANTS, CacheState.FLUSHED); |
| 1045 entry.setState(RESOLVED_UNIT, CacheState.FLUSHED); | 1045 entry.setState(RESOLVED_UNIT, CacheState.FLUSHED); |
| 1046 } | 1046 } |
| 1047 } | 1047 } |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 /** | 1050 /** |
| 1051 * Performs all scheduled analysis operations. | 1051 * Performs all scheduled analysis operations. |
| 1052 */ | 1052 */ |
| 1053 void test_performAllAnalysisOperations() { | 1053 void test_performAllAnalysisOperations() { |
| 1054 while (true) { | 1054 while (true) { |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 /** | 1542 /** |
| 1543 * The [PerformanceTag] for time spent in server request handlers. | 1543 * The [PerformanceTag] for time spent in server request handlers. |
| 1544 */ | 1544 */ |
| 1545 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 1545 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 1546 | 1546 |
| 1547 /** | 1547 /** |
| 1548 * The [PerformanceTag] for time spent in split store microtasks. | 1548 * The [PerformanceTag] for time spent in split store microtasks. |
| 1549 */ | 1549 */ |
| 1550 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1550 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 1551 } | 1551 } |
| OLD | NEW |