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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |