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

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

Issue 144343002: Rename kDummyTokenIndex to kNoSourcePos (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_builder.cc » ('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_debugger_api.h" 5 #include "include/dart_debugger_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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 super_type_args_array = TypeArguments::New(num_expected_type_arguments); 614 super_type_args_array = TypeArguments::New(num_expected_type_arguments);
615 AbstractType& type_arg = AbstractType::Handle(); 615 AbstractType& type_arg = AbstractType::Handle();
616 for (intptr_t i = 0; i < num_expected_type_arguments; i++) { 616 for (intptr_t i = 0; i < num_expected_type_arguments; i++) {
617 type_arg ^= type_args_array.TypeAt(i); 617 type_arg ^= type_args_array.TypeAt(i);
618 super_type_args_array.SetTypeAt(i, type_arg); 618 super_type_args_array.SetTypeAt(i, type_arg);
619 } 619 }
620 } 620 }
621 621
622 // Construct the super type object, canonicalize it and return. 622 // Construct the super type object, canonicalize it and return.
623 Type& instantiated_type = Type::Handle( 623 Type& instantiated_type = Type::Handle(
624 Type::New(super_cls, super_type_args_array, Scanner::kDummyTokenIndex)); 624 Type::New(super_cls, super_type_args_array, Scanner::kNoSourcePos));
625 ASSERT(!instantiated_type.IsNull()); 625 ASSERT(!instantiated_type.IsNull());
626 instantiated_type.SetIsFinalized(); 626 instantiated_type.SetIsFinalized();
627 return Api::NewHandle(isolate, instantiated_type.Canonicalize()); 627 return Api::NewHandle(isolate, instantiated_type.Canonicalize());
628 } 628 }
629 629
630 630
631 DART_EXPORT Dart_Handle Dart_GetClosureInfo( 631 DART_EXPORT Dart_Handle Dart_GetClosureInfo(
632 Dart_Handle closure, 632 Dart_Handle closure,
633 Dart_Handle* name, 633 Dart_Handle* name,
634 Dart_Handle* signature, 634 Dart_Handle* signature,
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 980
981 981
982 DART_EXPORT char* Dart_GetVmStatus(const char* request) { 982 DART_EXPORT char* Dart_GetVmStatus(const char* request) {
983 if (strncmp(request, "/isolate/", 9) == 0) { 983 if (strncmp(request, "/isolate/", 9) == 0) {
984 return Isolate::GetStatus(request); 984 return Isolate::GetStatus(request);
985 } 985 }
986 return NULL; 986 return NULL;
987 } 987 }
988 988
989 } // namespace dart 989 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698