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

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

Issue 194793002: [v8-dev] ARM: safepoints frame optimization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Double registers d8 to d15 are callee-saved. 85 // Double registers d8 to d15 are callee-saved.
86 const int kNumDoubleCalleeSaved = 8; 86 const int kNumDoubleCalleeSaved = 8;
87 87
88 88
89 // Number of registers for which space is reserved in safepoints. Must be a 89 // Number of registers for which space is reserved in safepoints. Must be a
90 // multiple of 8. 90 // multiple of 8.
91 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. 91 // TODO(regis): Only 8 registers may actually be sufficient. Revisit.
92 const int kNumSafepointRegisters = 16; 92 const int kNumSafepointRegisters = 16;
93 93
94 // Define the list of registers actually saved at safepoints.
95 // Note that the number of saved registers may be smaller than the reserved
96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
97 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved;
98 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved;
99
100 // ---------------------------------------------------- 94 // ----------------------------------------------------
101 95
102 96
103 class EntryFrameConstants : public AllStatic { 97 class EntryFrameConstants : public AllStatic {
104 public: 98 public:
105 static const int kCallerFPOffset = 99 static const int kCallerFPOffset =
106 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); 100 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize);
107 }; 101 };
108 102
109 103
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 172
179 173
180 inline void StackHandler::SetFp(Address slot, Address fp) { 174 inline void StackHandler::SetFp(Address slot, Address fp) {
181 Memory::Address_at(slot) = fp; 175 Memory::Address_at(slot) = fp;
182 } 176 }
183 177
184 178
185 } } // namespace v8::internal 179 } } // namespace v8::internal
186 180
187 #endif // V8_ARM_FRAMES_ARM_H_ 181 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698