| Index: src/arm64/code-stubs-arm64.h
|
| diff --git a/src/arm64/code-stubs-arm64.h b/src/arm64/code-stubs-arm64.h
|
| index 5ee4c83470d248ebc3ecf7c0ba319a3f8a2f3334..35f44ac2b76e4ab978fbc242490439b5683a1023 100644
|
| --- a/src/arm64/code-stubs-arm64.h
|
| +++ b/src/arm64/code-stubs-arm64.h
|
| @@ -27,8 +27,8 @@ class StoreBufferOverflowStub: public PlatformCodeStub {
|
| private:
|
| SaveFPRegsMode save_doubles_;
|
|
|
| - Major MajorKey() { return StoreBufferOverflow; }
|
| - int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| + Major MajorKey() const { return StoreBufferOverflow; }
|
| + int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| };
|
|
|
|
|
| @@ -62,8 +62,8 @@ class StoreRegistersStateStub: public PlatformCodeStub {
|
| static Register to_be_pushed_lr() { return ip0; }
|
| static void GenerateAheadOfTime(Isolate* isolate);
|
| private:
|
| - Major MajorKey() { return StoreRegistersState; }
|
| - int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| + Major MajorKey() const { return StoreRegistersState; }
|
| + int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| SaveFPRegsMode save_doubles_;
|
|
|
| void Generate(MacroAssembler* masm);
|
| @@ -77,8 +77,8 @@ class RestoreRegistersStateStub: public PlatformCodeStub {
|
|
|
| static void GenerateAheadOfTime(Isolate* isolate);
|
| private:
|
| - Major MajorKey() { return RestoreRegistersState; }
|
| - int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| + Major MajorKey() const { return RestoreRegistersState; }
|
| + int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; }
|
| SaveFPRegsMode save_doubles_;
|
|
|
| void Generate(MacroAssembler* masm);
|
| @@ -303,9 +303,9 @@ class RecordWriteStub: public PlatformCodeStub {
|
| Mode mode);
|
| void InformIncrementalMarker(MacroAssembler* masm);
|
|
|
| - Major MajorKey() { return RecordWrite; }
|
| + Major MajorKey() const { return RecordWrite; }
|
|
|
| - int MinorKey() {
|
| + int MinorKey() const {
|
| return MinorKeyFor(object_, value_, address_, remembered_set_action_,
|
| save_fp_regs_mode_);
|
| }
|
| @@ -354,8 +354,8 @@ class DirectCEntryStub: public PlatformCodeStub {
|
| void GenerateCall(MacroAssembler* masm, Register target);
|
|
|
| private:
|
| - Major MajorKey() { return DirectCEntry; }
|
| - int MinorKey() { return 0; }
|
| + Major MajorKey() const { return DirectCEntry; }
|
| + int MinorKey() const { return 0; }
|
|
|
| bool NeedsImmovableCode() { return true; }
|
| };
|
| @@ -400,9 +400,9 @@ class NameDictionaryLookupStub: public PlatformCodeStub {
|
| NameDictionary::kHeaderSize +
|
| NameDictionary::kElementsStartIndex * kPointerSize;
|
|
|
| - Major MajorKey() { return NameDictionaryLookup; }
|
| + Major MajorKey() const { return NameDictionaryLookup; }
|
|
|
| - int MinorKey() {
|
| + int MinorKey() const {
|
| return LookupModeBits::encode(mode_);
|
| }
|
|
|
| @@ -417,8 +417,8 @@ class SubStringStub: public PlatformCodeStub {
|
| explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
|
|
|
| private:
|
| - Major MajorKey() { return SubString; }
|
| - int MinorKey() { return 0; }
|
| + Major MajorKey() const { return SubString; }
|
| + int MinorKey() const { return 0; }
|
|
|
| void Generate(MacroAssembler* masm);
|
| };
|
| @@ -447,8 +447,8 @@ class StringCompareStub: public PlatformCodeStub {
|
| Register scratch3);
|
|
|
| private:
|
| - virtual Major MajorKey() { return StringCompare; }
|
| - virtual int MinorKey() { return 0; }
|
| + virtual Major MajorKey() const { return StringCompare; }
|
| + virtual int MinorKey() const { return 0; }
|
| virtual void Generate(MacroAssembler* masm);
|
|
|
| static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm,
|
|
|