Revision: 22214
Author:   [email protected]
Date:     Fri Jul  4 07:00:01 2014 UTC
Log:      X87: Start using OStreams.

port r22179

original commit message:

Note that until everything is OStream-based, there are a few places
where we have to do some impedance matching. A few accessors had to be
const-corrected on the way.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/370673002

Patch from Chunyang Dai <[email protected]>.
http://code.google.com/p/v8/source/detail?r=22214

Modified:
 /branches/bleeding_edge/src/x87/code-stubs-x87.h

=======================================
--- /branches/bleeding_edge/src/x87/code-stubs-x87.h Mon Jun 30 13:25:46 2014 UTC +++ /branches/bleeding_edge/src/x87/code-stubs-x87.h Fri Jul 4 07:00:01 2014 UTC
@@ -28,8 +28,8 @@
   virtual bool SometimesSetsUpAFrame() { return false; }

  private:
-  Major MajorKey() { return StoreBufferOverflow; }
-  int MinorKey() { return 0; }
+  Major MajorKey() const { return StoreBufferOverflow; }
+  int MinorKey() const { return 0; }
 };


@@ -68,8 +68,8 @@
   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);
 };
@@ -96,8 +96,8 @@
                                             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(
@@ -154,9 +154,9 @@
       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()) |
@@ -382,9 +382,9 @@
       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()) |

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to