Revision: 21904
Author: [email protected]
Date: Fri Jun 20 20:36:49 2014 UTC
Log: MIPS: Make object accessors more const-correct.
Port r21897 (1b152ae)
Fix MIPS implementation of READ_DOUBLE_FIELD() to use const parameter.
Original commit message:
Getting closer to making our IsFOO and FOO::cast methods
const-correct...
BUG=
[email protected], [email protected]
Review URL: https://codereview.chromium.org/344203005
Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=21904
Modified:
/branches/bleeding_edge/src/objects-inl.h
=======================================
--- /branches/bleeding_edge/src/objects-inl.h Fri Jun 20 10:31:17 2014 UTC
+++ /branches/bleeding_edge/src/objects-inl.h Fri Jun 20 20:36:49 2014 UTC
@@ -1175,8 +1175,10 @@
double d;
uint32_t u[2];
} c;
- c.u[0] = (*reinterpret_cast<uint32_t*>(FIELD_ADDR_CONST(p, offset)));
- c.u[1] = (*reinterpret_cast<uint32_t*>(FIELD_ADDR_CONST(p, offset +
4)));
+ c.u[0] = (*reinterpret_cast<const uint32_t*>(
+ FIELD_ADDR_CONST(p, offset)));
+ c.u[1] = (*reinterpret_cast<const uint32_t*>(
+ FIELD_ADDR_CONST(p, offset + 4)));
return c.d;
}
#define READ_DOUBLE_FIELD(p, offset) read_double_field(p, offset)
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.