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

Unified Diff: runtime/vm/assembler_ia32.h

Issue 10450014: Request for comments on overall approach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix scavenger and freelist handling 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
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/freelist.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32.h
diff --git a/runtime/vm/assembler_ia32.h b/runtime/vm/assembler_ia32.h
index 1cb69eccc3ae2796b2e5192d6cefa27f87cd2fac..e681d0859bde4287e51c266cf8545a83da3a30b0 100644
--- a/runtime/vm/assembler_ia32.h
+++ b/runtime/vm/assembler_ia32.h
@@ -529,6 +529,19 @@ class Assembler : public ValueObject {
void CallRuntime(const RuntimeEntry& entry);
/*
+ * Loading and comparing classes of objects
+ */
+ void GetClassOf(Register result, Register object, Register scratch);
+
+ void LoadObjectClassId(Register result, Register object);
+
+ void CompareClassOf(Register object, const Class& clazz, Register scratch);
Ivan Posva 2012/05/26 04:34:46 When do you ever have to compare classes? Or asked
Vyacheslav Egorov (Google) 2012/05/26 16:48:22 This macros was introduced initially to cover a ve
+
+ void CompareClassId(Register clsid, const Class& cls) {
+ cmpl(clsid, Immediate(cls.index()));
+ }
+
+ /*
* Misc. functionality
*/
void SmiTag(Register reg) {
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/freelist.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698