| 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 17 matching lines...) Expand all Loading... |
| 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 #include "frames.h" | 32 #include "frames.h" |
| 33 #include "v8globals.h" | 33 #include "v8globals.h" |
| 34 | 34 |
| 35 namespace v8 { | 35 namespace v8 { |
| 36 namespace internal { | 36 namespace internal { |
| 37 | 37 |
| 38 // Flags used for the AllocateInNewSpace functions. | |
| 39 enum AllocationFlags { | |
| 40 // No special flags. | |
| 41 NO_ALLOCATION_FLAGS = 0, | |
| 42 // Return the pointer to the allocated already tagged as a heap object. | |
| 43 TAG_OBJECT = 1 << 0, | |
| 44 // The content of the result register already contains the allocation top in | |
| 45 // new space. | |
| 46 RESULT_CONTAINS_TOP = 1 << 1 | |
| 47 }; | |
| 48 | |
| 49 | |
| 50 // Default scratch register used by MacroAssembler (and other code that needs | 38 // Default scratch register used by MacroAssembler (and other code that needs |
| 51 // a spare register). The register isn't callee save, and not used by the | 39 // a spare register). The register isn't callee save, and not used by the |
| 52 // function calling convention. | 40 // function calling convention. |
| 53 const Register kScratchRegister = { 10 }; // r10. | 41 const Register kScratchRegister = { 10 }; // r10. |
| 54 const Register kSmiConstantRegister = { 12 }; // r12 (callee save). | 42 const Register kSmiConstantRegister = { 12 }; // r12 (callee save). |
| 55 const Register kRootRegister = { 13 }; // r13 (callee save). | 43 const Register kRootRegister = { 13 }; // r13 (callee save). |
| 56 // Value of smi in kSmiConstantRegister. | 44 // Value of smi in kSmiConstantRegister. |
| 57 const int kSmiConstantRegisterValue = 1; | 45 const int kSmiConstantRegisterValue = 1; |
| 58 // Actual value of root register is offset from the root array's start | 46 // Actual value of root register is offset from the root array's start |
| 59 // to take advantage of negitive 8-bit displacement values. | 47 // to take advantage of negitive 8-bit displacement values. |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 masm->popfd(); \ | 1485 masm->popfd(); \ |
| 1498 } \ | 1486 } \ |
| 1499 masm-> | 1487 masm-> |
| 1500 #else | 1488 #else |
| 1501 #define ACCESS_MASM(masm) masm-> | 1489 #define ACCESS_MASM(masm) masm-> |
| 1502 #endif | 1490 #endif |
| 1503 | 1491 |
| 1504 } } // namespace v8::internal | 1492 } } // namespace v8::internal |
| 1505 | 1493 |
| 1506 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1494 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |