OLD | NEW |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 1 << 20 | // f20 | 80 1 << 20 | // f20 |
81 1 << 22 | // f22 | 81 1 << 22 | // f22 |
82 1 << 24 | // f24 | 82 1 << 24 | // f24 |
83 1 << 26 | // f26 | 83 1 << 26 | // f26 |
84 1 << 28 | // f28 | 84 1 << 28 | // f28 |
85 1 << 30; // f30 | 85 1 << 30; // f30 |
86 | 86 |
87 static const int kNumCalleeSavedFPU = 6; | 87 static const int kNumCalleeSavedFPU = 6; |
88 // Number of registers for which space is reserved in safepoints. Must be a | 88 // Number of registers for which space is reserved in safepoints. Must be a |
89 // multiple of 8. | 89 // multiple of 8. |
90 // TODO(mips): Only 8 registers may actually be sufficient. Revisit. | |
91 static const int kNumSafepointRegisters = 24; | 90 static const int kNumSafepointRegisters = 24; |
92 | 91 |
93 // Define the list of registers actually saved at safepoints. | 92 // Define the list of registers actually saved at safepoints. |
94 // Note that the number of saved registers may be smaller than the reserved | 93 // Note that the number of saved registers may be smaller than the reserved |
95 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 94 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
96 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 95 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
97 static const int kNumSafepointSavedRegisters = | 96 static const int kNumSafepointSavedRegisters = |
98 kNumJSCallerSaved + kNumCalleeSaved; | 97 kNumJSCallerSaved + kNumCalleeSaved; |
99 | 98 |
100 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; | 99 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 227 |
229 inline Object* JavaScriptFrame::function_slot_object() const { | 228 inline Object* JavaScriptFrame::function_slot_object() const { |
230 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 229 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
231 return Memory::Object_at(fp() + offset); | 230 return Memory::Object_at(fp() + offset); |
232 } | 231 } |
233 | 232 |
234 | 233 |
235 } } // namespace v8::internal | 234 } } // namespace v8::internal |
236 | 235 |
237 #endif | 236 #endif |
OLD | NEW |