OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // | 44 // |
45 // The programmer should know that the MacroAssembler may clobber these three, | 45 // The programmer should know that the MacroAssembler may clobber these three, |
46 // but won't touch other registers except in special cases. | 46 // but won't touch other registers except in special cases. |
47 // | 47 // |
48 // Per the MIPS ABI, register t9 must be used for indirect function call | 48 // Per the MIPS ABI, register t9 must be used for indirect function call |
49 // via 'jalr t9' or 'jr t9' instructions. This is relied upon by gcc when | 49 // via 'jalr t9' or 'jr t9' instructions. This is relied upon by gcc when |
50 // trying to update gp register for position-independent-code. Whenever | 50 // trying to update gp register for position-independent-code. Whenever |
51 // MIPS generated code calls C code, it must be via t9 register. | 51 // MIPS generated code calls C code, it must be via t9 register. |
52 | 52 |
53 | 53 |
54 // Flags used for the AllocateInNewSpace functions. | |
55 enum AllocationFlags { | |
56 // No special flags. | |
57 NO_ALLOCATION_FLAGS = 0, | |
58 // Return the pointer to the allocated already tagged as a heap object. | |
59 TAG_OBJECT = 1 << 0, | |
60 // The content of the result register already contains the allocation top in | |
61 // new space. | |
62 RESULT_CONTAINS_TOP = 1 << 1, | |
63 // Specify that the requested size of the space to allocate is specified in | |
64 // words instead of bytes. | |
65 SIZE_IN_WORDS = 1 << 2 | |
66 }; | |
67 | |
68 // Flags used for AllocateHeapNumber | 54 // Flags used for AllocateHeapNumber |
69 enum TaggingMode { | 55 enum TaggingMode { |
70 // Tag the result. | 56 // Tag the result. |
71 TAG_RESULT, | 57 TAG_RESULT, |
72 // Don't tag | 58 // Don't tag |
73 DONT_TAG_RESULT | 59 DONT_TAG_RESULT |
74 }; | 60 }; |
75 | 61 |
76 // Flags used for the ObjectToDoubleFPURegister function. | 62 // Flags used for the ObjectToDoubleFPURegister function. |
77 enum ObjectToDoubleFlags { | 63 enum ObjectToDoubleFlags { |
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1573 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1574 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1575 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1590 #else | 1576 #else |
1591 #define ACCESS_MASM(masm) masm-> | 1577 #define ACCESS_MASM(masm) masm-> |
1592 #endif | 1578 #endif |
1593 | 1579 |
1594 } } // namespace v8::internal | 1580 } } // namespace v8::internal |
1595 | 1581 |
1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1582 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |