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

Side by Side Diff: pkg/kernel/lib/binary/ast_to_binary.dart

Issue 2697193008: [Kernel] replace function debuggable field with originalAsyncMarker field (Closed)
Patch Set: ASSERT in kernel_reader Created 3 years, 10 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/kernel/lib/binary/ast_from_binary.dart ('k') | pkg/kernel/lib/clone.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library kernel.ast_to_binary; 4 library kernel.ast_to_binary;
5 5
6 import '../ast.dart'; 6 import '../ast.dart';
7 import '../import_table.dart'; 7 import '../import_table.dart';
8 import 'tag.dart'; 8 import 'tag.dart';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 _variableIndexer.pushScope(); 430 _variableIndexer.pushScope();
431 var oldLabels = _labelIndexer; 431 var oldLabels = _labelIndexer;
432 _labelIndexer = new LabelIndexer(); 432 _labelIndexer = new LabelIndexer();
433 var oldCases = _switchCaseIndexer; 433 var oldCases = _switchCaseIndexer;
434 _switchCaseIndexer = new SwitchCaseIndexer(); 434 _switchCaseIndexer = new SwitchCaseIndexer();
435 // Note: FunctionNode has no tag. 435 // Note: FunctionNode has no tag.
436 _typeParameterIndexer.enter(node.typeParameters); 436 _typeParameterIndexer.enter(node.typeParameters);
437 writeOffset(node, node.fileOffset); 437 writeOffset(node, node.fileOffset);
438 writeOffset(node, node.fileEndOffset); 438 writeOffset(node, node.fileEndOffset);
439 writeByte(node.asyncMarker.index); 439 writeByte(node.asyncMarker.index);
440 writeByte(node.debuggable ? 1 : 0); 440 writeByte(node.dartAsyncMarker.index);
441 writeNodeList(node.typeParameters); 441 writeNodeList(node.typeParameters);
442 writeUInt30(node.requiredParameterCount); 442 writeUInt30(node.requiredParameterCount);
443 writeVariableDeclarationList(node.positionalParameters); 443 writeVariableDeclarationList(node.positionalParameters);
444 writeVariableDeclarationList(node.namedParameters); 444 writeVariableDeclarationList(node.namedParameters);
445 writeNode(node.returnType); 445 writeNode(node.returnType);
446 writeOptionalInferredValue(node.inferredReturnValue); 446 writeOptionalInferredValue(node.inferredReturnValue);
447 writeOptionalNode(node.body); 447 writeOptionalNode(node.body);
448 _labelIndexer = oldLabels; 448 _labelIndexer = oldLabels;
449 _switchCaseIndexer = oldCases; 449 _switchCaseIndexer = oldCases;
450 _typeParameterIndexer.exit(node.typeParameters); 450 _typeParameterIndexer.exit(node.typeParameters);
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 void flush() { 1285 void flush() {
1286 _sink.add(_buffer.sublist(0, length)); 1286 _sink.add(_buffer.sublist(0, length));
1287 _buffer = new Uint8List(SIZE); 1287 _buffer = new Uint8List(SIZE);
1288 length = 0; 1288 length = 0;
1289 } 1289 }
1290 1290
1291 void flushAndDestroy() { 1291 void flushAndDestroy() {
1292 _sink.add(_buffer.sublist(0, length)); 1292 _sink.add(_buffer.sublist(0, length));
1293 } 1293 }
1294 } 1294 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/binary/ast_from_binary.dart ('k') | pkg/kernel/lib/clone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698