OLD | NEW |
1 // Copyright 2006-2008 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 86 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
87 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 87 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
88 static const int kNumSafepointSavedRegisters = | 88 static const int kNumSafepointSavedRegisters = |
89 kNumJSCallerSaved + kNumCalleeSaved; | 89 kNumJSCallerSaved + kNumCalleeSaved; |
90 | 90 |
91 // ---------------------------------------------------- | 91 // ---------------------------------------------------- |
92 | 92 |
93 | 93 |
94 class StackHandlerConstants : public AllStatic { | 94 class StackHandlerConstants : public AllStatic { |
95 public: | 95 public: |
96 static const int kNextOffset = 0 * kPointerSize; | 96 static const int kNextOffset = 0 * kPointerSize; |
97 static const int kStateOffset = 1 * kPointerSize; | 97 static const int kStateOffset = 1 * kPointerSize; |
98 static const int kFPOffset = 2 * kPointerSize; | 98 static const int kContextOffset = 2 * kPointerSize; |
99 static const int kPCOffset = 3 * kPointerSize; | 99 static const int kFPOffset = 3 * kPointerSize; |
| 100 static const int kPCOffset = 4 * kPointerSize; |
100 | 101 |
101 static const int kSize = kPCOffset + kPointerSize; | 102 static const int kSize = kPCOffset + kPointerSize; |
102 }; | 103 }; |
103 | 104 |
104 | 105 |
105 class EntryFrameConstants : public AllStatic { | 106 class EntryFrameConstants : public AllStatic { |
106 public: | 107 public: |
107 static const int kCallerFPOffset = -3 * kPointerSize; | 108 static const int kCallerFPOffset = -3 * kPointerSize; |
108 }; | 109 }; |
109 | 110 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 163 |
163 inline Object* JavaScriptFrame::function_slot_object() const { | 164 inline Object* JavaScriptFrame::function_slot_object() const { |
164 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 165 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
165 return Memory::Object_at(fp() + offset); | 166 return Memory::Object_at(fp() + offset); |
166 } | 167 } |
167 | 168 |
168 | 169 |
169 } } // namespace v8::internal | 170 } } // namespace v8::internal |
170 | 171 |
171 #endif // V8_ARM_FRAMES_ARM_H_ | 172 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |