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

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

Issue 182703003: Cleanup native, collected, and stub code handling in profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/stub_code.cc » ('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 "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/deopt_instructions.h" 8 #include "vm/deopt_instructions.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 return Function::null(); 143 return Function::null();
144 } 144 }
145 145
146 146
147 RawCode* StackFrame::LookupDartCode() const { 147 RawCode* StackFrame::LookupDartCode() const {
148 // We add a no gc scope to ensure that the code below does not trigger 148 // We add a no gc scope to ensure that the code below does not trigger
149 // a GC as we are handling raw object references here. It is possible 149 // a GC as we are handling raw object references here. It is possible
150 // that the code is called while a GC is in progress, that is ok. 150 // that the code is called while a GC is in progress, that is ok.
151 NoGCScope no_gc; 151 NoGCScope no_gc;
152 RawCode* code = GetCodeObject(); 152 RawCode* code = GetCodeObject();
153 ASSERT(code == Code::null() || code->ptr()->function_ != Function::null()); 153 ASSERT(code == Code::null() || code->ptr()->owner_ != Function::null());
154 return code; 154 return code;
155 } 155 }
156 156
157 157
158 RawCode* StackFrame::GetCodeObject() const { 158 RawCode* StackFrame::GetCodeObject() const {
159 // We add a no gc scope to ensure that the code below does not trigger 159 // We add a no gc scope to ensure that the code below does not trigger
160 // a GC as we are handling raw object references here. It is possible 160 // a GC as we are handling raw object references here. It is possible
161 // that the code is called while a GC is in progress, that is ok. 161 // that the code is called while a GC is in progress, that is ok.
162 NoGCScope no_gc; 162 NoGCScope no_gc;
163 const uword pc_marker = 163 const uword pc_marker =
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { 430 if (deopt_instr->kind() == DeoptInstr::kCallerFp) {
431 return (index - num_materializations_); 431 return (index - num_materializations_);
432 } 432 }
433 } 433 }
434 UNREACHABLE(); 434 UNREACHABLE();
435 return 0; 435 return 0;
436 } 436 }
437 437
438 438
439 } // namespace dart 439 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698