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

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

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/arm/simulator-arm.cc » ('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 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 5
6 // Declares a Simulator for ARM instructions if we are not generating a native 6 // Declares a Simulator for ARM instructions if we are not generating a native
7 // ARM binary. This Simulator allows us to run and debug ARM code generation on 7 // ARM binary. This Simulator allows us to run and debug ARM code generation on
8 // regular desktop machines. 8 // regular desktop machines.
9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
10 // which will start execution in the Simulator or forwards to the real entry 10 // which will start execution in the Simulator or forwards to the real entry
11 // on a ARM HW platform. 11 // on a ARM HW platform.
12 12
13 #ifndef V8_ARM_SIMULATOR_ARM_H_ 13 #ifndef V8_ARM_SIMULATOR_ARM_H_
14 #define V8_ARM_SIMULATOR_ARM_H_ 14 #define V8_ARM_SIMULATOR_ARM_H_
15 15
16 #include "allocation.h" 16 #include "src/allocation.h"
17 17
18 #if !defined(USE_SIMULATOR) 18 #if !defined(USE_SIMULATOR)
19 // Running without a simulator on a native arm platform. 19 // Running without a simulator on a native arm platform.
20 20
21 namespace v8 { 21 namespace v8 {
22 namespace internal { 22 namespace internal {
23 23
24 // When running without a simulator we call the entry directly. 24 // When running without a simulator we call the entry directly.
25 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ 25 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \
26 (entry(p0, p1, p2, p3, p4)) 26 (entry(p0, p1, p2, p3, p4))
(...skipping 26 matching lines...) Expand all
53 } 53 }
54 54
55 static inline void UnregisterCTryCatch() { } 55 static inline void UnregisterCTryCatch() { }
56 }; 56 };
57 57
58 } } // namespace v8::internal 58 } } // namespace v8::internal
59 59
60 #else // !defined(USE_SIMULATOR) 60 #else // !defined(USE_SIMULATOR)
61 // Running with a simulator. 61 // Running with a simulator.
62 62
63 #include "constants-arm.h" 63 #include "src/arm/constants-arm.h"
64 #include "hashmap.h" 64 #include "src/hashmap.h"
65 #include "assembler.h" 65 #include "src/assembler.h"
66 66
67 namespace v8 { 67 namespace v8 {
68 namespace internal { 68 namespace internal {
69 69
70 class CachePage { 70 class CachePage {
71 public: 71 public:
72 static const int LINE_VALID = 0; 72 static const int LINE_VALID = 0;
73 static const int LINE_INVALID = 1; 73 static const int LINE_INVALID = 1;
74 74
75 static const int kPageShift = 12; 75 static const int kPageShift = 12;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 static inline void UnregisterCTryCatch() { 454 static inline void UnregisterCTryCatch() {
455 Simulator::current(Isolate::Current())->PopAddress(); 455 Simulator::current(Isolate::Current())->PopAddress();
456 } 456 }
457 }; 457 };
458 458
459 } } // namespace v8::internal 459 } } // namespace v8::internal
460 460
461 #endif // !defined(USE_SIMULATOR) 461 #endif // !defined(USE_SIMULATOR)
462 #endif // V8_ARM_SIMULATOR_ARM_H_ 462 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698