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

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

Issue 23102019: Evaluate expression in the context of a class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/debugger_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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 RawFunction* GetInvocationDispatcher(const String& target_name, 942 RawFunction* GetInvocationDispatcher(const String& target_name,
943 const Array& args_desc, 943 const Array& args_desc,
944 RawFunction::Kind kind) const; 944 RawFunction::Kind kind) const;
945 945
946 void Finalize() const; 946 void Finalize() const;
947 947
948 // Apply given patch class to this class. 948 // Apply given patch class to this class.
949 // Return true on success, or false and error otherwise. 949 // Return true on success, or false and error otherwise.
950 bool ApplyPatch(const Class& patch, Error* error) const; 950 bool ApplyPatch(const Class& patch, Error* error) const;
951 951
952
srdjan 2013/08/23 22:26:10 Only one line between functions.
hausner 2013/08/23 22:44:50 Done.
953 RawObject* Evaluate(const String& expr) const;
954
952 RawError* EnsureIsFinalized(Isolate* isolate) const; 955 RawError* EnsureIsFinalized(Isolate* isolate) const;
953 956
954 // Allocate a class used for VM internal objects. 957 // Allocate a class used for VM internal objects.
955 template <class FakeObject> static RawClass* New(); 958 template <class FakeObject> static RawClass* New();
956 959
957 // Allocate instance classes. 960 // Allocate instance classes.
958 static RawClass* New(const String& name, 961 static RawClass* New(const String& name,
959 const Script& script, 962 const Script& script,
960 intptr_t token_pos); 963 intptr_t token_pos);
961 static RawClass* NewNativeWrapper(const Library& library, 964 static RawClass* NewNativeWrapper(const Library& library,
(...skipping 5154 matching lines...) Expand 10 before | Expand all | Expand 10 after
6116 6119
6117 6120
6118 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6121 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6119 intptr_t index) { 6122 intptr_t index) {
6120 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6123 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6121 } 6124 }
6122 6125
6123 } // namespace dart 6126 } // namespace dart
6124 6127
6125 #endif // VM_OBJECT_H_ 6128 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698