Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: runtime/vm/stack_frame.cc

Issue 1410643008: Get rid of deprecated methods accessing mutator_thread_ instead of current thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698