Reviewers: danno, Sven Panne, Paul Lind, kisg, palfia, dusmil,
Description:
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=
Please review this at https://codereview.chromium.org/344203005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+4, -2 lines):
M src/objects-inl.h
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index
e5727c887174086ae23135047d0a5bc8c5d8183e..9d1d5bfd96a59a4023ef81885451005f3327d4d7
100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1175,8 +1175,10 @@ bool JSProxy::HasElementWithHandler(Handle<JSProxy>
proxy, uint32_t index) {
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.