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

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

Issue 2442513003: GN: Build the SDK with app snapshots instead of script snapshots. (Closed)
Patch Set: . Created 4 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 #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 "lib/stacktrace.h" 10 #include "lib/stacktrace.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 class FunctionVisitor : public ObjectVisitor { 106 class FunctionVisitor : public ObjectVisitor {
107 public: 107 public:
108 explicit FunctionVisitor(Thread* thread) : 108 explicit FunctionVisitor(Thread* thread) :
109 classHandle_(Class::Handle(thread->zone())), 109 classHandle_(Class::Handle(thread->zone())),
110 funcHandle_(Function::Handle(thread->zone())), 110 funcHandle_(Function::Handle(thread->zone())),
111 typeHandle_(AbstractType::Handle(thread->zone())) {} 111 typeHandle_(AbstractType::Handle(thread->zone())) {}
112 112
113 void VisitObject(RawObject* obj) { 113 void VisitObject(RawObject* obj) {
114 if (obj->IsFunction()) { 114 if (obj->IsFunction()) {
115 funcHandle_ ^= obj; 115 funcHandle_ ^= obj;
116 if (funcHandle_.IsSignatureFunction()) {
117 // TODO(27606): Remove signature function case.
118 return;
119 }
120
116 classHandle_ ^= funcHandle_.Owner(); 121 classHandle_ ^= funcHandle_.Owner();
117 // Verify that the result type of a function is canonical or a 122 // Verify that the result type of a function is canonical or a
118 // TypeParameter. 123 // TypeParameter.
119 typeHandle_ ^= funcHandle_.result_type(); 124 typeHandle_ ^= funcHandle_.result_type();
120 ASSERT(typeHandle_.IsMalformed() || 125 ASSERT(typeHandle_.IsMalformed() ||
121 !typeHandle_.IsResolved() || 126 !typeHandle_.IsResolved() ||
122 typeHandle_.IsTypeParameter() || 127 typeHandle_.IsTypeParameter() ||
123 typeHandle_.IsCanonical()); 128 typeHandle_.IsCanonical());
124 // Verify that the types in the function signature are all canonical or 129 // Verify that the types in the function signature are all canonical or
125 // a TypeParameter. 130 // a TypeParameter.
(...skipping 6513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6639 6644
6640 DART_EXPORT bool Dart_IsPrecompiledRuntime() { 6645 DART_EXPORT bool Dart_IsPrecompiledRuntime() {
6641 #if defined(DART_PRECOMPILED_RUNTIME) 6646 #if defined(DART_PRECOMPILED_RUNTIME)
6642 return true; 6647 return true;
6643 #else 6648 #else
6644 return false; 6649 return false;
6645 #endif 6650 #endif
6646 } 6651 }
6647 6652
6648 } // namespace dart 6653 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698