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

Side by Side Diff: runtime/vm/dart_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/code_patcher_x64_test.cc ('k') | runtime/vm/debugger.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) 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 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 4265 matching lines...) Expand 10 before | Expand all | Expand 10 after
4276 type_args_obj ^= TypeArguments::New(num_expected_type_arguments); 4276 type_args_obj ^= TypeArguments::New(num_expected_type_arguments);
4277 AbstractType& type_arg = AbstractType::Handle(); 4277 AbstractType& type_arg = AbstractType::Handle();
4278 for (intptr_t i = 0; i < number_of_type_arguments; i++) { 4278 for (intptr_t i = 0; i < number_of_type_arguments; i++) {
4279 type_arg ^= array.At(i); 4279 type_arg ^= array.At(i);
4280 type_args_obj.SetTypeAt(i, type_arg); 4280 type_args_obj.SetTypeAt(i, type_arg);
4281 } 4281 }
4282 } 4282 }
4283 4283
4284 // Construct the type object, canonicalize it and return. 4284 // Construct the type object, canonicalize it and return.
4285 Type& instantiated_type = Type::Handle( 4285 Type& instantiated_type = Type::Handle(
4286 Type::New(cls, type_args_obj, Scanner::kDummyTokenIndex)); 4286 Type::New(cls, type_args_obj, Scanner::kNoSourcePos));
4287 instantiated_type ^= ClassFinalizer::FinalizeType( 4287 instantiated_type ^= ClassFinalizer::FinalizeType(
4288 cls, instantiated_type, ClassFinalizer::kCanonicalize); 4288 cls, instantiated_type, ClassFinalizer::kCanonicalize);
4289 return Api::NewHandle(isolate, instantiated_type.raw()); 4289 return Api::NewHandle(isolate, instantiated_type.raw());
4290 } 4290 }
4291 4291
4292 4292
4293 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library) { 4293 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library) {
4294 Isolate* isolate = Isolate::Current(); 4294 Isolate* isolate = Isolate::Current();
4295 DARTSCOPE(isolate); 4295 DARTSCOPE(isolate);
4296 const Library& lib = Api::UnwrapLibraryHandle(isolate, library); 4296 const Library& lib = Api::UnwrapLibraryHandle(isolate, library);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
4527 } 4527 }
4528 4528
4529 4529
4530 // --- Service support --- 4530 // --- Service support ---
4531 4531
4532 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) { 4532 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) {
4533 return Api::CastIsolate(Service::GetServiceIsolate(callback_data)); 4533 return Api::CastIsolate(Service::GetServiceIsolate(callback_data));
4534 } 4534 }
4535 4535
4536 } // namespace dart 4536 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_x64_test.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698