OLD | NEW |
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 // Define the list of registers actually saved at safepoints. | 94 // Define the list of registers actually saved at safepoints. |
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 StackHandlerConstants : public AllStatic { | |
104 public: | |
105 static const int kNextOffset = 0 * kPointerSize; | |
106 static const int kCodeOffset = 1 * kPointerSize; | |
107 static const int kStateOffset = 2 * kPointerSize; | |
108 static const int kContextOffset = 3 * kPointerSize; | |
109 static const int kFPOffset = 4 * kPointerSize; | |
110 | |
111 static const int kSize = kFPOffset + kPointerSize; | |
112 }; | |
113 | |
114 | |
115 class EntryFrameConstants : public AllStatic { | 103 class EntryFrameConstants : public AllStatic { |
116 public: | 104 public: |
117 static const int kCallerFPOffset = -3 * kPointerSize; | 105 static const int kCallerFPOffset = -3 * kPointerSize; |
118 }; | 106 }; |
119 | 107 |
120 | 108 |
121 class ExitFrameConstants : public AllStatic { | 109 class ExitFrameConstants : public AllStatic { |
122 public: | 110 public: |
123 static const int kCodeOffset = -2 * kPointerSize; | 111 static const int kCodeOffset = -2 * kPointerSize; |
124 static const int kSPOffset = -1 * kPointerSize; | 112 static const int kSPOffset = -1 * kPointerSize; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 167 |
180 inline Object* JavaScriptFrame::function_slot_object() const { | 168 inline Object* JavaScriptFrame::function_slot_object() const { |
181 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 169 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
182 return Memory::Object_at(fp() + offset); | 170 return Memory::Object_at(fp() + offset); |
183 } | 171 } |
184 | 172 |
185 | 173 |
186 } } // namespace v8::internal | 174 } } // namespace v8::internal |
187 | 175 |
188 #endif // V8_ARM_FRAMES_ARM_H_ | 176 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |