| Index: src/ia32/assembler-ia32.h
|
| ===================================================================
|
| --- src/ia32/assembler-ia32.h (revision 7180)
|
| +++ src/ia32/assembler-ia32.h (working copy)
|
| @@ -185,13 +185,6 @@
|
| typedef XMMRegister DoubleRegister;
|
|
|
|
|
| -// Index of register used in pusha/popa.
|
| -// Order of pushed registers: EAX, ECX, EDX, EBX, ESP, EBP, ESI, and EDI
|
| -inline int EspIndexForPushAll(Register reg) {
|
| - return Register::kNumRegisters - 1 - reg.code();
|
| -}
|
| -
|
| -
|
| enum Condition {
|
| // any value < 0 is considered no_condition
|
| no_condition = -1,
|
| @@ -531,6 +524,9 @@
|
| Assembler(void* buffer, int buffer_size);
|
| ~Assembler();
|
|
|
| + // Overrides the default provided by FLAG_debug_code.
|
| + void set_emit_debug_code(bool value) { emit_debug_code_ = value; }
|
| +
|
| // GetCode emits any pending (non-emitted) code and fills the descriptor
|
| // desc. GetCode() is idempotent; it returns the same result if no other
|
| // Assembler functions are invoked in between GetCode() calls.
|
| @@ -982,11 +978,17 @@
|
|
|
| PositionsRecorder* positions_recorder() { return &positions_recorder_; }
|
|
|
| + int relocation_writer_size() {
|
| + return (buffer_ + buffer_size_) - reloc_info_writer.pos();
|
| + }
|
| +
|
| // Avoid overflows for displacements etc.
|
| static const int kMaximalBufferSize = 512*MB;
|
| static const int kMinimalBufferSize = 4*KB;
|
|
|
| protected:
|
| + bool emit_debug_code() const { return emit_debug_code_; }
|
| +
|
| void movsd(XMMRegister dst, const Operand& src);
|
| void movsd(const Operand& dst, XMMRegister src);
|
|
|
| @@ -1062,6 +1064,8 @@
|
|
|
| PositionsRecorder positions_recorder_;
|
|
|
| + bool emit_debug_code_;
|
| +
|
| friend class PositionsRecorder;
|
| };
|
|
|
|
|