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

Side by Side Diff: runtime/vm/object.h

Issue 1195573006: Handle field-invocation and method-extraction in the runtime when --lazy_dispatchers=false. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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) 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 } 2176 }
2177 2177
2178 // Return the closure function implicitly created for this function. 2178 // Return the closure function implicitly created for this function.
2179 // If none exists yet, create one and remember it. 2179 // If none exists yet, create one and remember it.
2180 RawFunction* ImplicitClosureFunction() const; 2180 RawFunction* ImplicitClosureFunction() const;
2181 2181
2182 // Return the closure implicitly created for this function. 2182 // Return the closure implicitly created for this function.
2183 // If none exists yet, create one and remember it. 2183 // If none exists yet, create one and remember it.
2184 RawInstance* ImplicitStaticClosure() const; 2184 RawInstance* ImplicitStaticClosure() const;
2185 2185
2186 RawInstance* ImplicitInstanceClosure(const Instance& receiver) const;
2187
2186 // Redirection information for a redirecting factory. 2188 // Redirection information for a redirecting factory.
2187 bool IsRedirectingFactory() const; 2189 bool IsRedirectingFactory() const;
2188 RawType* RedirectionType() const; 2190 RawType* RedirectionType() const;
2189 void SetRedirectionType(const Type& type) const; 2191 void SetRedirectionType(const Type& type) const;
2190 RawString* RedirectionIdentifier() const; 2192 RawString* RedirectionIdentifier() const;
2191 void SetRedirectionIdentifier(const String& identifier) const; 2193 void SetRedirectionIdentifier(const String& identifier) const;
2192 RawFunction* RedirectionTarget() const; 2194 RawFunction* RedirectionTarget() const;
2193 void SetRedirectionTarget(const Function& target) const; 2195 void SetRedirectionTarget(const Function& target) const;
2194 2196
2195 RawFunction::Kind kind() const { 2197 RawFunction::Kind kind() const {
(...skipping 5773 matching lines...) Expand 10 before | Expand all | Expand 10 after
7969 7971
7970 7972
7971 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7973 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7972 intptr_t index) { 7974 intptr_t index) {
7973 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7975 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7974 } 7976 }
7975 7977
7976 } // namespace dart 7978 } // namespace dart
7977 7979
7978 #endif // VM_OBJECT_H_ 7980 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698