| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/stack_frame.h" | 5 #include "vm/stack_frame.h" |
| 6 | 6 |
| 7 #include "platform/memory_sanitizer.h" | 7 #include "platform/memory_sanitizer.h" |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/deopt_instructions.h" | 9 #include "vm/deopt_instructions.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 bool StackFrame::IsValid() const { | 265 bool StackFrame::IsValid() const { |
| 266 if (IsEntryFrame() || IsExitFrame() || IsStubFrame()) { | 266 if (IsEntryFrame() || IsExitFrame() || IsStubFrame()) { |
| 267 return true; | 267 return true; |
| 268 } | 268 } |
| 269 return (LookupDartCode() != Code::null()); | 269 return (LookupDartCode() != Code::null()); |
| 270 } | 270 } |
| 271 | 271 |
| 272 | 272 |
| 273 void StackFrameIterator::SetupLastExitFrameData() { | 273 void StackFrameIterator::SetupLastExitFrameData() { |
| 274 uword exit_marker = isolate_->top_exit_frame_info(); | 274 uword exit_marker = Thread::Current()->top_exit_frame_info(); |
| 275 frames_.fp_ = exit_marker; | 275 frames_.fp_ = exit_marker; |
| 276 } | 276 } |
| 277 | 277 |
| 278 | 278 |
| 279 void StackFrameIterator::SetupNextExitFrameData() { | 279 void StackFrameIterator::SetupNextExitFrameData() { |
| 280 uword exit_address = entry_.fp() + (kExitLinkSlotFromEntryFp * kWordSize); | 280 uword exit_address = entry_.fp() + (kExitLinkSlotFromEntryFp * kWordSize); |
| 281 uword exit_marker = *reinterpret_cast<uword*>(exit_address); | 281 uword exit_marker = *reinterpret_cast<uword*>(exit_address); |
| 282 frames_.fp_ = exit_marker; | 282 frames_.fp_ = exit_marker; |
| 283 frames_.sp_ = 0; | 283 frames_.sp_ = 0; |
| 284 frames_.pc_ = 0; | 284 frames_.pc_ = 0; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { | 496 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { |
| 497 return (index - num_materializations_); | 497 return (index - num_materializations_); |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 UNREACHABLE(); | 500 UNREACHABLE(); |
| 501 return 0; | 501 return 0; |
| 502 } | 502 } |
| 503 | 503 |
| 504 | 504 |
| 505 } // namespace dart | 505 } // namespace dart |
| OLD | NEW |