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

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

Issue 1403883002: -Fix display of megamorphic miss function. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 script_inset_element; 5 library script_inset_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'observatory_element.dart'; 9 import 'observatory_element.dart';
10 import 'service_ref.dart'; 10 import 'service_ref.dart';
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 ? (script.tokenToCol(currentPos)) 537 ? (script.tokenToCol(currentPos))
538 : null); 538 : null);
539 if (_currentCol != null) { 539 if (_currentCol != null) {
540 _currentCol--; // make this 0-based. 540 _currentCol--; // make this 0-based.
541 } 541 }
542 542
543 _endLine = (endPos != null 543 _endLine = (endPos != null
544 ? script.tokenToLine(endPos) 544 ? script.tokenToLine(endPos)
545 : script.lines.length + script.lineOffset); 545 : script.lines.length + script.lineOffset);
546 546
547 if (_startLine == null || _endLine == null) {
548 return;
549 }
550
547 annotations.clear(); 551 annotations.clear();
548 552
549 addCurrentExecutionAnnotation(); 553 addCurrentExecutionAnnotation();
550 addBreakpointAnnotations(); 554 addBreakpointAnnotations();
551 555
552 if (!inDebuggerContext && script.library != null) { 556 if (!inDebuggerContext && script.library != null) {
553 if (hasLoadedLibraryDeclarations) { 557 if (hasLoadedLibraryDeclarations) {
554 addLibraryAnnotations(); 558 addLibraryAnnotations();
555 addDependencyAnnotations(); 559 addDependencyAnnotations();
556 addPartAnnotations(); 560 addPartAnnotations();
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 @CustomTag('source-inset') 1022 @CustomTag('source-inset')
1019 class SourceInsetElement extends PolymerElement { 1023 class SourceInsetElement extends PolymerElement {
1020 SourceInsetElement.created() : super.created(); 1024 SourceInsetElement.created() : super.created();
1021 1025
1022 @published SourceLocation location; 1026 @published SourceLocation location;
1023 @published String height = null; 1027 @published String height = null;
1024 @published int currentPos; 1028 @published int currentPos;
1025 @published bool inDebuggerContext = false; 1029 @published bool inDebuggerContext = false;
1026 @published ObservableList variables; 1030 @published ObservableList variables;
1027 } 1031 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698