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

Side by Side Diff: runtime/observatory/lib/src/elements/function_view.dart

Issue 2984083002: Revert "Simplify and fix implicit closure check, speed up Closure_equals" (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/observatory/lib/src/models/objects/function.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 function_view_element; 5 library function_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/class_ref.dart'; 10 import 'package:observatory/src/elements/class_ref.dart';
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 392 }
393 _r.dirty(); 393 _r.dirty();
394 } 394 }
395 395
396 static String _functionKindToString(M.FunctionKind kind) { 396 static String _functionKindToString(M.FunctionKind kind) {
397 switch (kind) { 397 switch (kind) {
398 case M.FunctionKind.regular: 398 case M.FunctionKind.regular:
399 return 'regular'; 399 return 'regular';
400 case M.FunctionKind.closure: 400 case M.FunctionKind.closure:
401 return 'closure'; 401 return 'closure';
402 case M.FunctionKind.implicitClosure:
403 return 'implicit closure';
404 case M.FunctionKind.getter: 402 case M.FunctionKind.getter:
405 return 'getter'; 403 return 'getter';
406 case M.FunctionKind.setter: 404 case M.FunctionKind.setter:
407 return 'setter'; 405 return 'setter';
408 case M.FunctionKind.constructor: 406 case M.FunctionKind.constructor:
409 return 'constructor'; 407 return 'constructor';
410 case M.FunctionKind.implicitGetter: 408 case M.FunctionKind.implicitGetter:
411 return 'implicit getter'; 409 return 'implicit getter';
412 case M.FunctionKind.implicitSetter: 410 case M.FunctionKind.implicitSetter:
413 return 'implicit setter'; 411 return 'implicit setter';
(...skipping 16 matching lines...) Expand all
430 case M.FunctionKind.stub: 428 case M.FunctionKind.stub:
431 return 'stub'; 429 return 'stub';
432 case M.FunctionKind.tag: 430 case M.FunctionKind.tag:
433 return 'tag'; 431 return 'tag';
434 case M.FunctionKind.signatureFunction: 432 case M.FunctionKind.signatureFunction:
435 return 'signature function'; 433 return 'signature function';
436 } 434 }
437 throw new Exception('Unknown Functionkind ($kind)'); 435 throw new Exception('Unknown Functionkind ($kind)');
438 } 436 }
439 } 437 }
OLDNEW
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/observatory/lib/src/models/objects/function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698