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

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

Issue 7744050: Landing: MIPS: Remove gp and sp from callee-saved register list. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Return the code of the n-th caller-saved register available to JavaScript 52 // Return the code of the n-th caller-saved register available to JavaScript
53 // e.g. JSCallerSavedReg(0) returns a0.code() == 4. 53 // e.g. JSCallerSavedReg(0) returns a0.code() == 4.
54 int JSCallerSavedCode(int n); 54 int JSCallerSavedCode(int n);
55 55
56 56
57 // Callee-saved registers preserved when switching from C to JavaScript. 57 // Callee-saved registers preserved when switching from C to JavaScript.
58 static const RegList kCalleeSaved = 58 static const RegList kCalleeSaved =
59 // Saved temporaries. 59 // Saved temporaries.
60 1 << 16 | 1 << 17 | 1 << 18 | 1 << 19 | 60 1 << 16 | 1 << 17 | 1 << 18 | 1 << 19 |
61 1 << 20 | 1 << 21 | 1 << 22 | 1 << 23 | 61 1 << 20 | 1 << 21 | 1 << 22 | 1 << 23 |
62 // gp, sp, fp. 62 // fp.
63 1 << 28 | 1 << 29 | 1 << 30; 63 1 << 30;
64 64
65 static const int kNumCalleeSaved = 11; 65 static const int kNumCalleeSaved = 9;
66 66
67 67
68 // Number of registers for which space is reserved in safepoints. Must be a 68 // Number of registers for which space is reserved in safepoints. Must be a
69 // multiple of 8. 69 // multiple of 8.
70 // TODO(mips): Only 8 registers may actually be sufficient. Revisit. 70 // TODO(mips): Only 8 registers may actually be sufficient. Revisit.
71 static const int kNumSafepointRegisters = 16; 71 static const int kNumSafepointRegisters = 16;
72 72
73 // Define the list of registers actually saved at safepoints. 73 // Define the list of registers actually saved at safepoints.
74 // Note that the number of saved registers may be smaller than the reserved 74 // Note that the number of saved registers may be smaller than the reserved
75 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. 75 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 inline Object* JavaScriptFrame::function_slot_object() const { 212 inline Object* JavaScriptFrame::function_slot_object() const {
213 const int offset = JavaScriptFrameConstants::kFunctionOffset; 213 const int offset = JavaScriptFrameConstants::kFunctionOffset;
214 return Memory::Object_at(fp() + offset); 214 return Memory::Object_at(fp() + offset);
215 } 215 }
216 216
217 217
218 } } // namespace v8::internal 218 } } // namespace v8::internal
219 219
220 #endif 220 #endif
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698