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

Unified Diff: runtime/vm/deferred_objects.h

Issue 2098573004: DBC: CheckClassInstr (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698