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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
97 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 97 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
98 static const int kNumSafepointSavedRegisters = | 98 static const int kNumSafepointSavedRegisters = |
99 kNumJSCallerSaved + kNumCalleeSaved; | 99 kNumJSCallerSaved + kNumCalleeSaved; |
100 | 100 |
101 // ---------------------------------------------------- | 101 // ---------------------------------------------------- |
102 | 102 |
103 | 103 |
104 class StackHandlerConstants : public AllStatic { | 104 class StackHandlerConstants : public AllStatic { |
105 public: | 105 public: |
106 static const int kNextOffset = 0 * kPointerSize; | 106 static const int kNextOffset = 0 * kPointerSize; |
107 static const int kCodeOffset = 1 * kPointerSize; | 107 static const int kStateOffset = 1 * kPointerSize; |
108 static const int kStateOffset = 2 * kPointerSize; | 108 static const int kContextOffset = 2 * kPointerSize; |
109 static const int kContextOffset = 3 * kPointerSize; | 109 static const int kFPOffset = 3 * kPointerSize; |
110 static const int kFPOffset = 4 * kPointerSize; | 110 static const int kPCOffset = 4 * kPointerSize; |
111 | 111 |
112 static const int kSize = kFPOffset + kPointerSize; | 112 static const int kSize = kPCOffset + kPointerSize; |
113 }; | 113 }; |
114 | 114 |
115 | 115 |
116 class EntryFrameConstants : public AllStatic { | 116 class EntryFrameConstants : public AllStatic { |
117 public: | 117 public: |
118 static const int kCallerFPOffset = -3 * kPointerSize; | 118 static const int kCallerFPOffset = -3 * kPointerSize; |
119 }; | 119 }; |
120 | 120 |
121 | 121 |
122 class ExitFrameConstants : public AllStatic { | 122 class ExitFrameConstants : public AllStatic { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 inline Object* JavaScriptFrame::function_slot_object() const { | 174 inline Object* JavaScriptFrame::function_slot_object() const { |
175 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 175 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
176 return Memory::Object_at(fp() + offset); | 176 return Memory::Object_at(fp() + offset); |
177 } | 177 } |
178 | 178 |
179 | 179 |
180 } } // namespace v8::internal | 180 } } // namespace v8::internal |
181 | 181 |
182 #endif // V8_ARM_FRAMES_ARM_H_ | 182 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |