Index: src/arm64/code-stubs-arm64.h |
diff --git a/src/arm64/code-stubs-arm64.h b/src/arm64/code-stubs-arm64.h |
index d55c8cbb5882fcb299add702dc89f824a3afc1c1..123fac6837a450af9649052e1b317d89278689d0 100644 |
--- a/src/arm64/code-stubs-arm64.h |
+++ b/src/arm64/code-stubs-arm64.h |
@@ -5,8 +5,6 @@ |
#ifndef V8_ARM64_CODE_STUBS_ARM64_H_ |
#define V8_ARM64_CODE_STUBS_ARM64_H_ |
-#include "src/code-stubs.h" |
- |
namespace v8 { |
namespace internal { |
@@ -63,11 +61,9 @@ class StoreRegistersStateStub: public PlatformCodeStub { |
static void GenerateAheadOfTime(Isolate* isolate); |
private: |
- virtual inline Major MajorKey() const FINAL OVERRIDE; |
- |
void Generate(MacroAssembler* masm); |
- DISALLOW_COPY_AND_ASSIGN(StoreRegistersStateStub); |
+ DEFINE_CODE_STUB(StoreRegistersState, PlatformCodeStub); |
}; |
@@ -79,11 +75,9 @@ class RestoreRegistersStateStub: public PlatformCodeStub { |
static void GenerateAheadOfTime(Isolate* isolate); |
private: |
- virtual inline Major MajorKey() const FINAL OVERRIDE; |
- |
void Generate(MacroAssembler* masm); |
- DISALLOW_COPY_AND_ASSIGN(RestoreRegistersStateStub); |
+ DEFINE_CODE_STUB(RestoreRegistersState, PlatformCodeStub); |
}; |
@@ -112,6 +106,9 @@ class RecordWriteStub: public PlatformCodeStub { |
SaveFPRegsModeBits::encode(fp_mode); |
} |
+ RecordWriteStub(uint32_t key, Isolate* isolate) |
+ : PlatformCodeStub(key, isolate), regs_(object(), address(), value()) {} |
+ |
enum Mode { |
STORE_BUFFER_ONLY, |
INCREMENTAL, |
@@ -294,7 +291,7 @@ class RecordWriteStub: public PlatformCodeStub { |
kUpdateRememberedSetOnNoNeedToInformIncrementalMarker |
}; |
- virtual inline Major MajorKey() const FINAL OVERRIDE; |
+ virtual inline Major MajorKey() const FINAL OVERRIDE { return RecordWrite; } |
void Generate(MacroAssembler* masm); |
void GenerateIncremental(MacroAssembler* masm, Mode mode); |
@@ -348,11 +345,9 @@ class DirectCEntryStub: public PlatformCodeStub { |
void GenerateCall(MacroAssembler* masm, Register target); |
private: |
- virtual inline Major MajorKey() const FINAL OVERRIDE; |
- |
bool NeedsImmovableCode() { return true; } |
- DISALLOW_COPY_AND_ASSIGN(DirectCEntryStub); |
+ DEFINE_CODE_STUB(DirectCEntry, PlatformCodeStub); |
}; |
@@ -397,13 +392,11 @@ class NameDictionaryLookupStub: public PlatformCodeStub { |
NameDictionary::kHeaderSize + |
NameDictionary::kElementsStartIndex * kPointerSize; |
- virtual inline Major MajorKey() const FINAL OVERRIDE; |
- |
LookupMode mode() const { return LookupModeBits::decode(minor_key_); } |
class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
- DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); |
+ DEFINE_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
}; |
} } // namespace v8::internal |