| 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 18 matching lines...) Expand all Loading... |
| 29 #define V8_MACRO_ASSEMBLER_H_ | 29 #define V8_MACRO_ASSEMBLER_H_ |
| 30 | 30 |
| 31 | 31 |
| 32 // Helper types to make boolean flag easier to read at call-site. | 32 // Helper types to make boolean flag easier to read at call-site. |
| 33 enum InvokeFlag { | 33 enum InvokeFlag { |
| 34 CALL_FUNCTION, | 34 CALL_FUNCTION, |
| 35 JUMP_FUNCTION | 35 JUMP_FUNCTION |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 | 38 |
| 39 // Flags used for the AllocateInNewSpace functions. |
| 40 enum AllocationFlags { |
| 41 // No special flags. |
| 42 NO_ALLOCATION_FLAGS = 0, |
| 43 // Return the pointer to the allocated already tagged as a heap object. |
| 44 TAG_OBJECT = 1 << 0, |
| 45 // The content of the result register already contains the allocation top in |
| 46 // new space. |
| 47 RESULT_CONTAINS_TOP = 1 << 1, |
| 48 // Specify that the requested size of the space to allocate is specified in |
| 49 // words instead of bytes. |
| 50 SIZE_IN_WORDS = 1 << 2, |
| 51 // Align the allocation to a multiple of kDoubleSize |
| 52 DOUBLE_ALIGNMENT = 1 << 3 |
| 53 }; |
| 54 |
| 55 |
| 39 // Invalid depth in prototype chain. | 56 // Invalid depth in prototype chain. |
| 40 const int kInvalidProtoDepth = -1; | 57 const int kInvalidProtoDepth = -1; |
| 41 | 58 |
| 42 #if V8_TARGET_ARCH_IA32 | 59 #if V8_TARGET_ARCH_IA32 |
| 43 #include "assembler.h" | 60 #include "assembler.h" |
| 44 #include "ia32/assembler-ia32.h" | 61 #include "ia32/assembler-ia32.h" |
| 45 #include "ia32/assembler-ia32-inl.h" | 62 #include "ia32/assembler-ia32-inl.h" |
| 46 #include "code.h" // must be after assembler_*.h | 63 #include "code.h" // must be after assembler_*.h |
| 47 #include "ia32/macro-assembler-ia32.h" | 64 #include "ia32/macro-assembler-ia32.h" |
| 48 #elif V8_TARGET_ARCH_X64 | 65 #elif V8_TARGET_ARCH_X64 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 class Comment { | 164 class Comment { |
| 148 public: | 165 public: |
| 149 Comment(MacroAssembler*, const char*) {} | 166 Comment(MacroAssembler*, const char*) {} |
| 150 }; | 167 }; |
| 151 | 168 |
| 152 #endif // DEBUG | 169 #endif // DEBUG |
| 153 | 170 |
| 154 } } // namespace v8::internal | 171 } } // namespace v8::internal |
| 155 | 172 |
| 156 #endif // V8_MACRO_ASSEMBLER_H_ | 173 #endif // V8_MACRO_ASSEMBLER_H_ |
| OLD | NEW |