diff --git a/src/x87/code-stubs-x87.h b/src/x87/code-stubs-x87.h index 9939bab35d..b5003640f4 100644 --- a/src/x87/code-stubs-x87.h +++ b/src/x87/code-stubs-x87.h @@ -5,8 +5,6 @@ #ifndef V8_X87_CODE_STUBS_X87_H_ #define V8_X87_CODE_STUBS_X87_H_ -#include "src/code-stubs.h" - namespace v8 { namespace internal { @@ -99,8 +97,6 @@ class NameDictionaryLookupStub: public PlatformCodeStub { NameDictionary::kHeaderSize + NameDictionary::kElementsStartIndex * kPointerSize; - virtual inline Major MajorKey() const FINAL OVERRIDE; - Register dictionary() const { return Register::from_code(DictionaryBits::decode(minor_key_)); } @@ -120,7 +116,7 @@ class NameDictionaryLookupStub: public PlatformCodeStub { class IndexBits: public BitField {}; class LookupModeBits: public BitField {}; - DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub); + DEFINE_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); }; @@ -141,6 +137,9 @@ class RecordWriteStub: public PlatformCodeStub { RememberedSetActionBits::encode(remembered_set_action); } + RecordWriteStub(uint32_t key, Isolate* isolate) + : PlatformCodeStub(key, isolate), regs_(object(), address(), value()) {} + enum Mode { STORE_BUFFER_ONLY, INCREMENTAL, @@ -323,7 +322,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);