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

Side by Side Diff: runtime/vm/debugger_api_impl.cc

Issue 1589643002: Source positions for constructors and lots of async machinery (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_builder.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "include/dart_tools_api.h" 5 #include "include/dart_tools_api.h"
6 6
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_state.h" 10 #include "vm/dart_api_state.h"
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 super_type_args_array = TypeArguments::New(num_expected_type_arguments); 645 super_type_args_array = TypeArguments::New(num_expected_type_arguments);
646 AbstractType& type_arg = AbstractType::Handle(); 646 AbstractType& type_arg = AbstractType::Handle();
647 for (intptr_t i = 0; i < num_expected_type_arguments; i++) { 647 for (intptr_t i = 0; i < num_expected_type_arguments; i++) {
648 type_arg ^= type_args_array.TypeAt(i); 648 type_arg ^= type_args_array.TypeAt(i);
649 super_type_args_array.SetTypeAt(i, type_arg); 649 super_type_args_array.SetTypeAt(i, type_arg);
650 } 650 }
651 } 651 }
652 652
653 // Construct the super type object, canonicalize it and return. 653 // Construct the super type object, canonicalize it and return.
654 Type& instantiated_type = Type::Handle( 654 Type& instantiated_type = Type::Handle(
655 Type::New(super_cls, super_type_args_array, Scanner::kNoSourcePos)); 655 Type::New(super_cls, super_type_args_array, Token::kNoSourcePos));
656 ASSERT(!instantiated_type.IsNull()); 656 ASSERT(!instantiated_type.IsNull());
657 instantiated_type.SetIsFinalized(); 657 instantiated_type.SetIsFinalized();
658 return Api::NewHandle(T, instantiated_type.Canonicalize()); 658 return Api::NewHandle(T, instantiated_type.Canonicalize());
659 } 659 }
660 660
661 661
662 DART_EXPORT Dart_Handle Dart_GetClosureInfo( 662 DART_EXPORT Dart_Handle Dart_GetClosureInfo(
663 Dart_Handle closure, 663 Dart_Handle closure,
664 Dart_Handle* name, 664 Dart_Handle* name,
665 Dart_Handle* signature, 665 Dart_Handle* signature,
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 return Api::CastIsolate(isolate); 954 return Api::CastIsolate(isolate);
955 } 955 }
956 956
957 957
958 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate dart_isolate) { 958 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate dart_isolate) {
959 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate); 959 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate);
960 return isolate->debugger()->GetIsolateId(); 960 return isolate->debugger()->GetIsolateId();
961 } 961 }
962 962
963 } // namespace dart 963 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698