OLD | NEW |
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 #ifndef V8_S390_MACRO_ASSEMBLER_S390_H_ | 5 #ifndef V8_S390_MACRO_ASSEMBLER_S390_H_ |
6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ | 6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 // Static helper functions. | 1900 // Static helper functions. |
1901 | 1901 |
1902 inline MemOperand ContextMemOperand(Register context, int index = 0) { | 1902 inline MemOperand ContextMemOperand(Register context, int index = 0) { |
1903 return MemOperand(context, Context::SlotOffset(index)); | 1903 return MemOperand(context, Context::SlotOffset(index)); |
1904 } | 1904 } |
1905 | 1905 |
1906 inline MemOperand NativeContextMemOperand() { | 1906 inline MemOperand NativeContextMemOperand() { |
1907 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1907 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
1908 } | 1908 } |
1909 | 1909 |
1910 #ifdef GENERATED_CODE_COVERAGE | |
1911 #define CODE_COVERAGE_STRINGIFY(x) #x | |
1912 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | |
1913 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | |
1914 #define ACCESS_MASM(masm) \ | |
1915 masm->stop(__FILE_LINE__); \ | |
1916 masm-> | |
1917 #else | |
1918 #define ACCESS_MASM(masm) masm-> | 1910 #define ACCESS_MASM(masm) masm-> |
1919 #endif | 1911 |
1920 } // namespace internal | 1912 } // namespace internal |
1921 } // namespace v8 | 1913 } // namespace v8 |
1922 | 1914 |
1923 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ | 1915 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ |
OLD | NEW |