OLD | NEW |
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_H_ | 5 #ifndef V8_FRAMES_H_ |
6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 bool is_arguments_adaptor() const { return type() == ARGUMENTS_ADAPTOR; } | 241 bool is_arguments_adaptor() const { return type() == ARGUMENTS_ADAPTOR; } |
242 bool is_internal() const { return type() == INTERNAL; } | 242 bool is_internal() const { return type() == INTERNAL; } |
243 bool is_stub_failure_trampoline() const { | 243 bool is_stub_failure_trampoline() const { |
244 return type() == STUB_FAILURE_TRAMPOLINE; | 244 return type() == STUB_FAILURE_TRAMPOLINE; |
245 } | 245 } |
246 bool is_construct() const { return type() == CONSTRUCT; } | 246 bool is_construct() const { return type() == CONSTRUCT; } |
247 virtual bool is_standard() const { return false; } | 247 virtual bool is_standard() const { return false; } |
248 | 248 |
249 bool is_java_script() const { | 249 bool is_java_script() const { |
250 Type type = this->type(); | 250 Type type = this->type(); |
251 return (type == JAVA_SCRIPT) || (type == OPTIMIZED); | 251 return (type == JAVA_SCRIPT) || (type == OPTIMIZED) || |
| 252 (type == INTERPRETED); |
252 } | 253 } |
253 | 254 |
254 // Accessors. | 255 // Accessors. |
255 Address sp() const { return state_.sp; } | 256 Address sp() const { return state_.sp; } |
256 Address fp() const { return state_.fp; } | 257 Address fp() const { return state_.fp; } |
257 Address caller_sp() const { return GetCallerStackPointer(); } | 258 Address caller_sp() const { return GetCallerStackPointer(); } |
258 | 259 |
259 // If this frame is optimized and was dynamically aligned return its old | 260 // If this frame is optimized and was dynamically aligned return its old |
260 // unaligned frame pointer. When the frame is deoptimized its FP will shift | 261 // unaligned frame pointer. When the frame is deoptimized its FP will shift |
261 // up one word and become unaligned. | 262 // up one word and become unaligned. |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 | 960 |
960 | 961 |
961 // Reads all frames on the current stack and copies them into the current | 962 // Reads all frames on the current stack and copies them into the current |
962 // zone memory. | 963 // zone memory. |
963 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 964 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
964 | 965 |
965 } // namespace internal | 966 } // namespace internal |
966 } // namespace v8 | 967 } // namespace v8 |
967 | 968 |
968 #endif // V8_FRAMES_H_ | 969 #endif // V8_FRAMES_H_ |
OLD | NEW |