| 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 | |
| 1986 #ifdef DEBUG | |
| 1987 // Return true if the sequence is a code age sequence generated by | |
| 1988 // EmitCodeAgeSequence. | |
| 1989 static bool IsCodeAgeSequence(byte* sequence); | |
| 1990 #endif | |
| 1991 | 1985 |
| 1992 // Jumps to found label if a prototype map has dictionary elements. | 1986 // Jumps to found label if a prototype map has dictionary elements. |
| 1993 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 1987 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
| 1994 Register scratch1, Label* found); | 1988 Register scratch1, Label* found); |
| 1995 | 1989 |
| 1996 private: | 1990 private: |
| 1997 // Helpers for CopyFields. | 1991 // Helpers for CopyFields. |
| 1998 // These each implement CopyFields in a different way. | 1992 // These each implement CopyFields in a different way. |
| 1999 void CopyFieldsLoopPairsHelper(Register dst, Register src, unsigned count, | 1993 void CopyFieldsLoopPairsHelper(Register dst, Register src, unsigned count, |
| 2000 Register scratch1, Register scratch2, | 1994 Register scratch1, Register scratch2, |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2284 #error "Unsupported option" | 2278 #error "Unsupported option" |
| 2285 #define CODE_COVERAGE_STRINGIFY(x) #x | 2279 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2286 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2280 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2287 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2281 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2288 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2282 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2289 #else | 2283 #else |
| 2290 #define ACCESS_MASM(masm) masm-> | 2284 #define ACCESS_MASM(masm) masm-> |
| 2291 #endif | 2285 #endif |
| 2292 | 2286 |
| 2293 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2287 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| OLD | NEW |