OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 12 matching lines...) Expand all Loading... |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 #if defined(V8_TARGET_ARCH_ARM) | 30 #if defined(V8_TARGET_ARCH_ARM) |
31 | 31 |
32 #include "frames-inl.h" | 32 #include "frames-inl.h" |
33 #ifdef V8_ARM_VARIANT_THUMB | |
34 #include "arm/assembler-thumb2-inl.h" | |
35 #else | |
36 #include "arm/assembler-arm-inl.h" | 33 #include "arm/assembler-arm-inl.h" |
37 #endif | |
38 | 34 |
39 | 35 |
40 namespace v8 { | 36 namespace v8 { |
41 namespace internal { | 37 namespace internal { |
42 | 38 |
43 | 39 |
44 StackFrame::Type StackFrame::ComputeType(State* state) { | 40 StackFrame::Type StackFrame::ComputeType(State* state) { |
45 ASSERT(state->fp != NULL); | 41 ASSERT(state->fp != NULL); |
46 if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { | 42 if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { |
47 return ARGUMENTS_ADAPTOR; | 43 return ARGUMENTS_ADAPTOR; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Address InternalFrame::GetCallerStackPointer() const { | 114 Address InternalFrame::GetCallerStackPointer() const { |
119 // Internal frames have no arguments. The stack pointer of the | 115 // Internal frames have no arguments. The stack pointer of the |
120 // caller is at a fixed offset from the frame pointer. | 116 // caller is at a fixed offset from the frame pointer. |
121 return fp() + StandardFrameConstants::kCallerSPOffset; | 117 return fp() + StandardFrameConstants::kCallerSPOffset; |
122 } | 118 } |
123 | 119 |
124 | 120 |
125 } } // namespace v8::internal | 121 } } // namespace v8::internal |
126 | 122 |
127 #endif // V8_TARGET_ARCH_ARM | 123 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |