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

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

Issue 1644793002: Replace intptr_t with TokenDescriptor (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
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/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 5108 matching lines...) Expand 10 before | Expand all | Expand 10 after
5119 type_args_obj ^= TypeArguments::New(num_expected_type_arguments); 5119 type_args_obj ^= TypeArguments::New(num_expected_type_arguments);
5120 AbstractType& type_arg = AbstractType::Handle(); 5120 AbstractType& type_arg = AbstractType::Handle();
5121 for (intptr_t i = 0; i < number_of_type_arguments; i++) { 5121 for (intptr_t i = 0; i < number_of_type_arguments; i++) {
5122 type_arg ^= array.At(i); 5122 type_arg ^= array.At(i);
5123 type_args_obj.SetTypeAt(i, type_arg); 5123 type_args_obj.SetTypeAt(i, type_arg);
5124 } 5124 }
5125 } 5125 }
5126 5126
5127 // Construct the type object, canonicalize it and return. 5127 // Construct the type object, canonicalize it and return.
5128 Type& instantiated_type = Type::Handle( 5128 Type& instantiated_type = Type::Handle(
5129 Type::New(cls, type_args_obj, Token::kNoSourcePos)); 5129 Type::New(cls, type_args_obj, TokenDescriptor::kNoSource));
5130 instantiated_type ^= ClassFinalizer::FinalizeType( 5130 instantiated_type ^= ClassFinalizer::FinalizeType(
5131 cls, instantiated_type, ClassFinalizer::kCanonicalize); 5131 cls, instantiated_type, ClassFinalizer::kCanonicalize);
5132 return Api::NewHandle(T, instantiated_type.raw()); 5132 return Api::NewHandle(T, instantiated_type.raw());
5133 } 5133 }
5134 5134
5135 5135
5136 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library) { 5136 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library) {
5137 DARTSCOPE(Thread::Current()); 5137 DARTSCOPE(Thread::Current());
5138 const Library& lib = Api::UnwrapLibraryHandle(Z, library); 5138 const Library& lib = Api::UnwrapLibraryHandle(Z, library);
5139 if (lib.IsNull()) { 5139 if (lib.IsNull()) {
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
5969 return Api::Success(); 5969 return Api::Success();
5970 } 5970 }
5971 #endif // DART_PRECOMPILED_RUNTIME 5971 #endif // DART_PRECOMPILED_RUNTIME
5972 5972
5973 5973
5974 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { 5974 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
5975 return Dart::IsRunningPrecompiledCode(); 5975 return Dart::IsRunningPrecompiledCode();
5976 } 5976 }
5977 5977
5978 } // namespace dart 5978 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/debugger.h » ('j') | runtime/vm/token_descriptor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698