OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 18 matching lines...) Expand all Loading... | |
29 #define V8_ARM64_TEST_UTILS_ARM64_H_ | 29 #define V8_ARM64_TEST_UTILS_ARM64_H_ |
30 | 30 |
31 #include "src/v8.h" | 31 #include "src/v8.h" |
32 #include "test/cctest/cctest.h" | 32 #include "test/cctest/cctest.h" |
33 | 33 |
34 #include "src/arm64/macro-assembler-arm64.h" | 34 #include "src/arm64/macro-assembler-arm64.h" |
35 #include "src/arm64/utils-arm64.h" | 35 #include "src/arm64/utils-arm64.h" |
36 #include "src/macro-assembler.h" | 36 #include "src/macro-assembler.h" |
37 | 37 |
38 | 38 |
39 using namespace v8::internal; | 39 namespace v8 { |
Michael Achenbach
2016/07/25 15:13:29
https://www.chromium.org/developers/coding-style/c
| |
40 namespace internal { | |
40 | 41 |
41 | 42 |
42 // RegisterDump: Object allowing integer, floating point and flags registers | 43 // RegisterDump: Object allowing integer, floating point and flags registers |
43 // to be saved to itself for future reference. | 44 // to be saved to itself for future reference. |
44 class RegisterDump { | 45 class RegisterDump { |
45 public: | 46 public: |
46 RegisterDump() : completed_(false) {} | 47 RegisterDump() : completed_(false) {} |
47 | 48 |
48 // The Dump method generates code to store a snapshot of the register values. | 49 // The Dump method generates code to store a snapshot of the register values. |
49 // It needs to be able to use the stack temporarily, and requires that the | 50 // It needs to be able to use the stack temporarily, and requires that the |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 | 224 |
224 // As Clobber, but for FP registers. | 225 // As Clobber, but for FP registers. |
225 void ClobberFP(MacroAssembler* masm, RegList reg_list, | 226 void ClobberFP(MacroAssembler* masm, RegList reg_list, |
226 double const value = kFP64SignallingNaN); | 227 double const value = kFP64SignallingNaN); |
227 | 228 |
228 // As Clobber, but for a CPURegList with either FP or integer registers. When | 229 // As Clobber, but for a CPURegList with either FP or integer registers. When |
229 // using this method, the clobber value is always the default for the basic | 230 // using this method, the clobber value is always the default for the basic |
230 // Clobber or ClobberFP functions. | 231 // Clobber or ClobberFP functions. |
231 void Clobber(MacroAssembler* masm, CPURegList reg_list); | 232 void Clobber(MacroAssembler* masm, CPURegList reg_list); |
232 | 233 |
234 } // namespace internal | |
235 } // namespace v8 | |
236 | |
233 #endif // V8_ARM64_TEST_UTILS_ARM64_H_ | 237 #endif // V8_ARM64_TEST_UTILS_ARM64_H_ |
OLD | NEW |