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

Side by Side Diff: src/frames-inl.h

Issue 991893003: Remove frame pointer from StackHandler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_stack-handler-1
Patch Set: Created 5 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
« no previous file with comments | « src/frames.cc ('k') | src/ia32/frames-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FRAMES_INL_H_ 5 #ifndef V8_FRAMES_INL_H_
6 #define V8_FRAMES_INL_H_ 6 #define V8_FRAMES_INL_H_
7 7
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/v8memory.h" 10 #include "src/v8memory.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return KindField::decode(Memory::unsigned_at(address() + offset)); 87 return KindField::decode(Memory::unsigned_at(address() + offset));
88 } 88 }
89 89
90 90
91 inline unsigned StackHandler::index() const { 91 inline unsigned StackHandler::index() const {
92 const int offset = StackHandlerConstants::kStateIntOffset; 92 const int offset = StackHandlerConstants::kStateIntOffset;
93 return IndexField::decode(Memory::unsigned_at(address() + offset)); 93 return IndexField::decode(Memory::unsigned_at(address() + offset));
94 } 94 }
95 95
96 96
97 inline Address StackHandler::frame_pointer() const {
98 const int offset = StackHandlerConstants::kFPOffset;
99 return Memory::Address_at(address() + offset);
100 }
101
102
103 inline Object** StackHandler::context_address() const { 97 inline Object** StackHandler::context_address() const {
104 const int offset = StackHandlerConstants::kContextOffset; 98 const int offset = StackHandlerConstants::kContextOffset;
105 return reinterpret_cast<Object**>(address() + offset); 99 return reinterpret_cast<Object**>(address() + offset);
106 } 100 }
107 101
108 102
109 inline StackFrame::StackFrame(StackFrameIteratorBase* iterator) 103 inline StackFrame::StackFrame(StackFrameIteratorBase* iterator)
110 : iterator_(iterator), isolate_(iterator_->isolate()) { 104 : iterator_(iterator), isolate_(iterator_->isolate()) {
111 } 105 }
112 106
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 inline StackFrame* SafeStackFrameIterator::frame() const { 326 inline StackFrame* SafeStackFrameIterator::frame() const {
333 DCHECK(!done()); 327 DCHECK(!done());
334 DCHECK(frame_->is_java_script() || frame_->is_exit()); 328 DCHECK(frame_->is_java_script() || frame_->is_exit());
335 return frame_; 329 return frame_;
336 } 330 }
337 331
338 332
339 } } // namespace v8::internal 333 } } // namespace v8::internal
340 334
341 #endif // V8_FRAMES_INL_H_ 335 #endif // V8_FRAMES_INL_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/frames-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698