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

Unified Diff: src/serialize.h

Issue 24791002: Thumb2 Backend: Thumb2 changes for Deoptimization and Code Aging Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « src/safepoint-table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index 563f0a06d025fb247d987beb357a0bea6212f447..4c598b15439b253a6f67b6c6bec98c1915f93b8d 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -563,6 +563,10 @@ class Serializer : public SerializerDeserializer {
static int SpaceOfObject(HeapObject* object);
int Allocate(int space, int size);
int EncodeExternalReference(Address addr) {
+ if (((uint32_t)addr & 3) != 0) {
+ addr = (Address)((((uint32_t)addr << 16) & ~0xffff) |
+ (((uint32_t)addr >> 16) & 0xffff));
+ }
return external_reference_encoder_->Encode(addr);
}
« no previous file with comments | « src/safepoint-table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698