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

Unified Diff: runtime/vm/assembler_x64.h

Issue 2965723002: VM: Reland Inline instance object hash code into object header on 64bit. (Closed)
Patch Set: Fix snapshot incompatibility that sank Flutter Gallery Created 3 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/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index 0c17551a8659516fe0c99ae2f9f18306fe7a904a..ad19e6dc6991a97b5120426a658c058419396e27 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -690,16 +690,8 @@ class Assembler : public ValueObject {
void lock();
void cmpxchgl(const Address& address, Register reg);
- void lock_cmpxchgl(const Address& address, Register reg) {
- lock();
- cmpxchgl(address, reg);
- }
void cmpxchgq(const Address& address, Register reg);
- void lock_cmpxchgq(const Address& address, Register reg) {
- lock();
- cmpxchgq(address, reg);
- }
void cpuid();
@@ -801,6 +793,11 @@ class Assembler : public ValueObject {
cmpxchgq(address, reg);
}
+ void LockCmpxchgl(const Address& address, Register reg) {
+ lock();
+ cmpxchgl(address, reg);
+ }
+
void PushRegisters(intptr_t cpu_register_set, intptr_t xmm_register_set);
void PopRegisters(intptr_t cpu_register_set, intptr_t xmm_register_set);

Powered by Google App Engine
This is Rietveld 408576698