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

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

Issue 1271583002: PPC: Clean up register save/restore logic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ppc/code-stubs-ppc.cc ('k') | src/ppc/macro-assembler-ppc.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_FRAMES_PPC_H_ 5 #ifndef V8_PPC_FRAMES_PPC_H_
6 #define V8_PPC_FRAMES_PPC_H_ 6 #define V8_PPC_FRAMES_PPC_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 1 << 26 | // r26 48 1 << 26 | // r26
49 1 << 27 | // r27 49 1 << 27 | // r27
50 1 << 28 | // r28 50 1 << 28 | // r28
51 1 << 29 | // r29 51 1 << 29 | // r29
52 1 << 30 | // r20 52 1 << 30 | // r20
53 1 << 31; // r31 53 1 << 31; // r31
54 54
55 55
56 const int kNumCalleeSaved = 18; 56 const int kNumCalleeSaved = 18;
57 57
58 const RegList kCallerSavedDoubles = 1 << 0 | // d0
59 1 << 1 | // d1
60 1 << 2 | // d2
61 1 << 3 | // d3
62 1 << 4 | // d4
63 1 << 5 | // d5
64 1 << 6 | // d6
65 1 << 7 | // d7
66 1 << 8 | // d8
67 1 << 9 | // d9
68 1 << 10 | // d10
69 1 << 11 | // d11
70 1 << 12 | // d12
71 1 << 13; // d13
72
73 const RegList kCalleeSavedDoubles = 1 << 14 | // d14
74 1 << 15 | // d15
75 1 << 16 | // d16
76 1 << 17 | // d17
77 1 << 18 | // d18
78 1 << 19 | // d19
79 1 << 20 | // d20
80 1 << 21 | // d21
81 1 << 22 | // d22
82 1 << 23 | // d23
83 1 << 24 | // d24
84 1 << 25 | // d25
85 1 << 26 | // d26
86 1 << 27 | // d27
87 1 << 28 | // d28
88 1 << 29 | // d29
89 1 << 30 | // d30
90 1 << 31; // d31
91
92 const int kNumCalleeSavedDoubles = 18;
93
94
58 // Number of registers for which space is reserved in safepoints. Must be a 95 // Number of registers for which space is reserved in safepoints. Must be a
59 // multiple of 8. 96 // multiple of 8.
60 const int kNumSafepointRegisters = 32; 97 const int kNumSafepointRegisters = 32;
61 98
62 // The following constants describe the stack frame linkage area as 99 // The following constants describe the stack frame linkage area as
63 // defined by the ABI. Note that kNumRequiredStackFrameSlots must 100 // defined by the ABI. Note that kNumRequiredStackFrameSlots must
64 // satisfy alignment requirements (rounding up if required). 101 // satisfy alignment requirements (rounding up if required).
65 #if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN 102 #if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN
66 // [0] back chain 103 // [0] back chain
67 // [1] condition register save area 104 // [1] condition register save area
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Caller SP-relative. 182 // Caller SP-relative.
146 static const int kParam0Offset = -2 * kPointerSize; 183 static const int kParam0Offset = -2 * kPointerSize;
147 static const int kReceiverOffset = -1 * kPointerSize; 184 static const int kReceiverOffset = -1 * kPointerSize;
148 }; 185 };
149 186
150 187
151 } 188 }
152 } // namespace v8::internal 189 } // namespace v8::internal
153 190
154 #endif // V8_PPC_FRAMES_PPC_H_ 191 #endif // V8_PPC_FRAMES_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698