Revision: 19495
Author: [email protected]
Date: Wed Feb 19 15:20:15 2014 UTC
Log: 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
Review URL: https://codereview.chromium.org/171583004
http://code.google.com/p/v8/source/detail?r=19495
Modified:
/branches/bleeding_edge/src/a64/macro-assembler-a64.h
=======================================
--- /branches/bleeding_edge/src/a64/macro-assembler-a64.h Wed Feb 19
14:37:18 2014 UTC
+++ /branches/bleeding_edge/src/a64/macro-assembler-a64.h Wed Feb 19
15:20:15 2014 UTC
@@ -2166,7 +2166,12 @@
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
+ {
// Before blocking the const pool, see if it needs to be emitted.
masm_->CheckConstPool(false, true);
@@ -2192,8 +2197,8 @@
private:
MacroAssembler* masm_;
+#ifdef DEBUG
size_t size_;
-#ifdef DEBUG
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.