Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM_FRAMES_ARM_H_ | 5 #ifndef V8_ARM_FRAMES_ARM_H_ |
| 6 #define V8_ARM_FRAMES_ARM_H_ | 6 #define V8_ARM_FRAMES_ARM_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 | 62 |
| 63 | 63 |
| 64 // Number of registers for which space is reserved in safepoints. Must be a | 64 // Number of registers for which space is reserved in safepoints. Must be a |
| 65 // multiple of 8. | 65 // multiple of 8. |
| 66 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. | 66 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. |
| 67 const int kNumSafepointRegisters = 16; | 67 const int kNumSafepointRegisters = 16; |
| 68 | 68 |
| 69 // Define the list of registers actually saved at safepoints. | 69 // Define the list of registers actually saved at safepoints. |
| 70 // Note that the number of saved registers may be smaller than the reserved | 70 // Note that the number of saved registers may be smaller than the reserved |
| 71 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 71 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
| 72 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 72 const RegList kSafepointSavedRegisters = |
| 73 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved; | 73 kJSCallerSaved | |
| 74 (FLAG_enable_embedded_constant_pool ? kCalleeSaved & ~(1 << 8) | |
| 75 : kCalleeSaved); | |
|
rmcilroy
2015/06/08 11:11:11
I'm guessing you are doing this because pp holds a
MTBrandyberry
2015/06/08 13:52:39
Partly. It's true that pp doesn't need to be save
rmcilroy
2015/06/09 10:10:46
OK, but let's make this a bit easier to understand
MTBrandyberry
2015/06/09 13:26:38
Done.
| |
| 76 const int kNumSafepointSavedRegisters = | |
| 77 kNumJSCallerSaved + (FLAG_enable_embedded_constant_pool | |
| 78 ? kNumCalleeSaved - 1 | |
| 79 : kNumCalleeSaved); | |
| 74 | 80 |
| 75 // ---------------------------------------------------- | 81 // ---------------------------------------------------- |
| 76 | 82 |
| 77 | 83 |
| 78 class EntryFrameConstants : public AllStatic { | 84 class EntryFrameConstants : public AllStatic { |
| 79 public: | 85 public: |
| 80 static const int kCallerFPOffset = | 86 static const int kCallerFPOffset = |
| 81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 87 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
| 82 }; | 88 }; |
| 83 | 89 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 | 154 |
| 149 inline Object* JavaScriptFrame::function_slot_object() const { | 155 inline Object* JavaScriptFrame::function_slot_object() const { |
| 150 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 156 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 151 return Memory::Object_at(fp() + offset); | 157 return Memory::Object_at(fp() + offset); |
| 152 } | 158 } |
| 153 | 159 |
| 154 | 160 |
| 155 } } // namespace v8::internal | 161 } } // namespace v8::internal |
| 156 | 162 |
| 157 #endif // V8_ARM_FRAMES_ARM_H_ | 163 #endif // V8_ARM_FRAMES_ARM_H_ |
| OLD | NEW |