| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 : -1; | 596 : -1; |
| 597 DCHECK((type == -1) || | 597 DCHECK((type == -1) || |
| 598 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); | 598 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); |
| 599 return type; | 599 return type; |
| 600 } | 600 } |
| 601 | 601 |
| 602 | 602 |
| 603 // --------------------------------------------------------------------------- | 603 // --------------------------------------------------------------------------- |
| 604 // Allocation support | 604 // Allocation support |
| 605 | 605 |
| 606 // Allocate an object in new space or old pointer space. The object_size is | 606 // Allocate an object in new space or old space. The object_size is |
| 607 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS | 607 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS |
| 608 // is passed. If the space is exhausted control continues at the gc_required | 608 // is passed. If the space is exhausted control continues at the gc_required |
| 609 // label. The allocated object is returned in result. If the flag | 609 // label. The allocated object is returned in result. If the flag |
| 610 // tag_allocated_object is true the result is tagged as as a heap object. | 610 // tag_allocated_object is true the result is tagged as as a heap object. |
| 611 // All registers are clobbered also when control continues at the gc_required | 611 // All registers are clobbered also when control continues at the gc_required |
| 612 // label. | 612 // label. |
| 613 void Allocate(int object_size, Register result, Register scratch1, | 613 void Allocate(int object_size, Register result, Register scratch1, |
| 614 Register scratch2, Label* gc_required, AllocationFlags flags); | 614 Register scratch2, Label* gc_required, AllocationFlags flags); |
| 615 | 615 |
| 616 void Allocate(Register object_size, Register result, Register scratch1, | 616 void Allocate(Register object_size, Register result, Register scratch1, |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 #define ACCESS_MASM(masm) \ | 1549 #define ACCESS_MASM(masm) \ |
| 1550 masm->stop(__FILE_LINE__); \ | 1550 masm->stop(__FILE_LINE__); \ |
| 1551 masm-> | 1551 masm-> |
| 1552 #else | 1552 #else |
| 1553 #define ACCESS_MASM(masm) masm-> | 1553 #define ACCESS_MASM(masm) masm-> |
| 1554 #endif | 1554 #endif |
| 1555 } | 1555 } |
| 1556 } // namespace v8::internal | 1556 } // namespace v8::internal |
| 1557 | 1557 |
| 1558 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1558 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |