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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 201013002: x64 code improvements and cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/stub_code_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
===================================================================
--- runtime/vm/assembler_x64.cc (revision 33759)
+++ runtime/vm/assembler_x64.cc (working copy)
@@ -2555,9 +2555,9 @@
void Assembler::CompareObject(Register reg, const Object& object, Register pp) {
if (CanLoadFromObjectPool(object)) {
- ASSERT(reg != TMP);
- LoadObject(TMP, object, pp);
- cmpq(reg, TMP);
+ const int32_t offset =
+ Array::element_offset(FindObject(object, kNotPatchable));
+ cmpq(reg, Address::AddressBaseImm32(pp, offset - kHeapObjectTag));
zra 2014/03/17 19:29:58 AddressBaseImm32 emits a fixed-size constant for t
srdjan 2014/03/17 19:54:32 Done.
} else {
CompareImmediate(
reg, Immediate(reinterpret_cast<int64_t>(object.raw())), pp);
« no previous file with comments | « no previous file | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698