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

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

Issue 7834017: MIPS: Minor cleanup change to arguments slots constants. (Closed)
Patch Set: Created 9 years, 3 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/mips/constants-mips.h ('k') | src/mips/macro-assembler-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 static const int kContextOffset = -1 * kPointerSize; 187 static const int kContextOffset = -1 * kPointerSize;
188 static const int kCallerFPOffset = 0 * kPointerSize; 188 static const int kCallerFPOffset = 0 * kPointerSize;
189 static const int kCallerPCOffset = +1 * kPointerSize; 189 static const int kCallerPCOffset = +1 * kPointerSize;
190 static const int kCallerSPOffset = +2 * kPointerSize; 190 static const int kCallerSPOffset = +2 * kPointerSize;
191 191
192 // Size of the MIPS 4 32-bit argument slots. 192 // Size of the MIPS 4 32-bit argument slots.
193 // This is just an alias with a shorter name. Use it from now on. 193 // This is just an alias with a shorter name. Use it from now on.
194 static const int kRArgsSlotsSize = 4 * kPointerSize; 194 static const int kRArgsSlotsSize = 4 * kPointerSize;
195 static const int kRegularArgsSlotsSize = kRArgsSlotsSize; 195 static const int kRegularArgsSlotsSize = kRArgsSlotsSize;
196 196
197 // C/C++ argument slots size.
198 static const int kCArgSlotCount = 4;
199 static const int kCArgsSlotsSize = kCArgSlotCount * kPointerSize;
200 // JS argument slots size. 197 // JS argument slots size.
201 static const int kJSArgsSlotsSize = 0 * kPointerSize; 198 static const int kJSArgsSlotsSize = 0 * kPointerSize;
202 // Assembly builtins argument slots size. 199 // Assembly builtins argument slots size.
203 static const int kBArgsSlotsSize = 0 * kPointerSize; 200 static const int kBArgsSlotsSize = 0 * kPointerSize;
204 }; 201 };
205 202
206 203
207 class JavaScriptFrameConstants : public AllStatic { 204 class JavaScriptFrameConstants : public AllStatic {
208 public: 205 public:
209 // FP-relative. 206 // FP-relative.
(...skipping 21 matching lines...) Expand all
231 228
232 inline Object* JavaScriptFrame::function_slot_object() const { 229 inline Object* JavaScriptFrame::function_slot_object() const {
233 const int offset = JavaScriptFrameConstants::kFunctionOffset; 230 const int offset = JavaScriptFrameConstants::kFunctionOffset;
234 return Memory::Object_at(fp() + offset); 231 return Memory::Object_at(fp() + offset);
235 } 232 }
236 233
237 234
238 } } // namespace v8::internal 235 } } // namespace v8::internal
239 236
240 #endif 237 #endif
OLDNEW
« no previous file with comments | « src/mips/constants-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698