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

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

Issue 12179020: Fix for issues 6080 - pass in the Isolate's top context into the stub for invoking dart code from n… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/stack_frame.h ('k') | runtime/vm/stack_frame_arm.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_macros.h" 7 #include "vm/assembler_macros.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 17 matching lines...) Expand all
28 void StackFrame::Print() const { 28 void StackFrame::Print() const {
29 OS::Print("[%-8s : sp(%#"Px") ]\n", GetName(), sp()); 29 OS::Print("[%-8s : sp(%#"Px") ]\n", GetName(), sp());
30 } 30 }
31 31
32 32
33 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { 33 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) {
34 // There are no objects to visit in this frame. 34 // There are no objects to visit in this frame.
35 } 35 }
36 36
37 37
38 RawContext* EntryFrame::SavedContext() const {
39 return *(reinterpret_cast<RawContext**>(fp() + SavedContextOffset()));
40 }
41
42
38 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { 43 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) {
39 // Visit objects between SP and (FP - callee_save_area). 44 // Visit objects between SP and (FP - callee_save_area).
40 ASSERT(visitor != NULL); 45 ASSERT(visitor != NULL);
41 RawObject** start = reinterpret_cast<RawObject**>(sp()); 46 RawObject** start = reinterpret_cast<RawObject**>(sp());
42 RawObject** end = reinterpret_cast<RawObject**>( 47 RawObject** end = reinterpret_cast<RawObject**>(
43 fp() - kWordSize + ExitLinkOffset()); 48 fp() - kWordSize + ExitLinkOffset());
44 visitor->VisitPointers(start, end); 49 visitor->VisitPointers(start, end);
45 } 50 }
46 51
47 52
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 &func); 337 &func);
333 code_ = func.unoptimized_code(); 338 code_ = func.unoptimized_code();
334 function_ = func.raw(); 339 function_ = func.raw();
335 return; 340 return;
336 } 341 }
337 } 342 }
338 SetDone(); 343 SetDone();
339 } 344 }
340 345
341 } // namespace dart 346 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/stack_frame.h ('k') | runtime/vm/stack_frame_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698