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

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

Issue 23633002: Implementation for ClosureMirror.findInContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Aaaaaaaaaand one more round of comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.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 #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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 // Code objects are held weakly via an indirection through WeakProperty. 2078 // Code objects are held weakly via an indirection through WeakProperty.
2079 RawArray* dependent_code() const; 2079 RawArray* dependent_code() const;
2080 void set_dependent_code(const Array& array) const; 2080 void set_dependent_code(const Array& array) const;
2081 2081
2082 // Add the given code object to the list of dependent ones. 2082 // Add the given code object to the list of dependent ones.
2083 void RegisterDependentCode(const Code& code) const; 2083 void RegisterDependentCode(const Code& code) const;
2084 2084
2085 // Deoptimize all dependent code objects. 2085 // Deoptimize all dependent code objects.
2086 void DeoptimizeDependentCode() const; 2086 void DeoptimizeDependentCode() const;
2087 2087
2088 bool IsUninitialized() const;
2089
2088 // Constructs getter and setter names for fields and vice versa. 2090 // Constructs getter and setter names for fields and vice versa.
2089 static RawString* GetterName(const String& field_name); 2091 static RawString* GetterName(const String& field_name);
2090 static RawString* GetterSymbol(const String& field_name); 2092 static RawString* GetterSymbol(const String& field_name);
2091 static RawString* SetterName(const String& field_name); 2093 static RawString* SetterName(const String& field_name);
2092 static RawString* SetterSymbol(const String& field_name); 2094 static RawString* SetterSymbol(const String& field_name);
2093 static RawString* NameFromGetter(const String& getter_name); 2095 static RawString* NameFromGetter(const String& getter_name);
2094 static RawString* NameFromSetter(const String& setter_name); 2096 static RawString* NameFromSetter(const String& setter_name);
2095 static bool IsGetterName(const String& function_name); 2097 static bool IsGetterName(const String& function_name);
2096 static bool IsSetterName(const String& function_name); 2098 static bool IsSetterName(const String& function_name);
2097 2099
(...skipping 4097 matching lines...) Expand 10 before | Expand all | Expand 10 after
6195 6197
6196 6198
6197 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6198 intptr_t index) { 6200 intptr_t index) {
6199 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6201 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6200 } 6202 }
6201 6203
6202 } // namespace dart 6204 } // namespace dart
6203 6205
6204 #endif // VM_OBJECT_H_ 6206 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698