Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: src/arm/frames-arm.h

Issue 2816703002: [arm] Remove embedded constant pool support. (Closed)
Patch Set: [arm] Remove embedded constant pool support. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM_FRAMES_ARM_H_ 5 #ifndef V8_ARM_FRAMES_ARM_H_
6 #define V8_ARM_FRAMES_ARM_H_ 6 #define V8_ARM_FRAMES_ARM_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Double registers d8 to d15 are callee-saved. 60 // Double registers d8 to d15 are callee-saved.
61 const int kNumDoubleCalleeSaved = 8; 61 const int kNumDoubleCalleeSaved = 8;
62 62
63 63
64 // Number of registers for which space is reserved in safepoints. Must be a 64 // Number of registers for which space is reserved in safepoints. Must be a
65 // multiple of 8. 65 // multiple of 8.
66 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. 66 // TODO(regis): Only 8 registers may actually be sufficient. Revisit.
67 const int kNumSafepointRegisters = 16; 67 const int kNumSafepointRegisters = 16;
68 68
69 // The embedded constant pool pointer (r8/pp) is not included in the safepoint
70 // since it is not tagged. This register is preserved in the stack frame where
71 // its value will be updated if GC code movement occurs. Including it in the
72 // safepoint (where it will not be relocated) would cause a stale value to be
73 // restored.
74 const RegList kConstantPointerRegMask =
75 FLAG_enable_embedded_constant_pool ? (1 << 8) : 0;
76 const int kNumConstantPoolPointerReg =
77 FLAG_enable_embedded_constant_pool ? 1 : 0;
78
79 // Define the list of registers actually saved at safepoints. 69 // Define the list of registers actually saved at safepoints.
80 // Note that the number of saved registers may be smaller than the reserved 70 // Note that the number of saved registers may be smaller than the reserved
81 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. 71 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
82 const RegList kSafepointSavedRegisters = 72 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved;
83 kJSCallerSaved | (kCalleeSaved & ~kConstantPointerRegMask); 73 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved;
84 const int kNumSafepointSavedRegisters =
85 kNumJSCallerSaved + kNumCalleeSaved - kNumConstantPoolPointerReg;
86 74
87 // ---------------------------------------------------- 75 // ----------------------------------------------------
88 76
89 77
90 class EntryFrameConstants : public AllStatic { 78 class EntryFrameConstants : public AllStatic {
91 public: 79 public:
92 static const int kCallerFPOffset = 80 static const int kCallerFPOffset =
93 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); 81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize);
94 }; 82 };
95 83
(...skipping 24 matching lines...) Expand all
120 // Caller SP-relative. 108 // Caller SP-relative.
121 static const int kParam0Offset = -2 * kPointerSize; 109 static const int kParam0Offset = -2 * kPointerSize;
122 static const int kReceiverOffset = -1 * kPointerSize; 110 static const int kReceiverOffset = -1 * kPointerSize;
123 }; 111 };
124 112
125 113
126 } // namespace internal 114 } // namespace internal
127 } // namespace v8 115 } // namespace v8
128 116
129 #endif // V8_ARM_FRAMES_ARM_H_ 117 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698