| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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_IA32_MACRO_ASSEMBLER_IA32_H_ | 28 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 29 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 29 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 // Convenience for platform-independent signatures. We do not normally | 47 // Convenience for platform-independent signatures. We do not normally |
| 37 // distinguish memory operands from other operands on ia32. | 48 // distinguish memory operands from other operands on ia32. |
| 38 typedef Operand MemOperand; | 49 typedef Operand MemOperand; |
| 39 | 50 |
| 40 // Forward declaration. | 51 // Forward declaration. |
| 41 class JumpTarget; | 52 class JumpTarget; |
| 42 | 53 |
| 43 // MacroAssembler implements a collection of frequently used macros. | 54 // MacroAssembler implements a collection of frequently used macros. |
| 44 class MacroAssembler: public Assembler { | 55 class MacroAssembler: public Assembler { |
| 45 public: | 56 public: |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 } \ | 596 } \ |
| 586 masm-> | 597 masm-> |
| 587 #else | 598 #else |
| 588 #define ACCESS_MASM(masm) masm-> | 599 #define ACCESS_MASM(masm) masm-> |
| 589 #endif | 600 #endif |
| 590 | 601 |
| 591 | 602 |
| 592 } } // namespace v8::internal | 603 } } // namespace v8::internal |
| 593 | 604 |
| 594 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 605 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |