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

Unified Diff: src/ia32/macro-assembler-ia32.h

Issue 460043: Always 64-bit align floating point values in heap numbers.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/ia32/ic-ia32.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/macro-assembler-ia32.h
===================================================================
--- src/ia32/macro-assembler-ia32.h (revision 3405)
+++ src/ia32/macro-assembler-ia32.h (working copy)
@@ -278,6 +278,16 @@
Register scratch,
Label* miss);
+ // The double precision value in a heap number is always aligned even
+ // if the heap number object isn't. This takes the address of a heap
+ // number and puts the address of its value in the result register.
+ // It is OK for the two registers to be identical.
+ void GenerateHeapNumberValueAddress(Register result, Register number) {
+ lea(result, Operand(number, 4 + HeapNumber::kValueMinimumOffset - kHeapObjectTag));
+ and_(result, -8);
+ //lea(result, Operand(number, HeapNumber::kValueMinimumOffset - kHeapObjectTag));
+ }
+
// Generates code for reporting that an illegal operation has
// occurred.
void IllegalOperation(int num_arguments);
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698