OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 15 matching lines...) Expand all Loading... |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
30 | 30 |
31 #include "assembler.h" | 31 #include "assembler.h" |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
| 36 // Flags used for the AllocateInNewSpace functions. |
| 37 enum AllocationFlags { |
| 38 // No special flags. |
| 39 NO_ALLOCATION_FLAGS = 0, |
| 40 // Return the pointer to the allocated already tagged as a heap object. |
| 41 TAG_OBJECT = 1 << 0, |
| 42 // The content of the result register already contains the allocation top in |
| 43 // new space. |
| 44 RESULT_CONTAINS_TOP = 1 << 1 |
| 45 }; |
| 46 |
36 // Default scratch register used by MacroAssembler (and other code that needs | 47 // Default scratch register used by MacroAssembler (and other code that needs |
37 // a spare register). The register isn't callee save, and not used by the | 48 // a spare register). The register isn't callee save, and not used by the |
38 // function calling convention. | 49 // function calling convention. |
39 static const Register kScratchRegister = { 10 }; // r10. | 50 static const Register kScratchRegister = { 10 }; // r10. |
40 static const Register kRootRegister = { 13 }; // r13 | 51 static const Register kRootRegister = { 13 }; // r13 |
41 | 52 |
42 // Convenience for platform-independent signatures. | 53 // Convenience for platform-independent signatures. |
43 typedef Operand MemOperand; | 54 typedef Operand MemOperand; |
44 | 55 |
45 // Forward declaration. | 56 // Forward declaration. |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 } \ | 872 } \ |
862 masm-> | 873 masm-> |
863 #else | 874 #else |
864 #define ACCESS_MASM(masm) masm-> | 875 #define ACCESS_MASM(masm) masm-> |
865 #endif | 876 #endif |
866 | 877 |
867 | 878 |
868 } } // namespace v8::internal | 879 } } // namespace v8::internal |
869 | 880 |
870 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 881 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |