Chromium Code Reviews| 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) { |