| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 inline Address StandardFrame::caller_pc() const { | 194 inline Address StandardFrame::caller_pc() const { |
| 195 return Memory::Address_at(ComputePCAddress(fp())); | 195 return Memory::Address_at(ComputePCAddress(fp())); |
| 196 } | 196 } |
| 197 | 197 |
| 198 | 198 |
| 199 inline Address StandardFrame::ComputePCAddress(Address fp) { | 199 inline Address StandardFrame::ComputePCAddress(Address fp) { |
| 200 return fp + StandardFrameConstants::kCallerPCOffset; | 200 return fp + StandardFrameConstants::kCallerPCOffset; |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 inline Address StandardFrame::ComputeConstantPoolAddress(Address fp) { |
| 205 return fp + StandardFrameConstants::kConstantPoolOffset; |
| 206 } |
| 207 |
| 208 |
| 204 inline bool StandardFrame::IsArgumentsAdaptorFrame(Address fp) { | 209 inline bool StandardFrame::IsArgumentsAdaptorFrame(Address fp) { |
| 205 Object* marker = | 210 Object* marker = |
| 206 Memory::Object_at(fp + StandardFrameConstants::kContextOffset); | 211 Memory::Object_at(fp + StandardFrameConstants::kContextOffset); |
| 207 return marker == Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR); | 212 return marker == Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR); |
| 208 } | 213 } |
| 209 | 214 |
| 210 | 215 |
| 211 inline bool StandardFrame::IsConstructFrame(Address fp) { | 216 inline bool StandardFrame::IsConstructFrame(Address fp) { |
| 212 Object* marker = | 217 Object* marker = |
| 213 Memory::Object_at(fp + StandardFrameConstants::kMarkerOffset); | 218 Memory::Object_at(fp + StandardFrameConstants::kMarkerOffset); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 inline StackFrame* SafeStackFrameIterator::frame() const { | 344 inline StackFrame* SafeStackFrameIterator::frame() const { |
| 340 ASSERT(!done()); | 345 ASSERT(!done()); |
| 341 ASSERT(frame_->is_java_script() || frame_->is_exit()); | 346 ASSERT(frame_->is_java_script() || frame_->is_exit()); |
| 342 return frame_; | 347 return frame_; |
| 343 } | 348 } |
| 344 | 349 |
| 345 | 350 |
| 346 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 347 | 352 |
| 348 #endif // V8_FRAMES_INL_H_ | 353 #endif // V8_FRAMES_INL_H_ |
| OLD | NEW |