| Index: src/ia32/code-stubs-ia32.h
|
| diff --git a/src/ia32/code-stubs-ia32.h b/src/ia32/code-stubs-ia32.h
|
| index 219186c6d6f711231decf498e987705c30b5f82d..4c129797d5f4e2617d05c85f5671bc4772a394e6 100644
|
| --- a/src/ia32/code-stubs-ia32.h
|
| +++ b/src/ia32/code-stubs-ia32.h
|
| @@ -30,8 +30,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; }
|
| };
|
|
|
|
|
| @@ -70,8 +70,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);
|
| };
|
| @@ -98,8 +98,8 @@ class StringCompareStub: public PlatformCodeStub {
|
| Register scratch2);
|
|
|
| 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(
|
| @@ -156,9 +156,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 DictionaryBits::encode(dictionary_.code()) |
|
| ResultBits::encode(result_.code()) |
|
| IndexBits::encode(index_.code()) |
|
| @@ -405,9 +405,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 ObjectBits::encode(object_.code()) |
|
| ValueBits::encode(value_.code()) |
|
| AddressBits::encode(address_.code()) |
|
|
|