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

Side by Side Diff: src/arm/simulator-arm.h

Issue 99051: Remove dependency on libstdc++ from test framework. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | test/cctest/cctest.cc » ('j') | tools/test.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 22 matching lines...) Expand all
33 // which will start execution in the Simulator or forwards to the real entry 33 // which will start execution in the Simulator or forwards to the real entry
34 // on a ARM HW platform. 34 // on a ARM HW platform.
35 35
36 #ifndef V8_SIMULATOR_ARM_H_ 36 #ifndef V8_SIMULATOR_ARM_H_
37 #define V8_SIMULATOR_ARM_H_ 37 #define V8_SIMULATOR_ARM_H_
38 38
39 #if defined(__arm__) 39 #if defined(__arm__)
40 40
41 // When running without a simulator we call the entry directly. 41 // When running without a simulator we call the entry directly.
42 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ 42 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \
43 entry(p0, p1, p2, p3, p4) 43 reinterpret_cast<Object*>(entry(p0, p1, p2, p3, p4))
44 44
45 // Calculated the stack limit beyond which we will throw stack overflow errors. 45 // Calculated the stack limit beyond which we will throw stack overflow errors.
46 // This macro must be called from a C++ method. It relies on being able to take 46 // This macro must be called from a C++ method. It relies on being able to take
47 // the address of "this" to get a value on the current execution stack and then 47 // the address of "this" to get a value on the current execution stack and then
48 // calculates the stack limit based on that value. 48 // calculates the stack limit based on that value.
49 #define GENERATED_CODE_STACK_LIMIT(limit) \ 49 #define GENERATED_CODE_STACK_LIMIT(limit) \
50 (reinterpret_cast<uintptr_t>(this) - limit) 50 (reinterpret_cast<uintptr_t>(this) - limit)
51 51
52 #else // defined(__arm__) 52 #else // defined(__arm__)
53 53
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // registered breakpoints 195 // registered breakpoints
196 Instr* break_pc_; 196 Instr* break_pc_;
197 instr_t break_instr_; 197 instr_t break_instr_;
198 }; 198 };
199 199
200 } } // namespace assembler::arm 200 } } // namespace assembler::arm
201 201
202 #endif // defined(__arm__) 202 #endif // defined(__arm__)
203 203
204 #endif // V8_SIMULATOR_ARM_H_ 204 #endif // V8_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | test/cctest/cctest.cc » ('j') | tools/test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698