| 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 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2160 | 2160 |
| 2161 | 2161 |
| 2162 // Use this scope when you need a one-to-one mapping bewteen methods and | 2162 // Use this scope when you need a one-to-one mapping bewteen methods and |
| 2163 // instructions. This scope prevents the MacroAssembler from being called and | 2163 // instructions. This scope prevents the MacroAssembler from being called and |
| 2164 // literal pools from being emitted. It also asserts the number of instructions | 2164 // literal pools from being emitted. It also asserts the number of instructions |
| 2165 // emitted is what you specified when creating the scope. | 2165 // emitted is what you specified when creating the scope. |
| 2166 class InstructionAccurateScope BASE_EMBEDDED { | 2166 class InstructionAccurateScope BASE_EMBEDDED { |
| 2167 public: | 2167 public: |
| 2168 InstructionAccurateScope(MacroAssembler* masm, size_t count = 0) | 2168 InstructionAccurateScope(MacroAssembler* masm, size_t count = 0) |
| 2169 : masm_(masm), size_(count * kInstructionSize) { | 2169 : masm_(masm), size_(count * kInstructionSize) { |
| 2170 // Before blocking the const pool, see if it needs to be emitted. |
| 2171 masm_->CheckConstPool(false, true); |
| 2172 |
| 2170 masm_->StartBlockConstPool(); | 2173 masm_->StartBlockConstPool(); |
| 2171 #ifdef DEBUG | 2174 #ifdef DEBUG |
| 2172 if (count != 0) { | 2175 if (count != 0) { |
| 2173 masm_->bind(&start_); | 2176 masm_->bind(&start_); |
| 2174 } | 2177 } |
| 2175 previous_allow_macro_instructions_ = masm_->allow_macro_instructions(); | 2178 previous_allow_macro_instructions_ = masm_->allow_macro_instructions(); |
| 2176 masm_->set_allow_macro_instructions(false); | 2179 masm_->set_allow_macro_instructions(false); |
| 2177 #endif | 2180 #endif |
| 2178 } | 2181 } |
| 2179 | 2182 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 #error "Unsupported option" | 2263 #error "Unsupported option" |
| 2261 #define CODE_COVERAGE_STRINGIFY(x) #x | 2264 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2262 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2265 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2263 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2266 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2264 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2267 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2265 #else | 2268 #else |
| 2266 #define ACCESS_MASM(masm) masm-> | 2269 #define ACCESS_MASM(masm) masm-> |
| 2267 #endif | 2270 #endif |
| 2268 | 2271 |
| 2269 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2272 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |