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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart

Issue 1153243003: dart2js: Use frequency of occurence to sort metadata indices. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed sra's comments Created 5 years, 6 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) 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 dart2js.ir_nodes_sexpr; 5 library dart2js.ir_nodes_sexpr;
6 6
7 import '../constants/values.dart'; 7 import '../constants/values.dart';
8 import '../util/util.dart'; 8 import '../util/util.dart';
9 import 'cps_ir_nodes.dart'; 9 import 'cps_ir_nodes.dart';
10 10
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 String visitType(TypeConstantValue constant, _) { 398 String visitType(TypeConstantValue constant, _) {
399 return '(Type "${constant.representedType}")'; 399 return '(Type "${constant.representedType}")';
400 } 400 }
401 401
402 String visitInterceptor(InterceptorConstantValue constant, _) { 402 String visitInterceptor(InterceptorConstantValue constant, _) {
403 return _failWith(constant); 403 return _failWith(constant);
404 } 404 }
405 405
406 String visitDummy(DummyConstantValue constant, _) { 406 String visitSynthetic(SyntheticConstantValue constant, _) {
407 return _failWith(constant); 407 return _failWith(constant);
408 } 408 }
409 409
410 String visitDeferred(DeferredConstantValue constant, _) { 410 String visitDeferred(DeferredConstantValue constant, _) {
411 return _failWith(constant); 411 return _failWith(constant);
412 } 412 }
413 } 413 }
414 414
415 class _Namer { 415 class _Namer {
416 final Map<Node, String> _names = <Node, String>{}; 416 final Map<Node, String> _names = <Node, String>{};
(...skipping 28 matching lines...) Expand all
445 void setReturnContinuation(Continuation node) { 445 void setReturnContinuation(Continuation node) {
446 assert(!_names.containsKey(node) || _names[node] == 'return'); 446 assert(!_names.containsKey(node) || _names[node] == 'return');
447 _names[node] = 'return'; 447 _names[node] = 'return';
448 } 448 }
449 449
450 String getName(Node node) { 450 String getName(Node node) {
451 if (!_names.containsKey(node)) return 'MISSING_NAME'; 451 if (!_names.containsKey(node)) return 'MISSING_NAME';
452 return _names[node]; 452 return _names[node];
453 } 453 }
454 } 454 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698