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

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

Issue 3008923002: Improve the performance of closure-converted code. (Closed)
Patch Set: Additional bug fixes. Created 3 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
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 402 case M.FunctionKind.implicitClosure:
403 return 'implicit closure'; 403 return 'implicit closure';
404 case M.FunctionKind.convertedClosure:
405 return 'converted closure';
404 case M.FunctionKind.getter: 406 case M.FunctionKind.getter:
405 return 'getter'; 407 return 'getter';
406 case M.FunctionKind.setter: 408 case M.FunctionKind.setter:
407 return 'setter'; 409 return 'setter';
408 case M.FunctionKind.constructor: 410 case M.FunctionKind.constructor:
409 return 'constructor'; 411 return 'constructor';
410 case M.FunctionKind.implicitGetter: 412 case M.FunctionKind.implicitGetter:
411 return 'implicit getter'; 413 return 'implicit getter';
412 case M.FunctionKind.implicitSetter: 414 case M.FunctionKind.implicitSetter:
413 return 'implicit setter'; 415 return 'implicit setter';
(...skipping 16 matching lines...) Expand all
430 case M.FunctionKind.stub: 432 case M.FunctionKind.stub:
431 return 'stub'; 433 return 'stub';
432 case M.FunctionKind.tag: 434 case M.FunctionKind.tag:
433 return 'tag'; 435 return 'tag';
434 case M.FunctionKind.signatureFunction: 436 case M.FunctionKind.signatureFunction:
435 return 'signature function'; 437 return 'signature function';
436 } 438 }
437 throw new Exception('Unknown Functionkind ($kind)'); 439 throw new Exception('Unknown Functionkind ($kind)');
438 } 440 }
439 } 441 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/syncstar.dart.expect ('k') | runtime/observatory/lib/src/models/objects/function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698