OLD | NEW |
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 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2050 pop(ra); | 2050 pop(ra); |
2051 ld(at, MemOperand(at, 6 * v8::internal::Assembler::kInstrSize)); | 2051 ld(at, MemOperand(at, 6 * v8::internal::Assembler::kInstrSize)); |
2052 } | 2052 } |
2053 jr(at); | 2053 jr(at); |
2054 nop(); // Branch delay slot nop. | 2054 nop(); // Branch delay slot nop. |
2055 for (size_t index = 0; index < case_count; ++index) { | 2055 for (size_t index = 0; index < case_count; ++index) { |
2056 dd(GetLabelFunction(index)); | 2056 dd(GetLabelFunction(index)); |
2057 } | 2057 } |
2058 } | 2058 } |
2059 | 2059 |
2060 #ifdef GENERATED_CODE_COVERAGE | |
2061 #define CODE_COVERAGE_STRINGIFY(x) #x | |
2062 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | |
2063 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | |
2064 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | |
2065 #else | |
2066 #define ACCESS_MASM(masm) masm-> | 2060 #define ACCESS_MASM(masm) masm-> |
2067 #endif | |
2068 | 2061 |
2069 } // namespace internal | 2062 } // namespace internal |
2070 } // namespace v8 | 2063 } // namespace v8 |
2071 | 2064 |
2072 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2065 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |