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

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

Issue 99355: Introduce processor detection in globals.h, instead of from the build system. (Closed)
Patch Set: Guard 64-bit literals around 64-bit. Switch to long. Created 11 years, 7 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/execution.cc ('k') | src/globals.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 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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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 #ifndef V8_FRAMES_INL_H_ 28 #ifndef V8_FRAMES_INL_H_
29 #define V8_FRAMES_INL_H_ 29 #define V8_FRAMES_INL_H_
30 30
31 #include "frames.h" 31 #include "frames.h"
32 #ifdef V8_ARCH_ARM 32
33 #if V8_TARGET_ARCH_IA32
34 #include "ia32/frames-ia32.h"
35 #elif V8_TARGET_ARCH_X64
36 #include "x64/frames-x64.h"
37 #elif V8_TARGET_ARCH_ARM
33 #include "arm/frames-arm.h" 38 #include "arm/frames-arm.h"
34 #endif 39 #endif
35 40
36 #ifdef V8_ARCH_X64
37 #include "x64/frames-x64.h"
38 #endif
39
40 #ifdef V8_ARCH_IA32
41 #include "ia32/frames-ia32.h"
42 #endif
43
44
45 namespace v8 { namespace internal { 41 namespace v8 { namespace internal {
46 42
47 43
48 inline Address StackHandler::address() const { 44 inline Address StackHandler::address() const {
49 // NOTE: There's an obvious problem with the address of the NULL 45 // NOTE: There's an obvious problem with the address of the NULL
50 // stack handler. Right now, it benefits us that the subtraction 46 // stack handler. Right now, it benefits us that the subtraction
51 // leads to a very high address (above everything else on the 47 // leads to a very high address (above everything else on the
52 // stack), but maybe we should stop relying on it? 48 // stack), but maybe we should stop relying on it?
53 const int displacement = StackHandlerConstants::kAddressDisplacement; 49 const int displacement = StackHandlerConstants::kAddressDisplacement;
54 Address address = reinterpret_cast<Address>(const_cast<StackHandler*>(this)); 50 Address address = reinterpret_cast<Address>(const_cast<StackHandler*>(this));
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 template<typename Iterator> 219 template<typename Iterator>
224 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { 220 void JavaScriptFrameIteratorTemp<Iterator>::Reset() {
225 iterator_.Reset(); 221 iterator_.Reset();
226 if (!done()) Advance(); 222 if (!done()) Advance();
227 } 223 }
228 224
229 225
230 } } // namespace v8::internal 226 } } // namespace v8::internal
231 227
232 #endif // V8_FRAMES_INL_H_ 228 #endif // V8_FRAMES_INL_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698