Revision: 14161
Author:   [email protected]
Date:     Mon Apr  8 04:17:32 2013
Log:      Move StackHandlerConstants to platform-independent frames.h

* src/frames.h: Move StackHandlerConstants here, as it is the same for
  all architectures.

BUG=

Review URL: https://codereview.chromium.org/13638002
Patch from Andy Wingo <[email protected]>.
http://code.google.com/p/v8/source/detail?r=14161

Modified:
 /branches/bleeding_edge/src/arm/frames-arm.h
 /branches/bleeding_edge/src/frames.h
 /branches/bleeding_edge/src/ia32/frames-ia32.h
 /branches/bleeding_edge/src/mips/frames-mips.h
 /branches/bleeding_edge/src/x64/frames-x64.h

=======================================
--- /branches/bleeding_edge/src/arm/frames-arm.h        Wed Mar  6 08:12:24 2013
+++ /branches/bleeding_edge/src/arm/frames-arm.h        Mon Apr  8 04:17:32 2013
@@ -100,18 +100,6 @@
 // ----------------------------------------------------


-class StackHandlerConstants : public AllStatic {
- public:
-  static const int kNextOffset     = 0 * kPointerSize;
-  static const int kCodeOffset     = 1 * kPointerSize;
-  static const int kStateOffset    = 2 * kPointerSize;
-  static const int kContextOffset  = 3 * kPointerSize;
-  static const int kFPOffset       = 4 * kPointerSize;
-
-  static const int kSize = kFPOffset + kPointerSize;
-};
-
-
 class EntryFrameConstants : public AllStatic {
  public:
   static const int kCallerFPOffset      = -3 * kPointerSize;
=======================================
--- /branches/bleeding_edge/src/frames.h        Fri Mar  8 08:18:50 2013
+++ /branches/bleeding_edge/src/frames.h        Mon Apr  8 04:17:32 2013
@@ -84,6 +84,18 @@
 };


+class StackHandlerConstants : public AllStatic {
+ public:
+  static const int kNextOffset     = 0 * kPointerSize;
+  static const int kCodeOffset     = 1 * kPointerSize;
+  static const int kStateOffset    = 2 * kPointerSize;
+  static const int kContextOffset  = 3 * kPointerSize;
+  static const int kFPOffset       = 4 * kPointerSize;
+
+  static const int kSize = kFPOffset + kPointerSize;
+};
+
+
 class StackHandler BASE_EMBEDDED {
  public:
   enum Kind {
=======================================
--- /branches/bleeding_edge/src/ia32/frames-ia32.h      Wed Mar  6 08:12:24 2013
+++ /branches/bleeding_edge/src/ia32/frames-ia32.h      Mon Apr  8 04:17:32 2013
@@ -60,18 +60,6 @@
 // ----------------------------------------------------


-class StackHandlerConstants : public AllStatic {
- public:
-  static const int kNextOffset     = 0 * kPointerSize;
-  static const int kCodeOffset     = 1 * kPointerSize;
-  static const int kStateOffset    = 2 * kPointerSize;
-  static const int kContextOffset  = 3 * kPointerSize;
-  static const int kFPOffset       = 4 * kPointerSize;
-
-  static const int kSize = kFPOffset + kPointerSize;
-};
-
-
 class EntryFrameConstants : public AllStatic {
  public:
   static const int kCallerFPOffset      = -6 * kPointerSize;
=======================================
--- /branches/bleeding_edge/src/mips/frames-mips.h      Wed Mar  6 08:12:24 2013
+++ /branches/bleeding_edge/src/mips/frames-mips.h      Mon Apr  8 04:17:32 2013
@@ -152,18 +152,6 @@

 // ----------------------------------------------------

-class StackHandlerConstants : public AllStatic {
- public:
-  static const int kNextOffset     = 0 * kPointerSize;
-  static const int kCodeOffset     = 1 * kPointerSize;
-  static const int kStateOffset    = 2 * kPointerSize;
-  static const int kContextOffset  = 3 * kPointerSize;
-  static const int kFPOffset       = 4 * kPointerSize;
-
-  static const int kSize = kFPOffset + kPointerSize;
-};
-
-
 class EntryFrameConstants : public AllStatic {
  public:
   static const int kCallerFPOffset      = -3 * kPointerSize;
=======================================
--- /branches/bleeding_edge/src/x64/frames-x64.h        Wed Mar  6 08:12:24 2013
+++ /branches/bleeding_edge/src/x64/frames-x64.h        Mon Apr  8 04:17:32 2013
@@ -48,18 +48,6 @@

 // ----------------------------------------------------

-class StackHandlerConstants : public AllStatic {
- public:
-  static const int kNextOffset     = 0 * kPointerSize;
-  static const int kCodeOffset     = 1 * kPointerSize;
-  static const int kStateOffset    = 2 * kPointerSize;
-  static const int kContextOffset  = 3 * kPointerSize;
-  static const int kFPOffset       = 4 * kPointerSize;
-
-  static const int kSize = kFPOffset + kPointerSize;
-};
-
-
 class EntryFrameConstants : public AllStatic {
  public:
 #ifdef _WIN64

--
--
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/groups/opt_out.


Reply via email to