Reviewers: Rodolph Perfetta (ARM), ulan,
Description:
A64: Fix compilation with clang
The size_ member is only used in debug mode, so we should only define
it in debug mode.
BUG=none
[email protected],[email protected]
LOG=n
Please review this at https://codereview.chromium.org/171583004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+7, -2 lines):
M src/a64/macro-assembler-a64.h
Index: src/a64/macro-assembler-a64.h
diff --git a/src/a64/macro-assembler-a64.h b/src/a64/macro-assembler-a64.h
index
93e9e80d043deee744e2273396a9923864bcdbd9..43a69b89e4005ef9daa4c1b72fedacd3094ae5e5
100644
--- a/src/a64/macro-assembler-a64.h
+++ b/src/a64/macro-assembler-a64.h
@@ -2166,7 +2166,12 @@ class MacroAssembler : public Assembler {
class InstructionAccurateScope BASE_EMBEDDED {
public:
InstructionAccurateScope(MacroAssembler* masm, size_t count = 0)
- : masm_(masm), size_(count * kInstructionSize) {
+ : masm_(masm)
+#ifdef DEBUG
+ ,
+ size_(count * kInstructionSize)
+#endif
+ {
masm_->StartBlockConstPool();
#ifdef DEBUG
if (count != 0) {
@@ -2189,8 +2194,8 @@ class InstructionAccurateScope BASE_EMBEDDED {
private:
MacroAssembler* masm_;
- size_t size_;
#ifdef DEBUG
+ size_t size_;
Label start_;
bool previous_allow_macro_instructions_;
#endif
--
--
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/groups/opt_out.