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

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

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 2 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/ppc/macro-assembler-ppc.h ('k') | src/preparse-data.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 PPC instructions if we are not generating a native 6 // Declares a Simulator for PPC instructions if we are not generating a native
7 // PPC binary. This Simulator allows us to run and debug PPC code generation on 7 // PPC binary. This Simulator allows us to run and debug PPC 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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 USE(isolate); 47 USE(isolate);
48 return c_limit; 48 return c_limit;
49 } 49 }
50 50
51 static inline uintptr_t RegisterCTryCatch(uintptr_t try_catch_address) { 51 static inline uintptr_t RegisterCTryCatch(uintptr_t try_catch_address) {
52 return try_catch_address; 52 return try_catch_address;
53 } 53 }
54 54
55 static inline void UnregisterCTryCatch() {} 55 static inline void UnregisterCTryCatch() {}
56 }; 56 };
57 } 57 } // namespace internal
58 } // namespace v8::internal 58 } // namespace v8
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 "src/assembler.h" 63 #include "src/assembler.h"
64 #include "src/hashmap.h" 64 #include "src/hashmap.h"
65 #include "src/ppc/constants-ppc.h" 65 #include "src/ppc/constants-ppc.h"
66 66
67 namespace v8 { 67 namespace v8 {
68 namespace internal { 68 namespace internal {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 static inline uintptr_t RegisterCTryCatch(uintptr_t try_catch_address) { 416 static inline uintptr_t RegisterCTryCatch(uintptr_t try_catch_address) {
417 Simulator* sim = Simulator::current(Isolate::Current()); 417 Simulator* sim = Simulator::current(Isolate::Current());
418 return sim->PushAddress(try_catch_address); 418 return sim->PushAddress(try_catch_address);
419 } 419 }
420 420
421 static inline void UnregisterCTryCatch() { 421 static inline void UnregisterCTryCatch() {
422 Simulator::current(Isolate::Current())->PopAddress(); 422 Simulator::current(Isolate::Current())->PopAddress();
423 } 423 }
424 }; 424 };
425 } 425 } // namespace internal
426 } // namespace v8::internal 426 } // namespace v8
427 427
428 #endif // !defined(USE_SIMULATOR) 428 #endif // !defined(USE_SIMULATOR)
429 #endif // V8_PPC_SIMULATOR_PPC_H_ 429 #endif // V8_PPC_SIMULATOR_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/preparse-data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698