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 20 matching lines...) Expand all Loading... |
31 #include "frames.h" | 31 #include "frames.h" |
32 | 32 |
33 #if V8_TARGET_ARCH_IA32 | 33 #if V8_TARGET_ARCH_IA32 |
34 #include "ia32/frames-ia32.h" | 34 #include "ia32/frames-ia32.h" |
35 #elif V8_TARGET_ARCH_X64 | 35 #elif V8_TARGET_ARCH_X64 |
36 #include "x64/frames-x64.h" | 36 #include "x64/frames-x64.h" |
37 #elif V8_TARGET_ARCH_ARM | 37 #elif V8_TARGET_ARCH_ARM |
38 #include "arm/frames-arm.h" | 38 #include "arm/frames-arm.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace v8 { namespace internal { | 41 namespace v8 { |
| 42 namespace internal { |
42 | 43 |
43 | 44 |
44 inline Address StackHandler::address() const { | 45 inline Address StackHandler::address() const { |
45 // NOTE: There's an obvious problem with the address of the NULL | 46 // NOTE: There's an obvious problem with the address of the NULL |
46 // stack handler. Right now, it benefits us that the subtraction | 47 // stack handler. Right now, it benefits us that the subtraction |
47 // leads to a very high address (above everything else on the | 48 // leads to a very high address (above everything else on the |
48 // stack), but maybe we should stop relying on it? | 49 // stack), but maybe we should stop relying on it? |
49 const int displacement = StackHandlerConstants::kAddressDisplacement; | 50 const int displacement = StackHandlerConstants::kAddressDisplacement; |
50 Address address = reinterpret_cast<Address>(const_cast<StackHandler*>(this)); | 51 Address address = reinterpret_cast<Address>(const_cast<StackHandler*>(this)); |
51 return address + displacement; | 52 return address + displacement; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 template<typename Iterator> | 220 template<typename Iterator> |
220 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { | 221 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { |
221 iterator_.Reset(); | 222 iterator_.Reset(); |
222 if (!done()) Advance(); | 223 if (!done()) Advance(); |
223 } | 224 } |
224 | 225 |
225 | 226 |
226 } } // namespace v8::internal | 227 } } // namespace v8::internal |
227 | 228 |
228 #endif // V8_FRAMES_INL_H_ | 229 #endif // V8_FRAMES_INL_H_ |
OLD | NEW |