Index: src/arm/assembler-arm.h |
diff --git a/src/arm/assembler-arm.h b/src/arm/assembler-arm.h |
index 3fab20bcb15734aba17e2406382ba68a603041ab..3a264acc3852c120af36dd2b2dcf85e55c901e45 100644 |
--- a/src/arm/assembler-arm.h |
+++ b/src/arm/assembler-arm.h |
@@ -652,11 +652,6 @@ class Assembler : public AssemblerBase { |
// Overrides the default provided by FLAG_debug_code. |
void set_emit_debug_code(bool value) { emit_debug_code_ = value; } |
- // Avoids using instructions that vary in size in unpredictable ways between |
- // the snapshot and the running VM. This is needed by the full compiler so |
- // that it can recompile code with debug support and fix the PC. |
- void set_predictable_code_size(bool value) { predictable_code_size_ = 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. |
@@ -1185,8 +1180,6 @@ class Assembler : public AssemblerBase { |
// Jump unconditionally to given label. |
void jmp(Label* L) { b(L, al); } |
- bool predictable_code_size() const { return predictable_code_size_; } |
- |
static bool use_immediate_embedded_pointer_loads( |
const Assembler* assembler) { |
#ifdef USE_BLX |
@@ -1499,7 +1492,6 @@ class Assembler : public AssemblerBase { |
PositionsRecorder positions_recorder_; |
bool emit_debug_code_; |
- bool predictable_code_size_; |
friend class PositionsRecorder; |
friend class EnsureSpace; |
@@ -1514,26 +1506,6 @@ class EnsureSpace BASE_EMBEDDED { |
}; |
-class PredictableCodeSizeScope { |
- public: |
- explicit PredictableCodeSizeScope(Assembler* assembler) |
- : asm_(assembler) { |
- old_value_ = assembler->predictable_code_size(); |
- assembler->set_predictable_code_size(true); |
- } |
- |
- ~PredictableCodeSizeScope() { |
- if (!old_value_) { |
- asm_->set_predictable_code_size(false); |
- } |
- } |
- |
- private: |
- Assembler* asm_; |
- bool old_value_; |
-}; |
- |
- |
} } // namespace v8::internal |
#endif // V8_ARM_ASSEMBLER_ARM_H_ |