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

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

Issue 60763006: Replace hard-coded stack frame size literals with StandardFrameConstants::kFixedFrameSizeFromFp (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix merge error Created 7 years, 1 month 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
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/lithium-codegen-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 // 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Note that the number of saved registers may be smaller than the reserved 95 // Note that the number of saved registers may be smaller than the reserved
96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. 96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
97 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; 97 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved;
98 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved; 98 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved;
99 99
100 // ---------------------------------------------------- 100 // ----------------------------------------------------
101 101
102 102
103 class EntryFrameConstants : public AllStatic { 103 class EntryFrameConstants : public AllStatic {
104 public: 104 public:
105 static const int kCallerFPOffset = -3 * kPointerSize; 105 static const int kCallerFPOffset =
106 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize);
106 }; 107 };
107 108
108 109
109 class ExitFrameConstants : public AllStatic { 110 class ExitFrameConstants : public AllStatic {
110 public: 111 public:
111 static const int kCodeOffset = -2 * kPointerSize; 112 static const int kCodeOffset = -2 * kPointerSize;
112 static const int kSPOffset = -1 * kPointerSize; 113 static const int kSPOffset = -1 * kPointerSize;
113 114
114 // The caller fields are below the frame pointer on the stack. 115 // The caller fields are below the frame pointer on the stack.
115 static const int kCallerFPOffset = 0 * kPointerSize; 116 static const int kCallerFPOffset = 0 * kPointerSize;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 174
174 inline void StackHandler::SetFp(Address slot, Address fp) { 175 inline void StackHandler::SetFp(Address slot, Address fp) {
175 Memory::Address_at(slot) = fp; 176 Memory::Address_at(slot) = fp;
176 } 177 }
177 178
178 179
179 } } // namespace v8::internal 180 } } // namespace v8::internal
180 181
181 #endif // V8_ARM_FRAMES_ARM_H_ 182 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698