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

Unified Diff: vm/raw_object.h

Issue 9691024: - Make RawICData a subclass of RawObject and not RawInstance. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/object.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.h
===================================================================
--- vm/raw_object.h (revision 5374)
+++ vm/raw_object.h (working copy)
@@ -39,6 +39,7 @@
V(ExceptionHandlers) \
V(Context) \
V(ContextScope) \
+ V(ICData) \
V(Error) \
V(ApiError) \
V(LanguageError) \
@@ -68,7 +69,6 @@
V(Closure) \
V(Stacktrace) \
V(JSRegExp) \
- V(ICData) \
#define CLASS_LIST(V) \
V(Object) \
@@ -760,6 +760,23 @@
};
+class RawICData : public RawObject {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(ICData);
+
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->function_);
+ }
+ RawFunction* function_; // Parent/calling function of this IC.
+ RawString* target_name_; // Name of target function.
+ RawArray* ic_data_; // Contains test classes and target function.
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
+ }
+ intptr_t id_; // Parser node id corresponding to this IC.
+ intptr_t num_args_tested_; // Number of arguments tested in IC.
+};
+
+
class RawError : public RawObject {
RAW_HEAP_OBJECT_IMPLEMENTATION(Error);
};
@@ -1123,25 +1140,6 @@
};
-class RawICData : public RawInstance {
- RAW_HEAP_OBJECT_IMPLEMENTATION(ICData);
-
- RawObject** from() {
- return reinterpret_cast<RawObject**>(&ptr()->function_);
- }
-
- RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
- }
-
- RawFunction* function_; // Parent/calling function of this IC.
- RawString* target_name_; // Name of target function.
- RawArray* ic_data_; // Contains test classes and target function.
- intptr_t id_; // Parser node id corresponding to this IC.
- intptr_t num_args_tested_; // Number of arguments tested in IC.
-};
-
-
} // namespace dart
#endif // VM_RAW_OBJECT_H_
« no previous file with comments | « vm/object.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698