| 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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 void CheckEnumCache(Label* call_runtime); | 1502 void CheckEnumCache(Label* call_runtime); |
| 1503 | 1503 |
| 1504 // AllocationMemento support. Arrays may have an associated | 1504 // AllocationMemento support. Arrays may have an associated |
| 1505 // AllocationMemento object that can be checked for in order to pretransition | 1505 // AllocationMemento object that can be checked for in order to pretransition |
| 1506 // to another type. | 1506 // to another type. |
| 1507 // On entry, receiver_reg should point to the array object. | 1507 // On entry, receiver_reg should point to the array object. |
| 1508 // scratch_reg gets clobbered. | 1508 // scratch_reg gets clobbered. |
| 1509 // If allocation info is present, condition flags are set to eq. | 1509 // If allocation info is present, condition flags are set to eq. |
| 1510 void TestJSArrayForAllocationMemento(Register receiver_reg, | 1510 void TestJSArrayForAllocationMemento(Register receiver_reg, |
| 1511 Register scratch_reg, | 1511 Register scratch_reg, |
| 1512 Register scratch2_reg, |
| 1512 Label* no_memento_found); | 1513 Label* no_memento_found); |
| 1513 | 1514 |
| 1514 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, | 1515 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, |
| 1515 Register scratch_reg, | 1516 Register scratch_reg, |
| 1517 Register scratch2_reg, |
| 1516 Label* memento_found) { | 1518 Label* memento_found) { |
| 1517 Label no_memento_found; | 1519 Label no_memento_found; |
| 1518 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, | 1520 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, scratch2_reg, |
| 1519 &no_memento_found); | 1521 &no_memento_found); |
| 1520 beq(memento_found); | 1522 beq(memento_found); |
| 1521 bind(&no_memento_found); | 1523 bind(&no_memento_found); |
| 1522 } | 1524 } |
| 1523 | 1525 |
| 1524 // Jumps to found label if a prototype map has dictionary elements. | 1526 // Jumps to found label if a prototype map has dictionary elements. |
| 1525 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 1527 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
| 1526 Register scratch1, Label* found); | 1528 Register scratch1, Label* found); |
| 1527 | 1529 |
| 1528 // Loads the constant pool pointer (kConstantPoolRegister). | 1530 // Loads the constant pool pointer (kConstantPoolRegister). |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 #define ACCESS_MASM(masm) \ | 1640 #define ACCESS_MASM(masm) \ |
| 1639 masm->stop(__FILE_LINE__); \ | 1641 masm->stop(__FILE_LINE__); \ |
| 1640 masm-> | 1642 masm-> |
| 1641 #else | 1643 #else |
| 1642 #define ACCESS_MASM(masm) masm-> | 1644 #define ACCESS_MASM(masm) masm-> |
| 1643 #endif | 1645 #endif |
| 1644 } // namespace internal | 1646 } // namespace internal |
| 1645 } // namespace v8 | 1647 } // namespace v8 |
| 1646 | 1648 |
| 1647 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1649 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |