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

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

Issue 2060183002: Serialize metadata (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/elements/elements.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) 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 import '../universe/call_structure.dart' show CallStructure; 10 import '../universe/call_structure.dart' show CallStructure;
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 468 }
469 469
470 String visitFunction(FunctionConstantValue constant, _) { 470 String visitFunction(FunctionConstantValue constant, _) {
471 return '(Function "${constant.toDartText()}")'; 471 return '(Function "${constant.toDartText()}")';
472 } 472 }
473 473
474 String visitNull(NullConstantValue constant, _) { 474 String visitNull(NullConstantValue constant, _) {
475 return '(Null)'; 475 return '(Null)';
476 } 476 }
477 477
478 String visitNonConstant(NonConstantValue constant, _) {
479 return '(NonConstant)';
480 }
481
478 String visitInt(IntConstantValue constant, _) { 482 String visitInt(IntConstantValue constant, _) {
479 return '(Int ${constant.toDartText()})'; 483 return '(Int ${constant.toDartText()})';
480 } 484 }
481 485
482 String visitDouble(DoubleConstantValue constant, _) { 486 String visitDouble(DoubleConstantValue constant, _) {
483 return '(Double ${constant.toDartText()})'; 487 return '(Double ${constant.toDartText()})';
484 } 488 }
485 489
486 String visitBool(BoolConstantValue constant, _) { 490 String visitBool(BoolConstantValue constant, _) {
487 return '(Bool ${constant.toDartText()})'; 491 return '(Bool ${constant.toDartText()})';
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 void setReturnContinuation(Continuation node) { 565 void setReturnContinuation(Continuation node) {
562 assert(!_names.containsKey(node) || _names[node] == 'return'); 566 assert(!_names.containsKey(node) || _names[node] == 'return');
563 _names[node] = 'return'; 567 _names[node] = 'return';
564 } 568 }
565 569
566 String getName(Node node) { 570 String getName(Node node) {
567 if (!_names.containsKey(node)) return 'MISSING_NAME'; 571 if (!_names.containsKey(node)) return 'MISSING_NAME';
568 return _names[node]; 572 return _names[node];
569 } 573 }
570 } 574 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698