Revision: 23815
Author:   [email protected]
Date:     Wed Sep 10 02:44:43 2014 UTC
Log:      X87: Introduce code stub constructors for stub keys.

port r23716.

original commit message:

  Introduce code stub constructors for stub keys.

BUG=
[email protected]

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

Patch from Jing Bao <[email protected]>.
https://code.google.com/p/v8/source/detail?r=23815

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

=======================================
--- /branches/bleeding_edge/src/x87/code-stubs-x87.h Fri Sep 5 07:29:08 2014 UTC +++ /branches/bleeding_edge/src/x87/code-stubs-x87.h Wed Sep 10 02:44:43 2014 UTC
@@ -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 @@
       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 IndexBits: public BitField<int, 6, 3> {};
   class LookupModeBits: public BitField<LookupMode, 9, 1> {};

-  DISALLOW_COPY_AND_ASSIGN(NameDictionaryLookupStub);
+  DEFINE_CODE_STUB(NameDictionaryLookup, PlatformCodeStub);
 };


@@ -140,6 +136,9 @@
                  AddressBits::encode(address.code()) |
                  RememberedSetActionBits::encode(remembered_set_action);
   }
+
+  RecordWriteStub(uint32_t key, Isolate* isolate)
+ : PlatformCodeStub(key, isolate), regs_(object(), address(), value()) {}

   enum Mode {
     STORE_BUFFER_ONLY,
@@ -323,7 +322,7 @@
     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);

--
--
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