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 "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 // the stub address that is normally embedded in the instruction stream. This | 1974 // the stub address that is normally embedded in the instruction stream. This |
1975 // can be used by debug code to verify code age sequences. | 1975 // can be used by debug code to verify code age sequences. |
1976 static void EmitCodeAgeSequence(Assembler* assm, Code* stub); | 1976 static void EmitCodeAgeSequence(Assembler* assm, Code* stub); |
1977 | 1977 |
1978 // Call EmitCodeAgeSequence from a MacroAssembler context. | 1978 // Call EmitCodeAgeSequence from a MacroAssembler context. |
1979 void EmitCodeAgeSequence(Code* stub); | 1979 void EmitCodeAgeSequence(Code* stub); |
1980 | 1980 |
1981 // Return true if the sequence is a young sequence geneated by | 1981 // Return true if the sequence is a young sequence geneated by |
1982 // EmitFrameSetupForCodeAgePatching. Otherwise, this method asserts that the | 1982 // EmitFrameSetupForCodeAgePatching. Otherwise, this method asserts that the |
1983 // sequence is a code age sequence (emitted by EmitCodeAgeSequence). | 1983 // sequence is a code age sequence (emitted by EmitCodeAgeSequence). |
1984 static bool IsYoungSequence(byte* sequence); | 1984 static bool IsYoungSequence(Isolate* isolate, byte* sequence); |
1985 | 1985 |
1986 #ifdef DEBUG | 1986 #ifdef DEBUG |
1987 // Return true if the sequence is a code age sequence generated by | 1987 // Return true if the sequence is a code age sequence generated by |
1988 // EmitCodeAgeSequence. | 1988 // EmitCodeAgeSequence. |
1989 static bool IsCodeAgeSequence(byte* sequence); | 1989 static bool IsCodeAgeSequence(byte* sequence); |
1990 #endif | 1990 #endif |
1991 | 1991 |
1992 // Jumps to found label if a prototype map has dictionary elements. | 1992 // Jumps to found label if a prototype map has dictionary elements. |
1993 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 1993 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
1994 Register scratch1, Label* found); | 1994 Register scratch1, Label* found); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 #error "Unsupported option" | 2284 #error "Unsupported option" |
2285 #define CODE_COVERAGE_STRINGIFY(x) #x | 2285 #define CODE_COVERAGE_STRINGIFY(x) #x |
2286 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2286 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2287 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2287 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2288 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2288 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2289 #else | 2289 #else |
2290 #define ACCESS_MASM(masm) masm-> | 2290 #define ACCESS_MASM(masm) masm-> |
2291 #endif | 2291 #endif |
2292 | 2292 |
2293 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2293 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |