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

Unified Diff: runtime/vm/assembler_x64.h

Issue 10458031: In generated code for x64 don't load object's class directly from class_ field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index 66dc20c3e8f177aafb66eeb7d1161de48018a637..c4125e343338dfe532940321788ec879f6437540 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -519,6 +519,19 @@ class Assembler : public ValueObject {
void CallRuntime(const RuntimeEntry& entry);
/*
+ * Loading and comparing classes of objects.
+ */
+ void LoadClassIndexOfObject(Register result, Register object);
Ivan Posva 2012/05/30 17:13:42 How about? LoadClassId(Register result, Register o
Vyacheslav Egorov (Google) 2012/05/30 17:29:57 I am using name "class index" for consistency. It
Ivan Posva 2012/05/30 18:00:30 I can change the use of index to id in other areas
+
+ void LoadClassByIndex(Register result, Register class_index);
Ivan Posva 2012/05/30 17:13:42 LoadClassById
+
+ void LoadClassOfObject(Register result, Register object, Register scratch);
Ivan Posva 2012/05/30 17:13:42 LoadClass? Might be a bit too generic, better sugg
+
+ void CompareClassOfObject(Register object,
Ivan Posva 2012/05/30 17:13:42 How about renaming this to: CompareClassId(Registe
Vyacheslav Egorov (Google) 2012/05/30 17:29:57 But it does not accept index. It is implementation
Ivan Posva 2012/05/30 18:00:30 Understand the consistency argument about passing
+ const Class& clazz,
+ Register scratch);
+
+ /*
* Misc. functionality.
*/
void SmiTag(Register reg) {

Powered by Google App Engine
This is Rietveld 408576698