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 1486 matching lines...) Loading... |
1497 | 1497 |
1498 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al, | 1498 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al, |
1499 CRegister cr = cr7); | 1499 CRegister cr = cr7); |
1500 | 1500 |
1501 // Helper functions for generating invokes. | 1501 // Helper functions for generating invokes. |
1502 void InvokePrologue(const ParameterCount& expected, | 1502 void InvokePrologue(const ParameterCount& expected, |
1503 const ParameterCount& actual, Label* done, | 1503 const ParameterCount& actual, Label* done, |
1504 bool* definitely_mismatches, InvokeFlag flag, | 1504 bool* definitely_mismatches, InvokeFlag flag, |
1505 const CallWrapper& call_wrapper); | 1505 const CallWrapper& call_wrapper); |
1506 | 1506 |
1507 void InitializeNewString(Register string, Register length, | |
1508 Heap::RootListIndex map_index, Register scratch1, | |
1509 Register scratch2); | |
1510 | |
1511 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1507 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1512 void InNewSpace(Register object, Register scratch, | 1508 void InNewSpace(Register object, Register scratch, |
1513 Condition cond, // eq for new space, ne otherwise. | 1509 Condition cond, // eq for new space, ne otherwise. |
1514 Label* branch); | 1510 Label* branch); |
1515 | 1511 |
1516 // Helper for finding the mark bits for an address. Afterwards, the | 1512 // Helper for finding the mark bits for an address. Afterwards, the |
1517 // bitmap register points at the word with the mark bits and the mask | 1513 // bitmap register points at the word with the mark bits and the mask |
1518 // the position of the first bit. Leaves addr_reg unchanged. | 1514 // the position of the first bit. Leaves addr_reg unchanged. |
1519 inline void GetMarkBits(Register addr_reg, Register bitmap_reg, | 1515 inline void GetMarkBits(Register addr_reg, Register bitmap_reg, |
1520 Register mask_reg); | 1516 Register mask_reg); |
(...skipping 59 matching lines...) Loading... |
1580 inline MemOperand NativeContextMemOperand() { | 1576 inline MemOperand NativeContextMemOperand() { |
1581 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1577 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
1582 } | 1578 } |
1583 | 1579 |
1584 #define ACCESS_MASM(masm) masm-> | 1580 #define ACCESS_MASM(masm) masm-> |
1585 | 1581 |
1586 } // namespace internal | 1582 } // namespace internal |
1587 } // namespace v8 | 1583 } // namespace v8 |
1588 | 1584 |
1589 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1585 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |