OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 ImmBranchType branch_type); | 2194 ImmBranchType branch_type); |
2195 }; | 2195 }; |
2196 | 2196 |
2197 | 2197 |
2198 // Use this scope when you need a one-to-one mapping bewteen methods and | 2198 // Use this scope when you need a one-to-one mapping bewteen methods and |
2199 // instructions. This scope prevents the MacroAssembler from being called and | 2199 // instructions. This scope prevents the MacroAssembler from being called and |
2200 // literal pools from being emitted. It also asserts the number of instructions | 2200 // literal pools from being emitted. It also asserts the number of instructions |
2201 // emitted is what you specified when creating the scope. | 2201 // emitted is what you specified when creating the scope. |
2202 class InstructionAccurateScope BASE_EMBEDDED { | 2202 class InstructionAccurateScope BASE_EMBEDDED { |
2203 public: | 2203 public: |
2204 InstructionAccurateScope(MacroAssembler* masm, size_t count = 0) | 2204 explicit InstructionAccurateScope(MacroAssembler* masm, size_t count = 0) |
2205 : masm_(masm) | 2205 : masm_(masm) |
2206 #ifdef DEBUG | 2206 #ifdef DEBUG |
2207 , | 2207 , |
2208 size_(count * kInstructionSize) | 2208 size_(count * kInstructionSize) |
2209 #endif | 2209 #endif |
2210 { | 2210 { |
2211 // Before blocking the const pool, see if it needs to be emitted. | 2211 // Before blocking the const pool, see if it needs to be emitted. |
2212 masm_->CheckConstPool(false, true); | 2212 masm_->CheckConstPool(false, true); |
2213 masm_->CheckVeneerPool(false, true); | 2213 masm_->CheckVeneerPool(false, true); |
2214 | 2214 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 #error "Unsupported option" | 2354 #error "Unsupported option" |
2355 #define CODE_COVERAGE_STRINGIFY(x) #x | 2355 #define CODE_COVERAGE_STRINGIFY(x) #x |
2356 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2356 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2357 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2357 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2358 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2358 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2359 #else | 2359 #else |
2360 #define ACCESS_MASM(masm) masm-> | 2360 #define ACCESS_MASM(masm) masm-> |
2361 #endif | 2361 #endif |
2362 | 2362 |
2363 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2363 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |