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

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

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 3 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
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"
11 11
12 #if V8_TARGET_ARCH_IA32 12 #if V8_TARGET_ARCH_IA32
13 #include "src/ia32/frames-ia32.h" // NOLINT 13 #include "src/ia32/frames-ia32.h" // NOLINT
14 #elif V8_TARGET_ARCH_X64 14 #elif V8_TARGET_ARCH_X64
15 #include "src/x64/frames-x64.h" // NOLINT 15 #include "src/x64/frames-x64.h" // NOLINT
16 #elif V8_TARGET_ARCH_ARM64 16 #elif V8_TARGET_ARCH_ARM64
17 #include "src/arm64/frames-arm64.h" // NOLINT 17 #include "src/arm64/frames-arm64.h" // NOLINT
18 #elif V8_TARGET_ARCH_ARM 18 #elif V8_TARGET_ARCH_ARM
19 #include "src/arm/frames-arm.h" // NOLINT 19 #include "src/arm/frames-arm.h" // NOLINT
20 #elif V8_TARGET_ARCH_PPC
21 #include "src/ppc/frames-ppc.h" // NOLINT
20 #elif V8_TARGET_ARCH_MIPS 22 #elif V8_TARGET_ARCH_MIPS
21 #include "src/mips/frames-mips.h" // NOLINT 23 #include "src/mips/frames-mips.h" // NOLINT
22 #elif V8_TARGET_ARCH_MIPS64 24 #elif V8_TARGET_ARCH_MIPS64
23 #include "src/mips64/frames-mips64.h" // NOLINT 25 #include "src/mips64/frames-mips64.h" // NOLINT
24 #elif V8_TARGET_ARCH_X87 26 #elif V8_TARGET_ARCH_X87
25 #include "src/x87/frames-x87.h" // NOLINT 27 #include "src/x87/frames-x87.h" // NOLINT
26 #else 28 #else
27 #error Unsupported target architecture. 29 #error Unsupported target architecture.
28 #endif 30 #endif
29 31
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return kind() == CATCH; 71 return kind() == CATCH;
70 } 72 }
71 73
72 74
73 inline bool StackHandler::is_finally() const { 75 inline bool StackHandler::is_finally() const {
74 return kind() == FINALLY; 76 return kind() == FINALLY;
75 } 77 }
76 78
77 79
78 inline StackHandler::Kind StackHandler::kind() const { 80 inline StackHandler::Kind StackHandler::kind() const {
79 const int offset = StackHandlerConstants::kStateOffset; 81 const int offset = StackHandlerConstants::kStateIntOffset;
80 return KindField::decode(Memory::unsigned_at(address() + offset)); 82 return KindField::decode(Memory::unsigned_at(address() + offset));
81 } 83 }
82 84
83 85
84 inline unsigned StackHandler::index() const { 86 inline unsigned StackHandler::index() const {
85 const int offset = StackHandlerConstants::kStateOffset; 87 const int offset = StackHandlerConstants::kStateIntOffset;
86 return IndexField::decode(Memory::unsigned_at(address() + offset)); 88 return IndexField::decode(Memory::unsigned_at(address() + offset));
87 } 89 }
88 90
89 91
90 inline Object** StackHandler::context_address() const { 92 inline Object** StackHandler::context_address() const {
91 const int offset = StackHandlerConstants::kContextOffset; 93 const int offset = StackHandlerConstants::kContextOffset;
92 return reinterpret_cast<Object**>(address() + offset); 94 return reinterpret_cast<Object**>(address() + offset);
93 } 95 }
94 96
95 97
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 inline StackFrame* SafeStackFrameIterator::frame() const { 327 inline StackFrame* SafeStackFrameIterator::frame() const {
326 DCHECK(!done()); 328 DCHECK(!done());
327 DCHECK(frame_->is_java_script() || frame_->is_exit()); 329 DCHECK(frame_->is_java_script() || frame_->is_exit());
328 return frame_; 330 return frame_;
329 } 331 }
330 332
331 333
332 } } // namespace v8::internal 334 } } // namespace v8::internal
333 335
334 #endif // V8_FRAMES_INL_H_ 336 #endif // V8_FRAMES_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698