Index: runtime/vm/deferred_objects.h |
diff --git a/runtime/vm/deferred_objects.h b/runtime/vm/deferred_objects.h |
index 35556f801def7f93dbc9542b436ab4ab70c69c0d..cbce6180d2cd00e0595266c41bc2a7c71d6c59d3 100644 |
--- a/runtime/vm/deferred_objects.h |
+++ b/runtime/vm/deferred_objects.h |
@@ -231,6 +231,7 @@ class DeferredObject { |
// a graph which can contain cycles. |
void Create(); |
+#if !defined(TARGET_ARCH_DBC) |
RawObject* GetClass() const { |
return args_[kClassIndex]; |
} |
@@ -247,6 +248,25 @@ class DeferredObject { |
return args_[kFieldsStartIndex + kFieldEntrySize * index + kValueIndex]; |
} |
+#else |
zra
2016/06/23 23:06:01
Is there a better hack to fix this problem?
Vyacheslav Egorov (Google)
2016/06/24 14:47:07
How about:
RawObject* GetArg(intptr_t index) {
#i
zra
2016/06/24 22:37:49
Done.
|
+ |
+ RawObject* GetClass() const { |
+ return args_[-kClassIndex]; |
+ } |
+ |
+ RawObject* GetLength() const { |
+ return args_[-kLengthIndex]; |
+ } |
+ |
+ RawObject* GetFieldOffset(intptr_t index) const { |
+ return args_[-kFieldsStartIndex - kFieldEntrySize * index - kOffsetIndex]; |
+ } |
+ |
+ RawObject* GetValue(intptr_t index) const { |
+ return args_[-kFieldsStartIndex - kFieldEntrySize * index - kValueIndex]; |
+ } |
+#endif // !defined(TARGET_ARCH_DBC) |
+ |
// Amount of fields that have to be initialized. |
const intptr_t field_count_; |