OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #ifndef PRODUCT | 4 #ifndef PRODUCT |
5 #include "vm/source_report.h" | 5 #include "vm/source_report.h" |
6 | 6 |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
9 #include "vm/object.h" | 9 #include "vm/object.h" |
10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 ((end_pos_ > TokenPosition::kMinSource) && | 75 ((end_pos_ > TokenPosition::kMinSource) && |
76 (func.token_pos() > end_pos_))) { | 76 (func.token_pos() > end_pos_))) { |
77 // The function does not intersect with the requested token range. | 77 // The function does not intersect with the requested token range. |
78 return true; | 78 return true; |
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 switch (func.kind()) { | 82 switch (func.kind()) { |
83 case RawFunction::kRegularFunction: | 83 case RawFunction::kRegularFunction: |
84 case RawFunction::kClosureFunction: | 84 case RawFunction::kClosureFunction: |
85 case RawFunction::kImplicitClosureFunction: | |
86 case RawFunction::kGetterFunction: | 85 case RawFunction::kGetterFunction: |
87 case RawFunction::kSetterFunction: | 86 case RawFunction::kSetterFunction: |
88 case RawFunction::kConstructor: | 87 case RawFunction::kConstructor: |
89 break; | 88 break; |
90 default: | 89 default: |
91 return true; | 90 return true; |
92 } | 91 } |
93 if (func.is_abstract() || func.IsImplicitConstructor() || | 92 if (func.is_abstract() || func.IsImplicitConstructor() || |
94 func.IsRedirectingFactory()) { | 93 func.IsRedirectingFactory()) { |
95 return true; | 94 return true; |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 VisitClosures(&ranges); | 510 VisitClosures(&ranges); |
512 } | 511 } |
513 | 512 |
514 // Print the script table. | 513 // Print the script table. |
515 JSONArray scripts(&report, "scripts"); | 514 JSONArray scripts(&report, "scripts"); |
516 PrintScriptTable(&scripts); | 515 PrintScriptTable(&scripts); |
517 } | 516 } |
518 | 517 |
519 } // namespace dart | 518 } // namespace dart |
520 #endif // PRODUCT | 519 #endif // PRODUCT |
OLD | NEW |