| 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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 rlwinm(dst, src, rotate, kBitsPerPointer - start - 1, | 1409 rlwinm(dst, src, rotate, kBitsPerPointer - start - 1, |
| 1410 kBitsPerPointer - end - 1); | 1410 kBitsPerPointer - end - 1); |
| 1411 #endif | 1411 #endif |
| 1412 } | 1412 } |
| 1413 | 1413 |
| 1414 template <typename Field> | 1414 template <typename Field> |
| 1415 void DecodeFieldToSmi(Register reg) { | 1415 void DecodeFieldToSmi(Register reg) { |
| 1416 DecodeFieldToSmi<Field>(reg, reg); | 1416 DecodeFieldToSmi<Field>(reg, reg); |
| 1417 } | 1417 } |
| 1418 | 1418 |
| 1419 // Load the type feedback vector from a JavaScript frame. |
| 1420 void EmitLoadTypeFeedbackVector(Register vector); |
| 1421 |
| 1419 // Activation support. | 1422 // Activation support. |
| 1420 void EnterFrame(StackFrame::Type type, | 1423 void EnterFrame(StackFrame::Type type, |
| 1421 bool load_constant_pool_pointer_reg = false); | 1424 bool load_constant_pool_pointer_reg = false); |
| 1422 // Returns the pc offset at which the frame ends. | 1425 // Returns the pc offset at which the frame ends. |
| 1423 int LeaveFrame(StackFrame::Type type, int stack_adjustment = 0); | 1426 int LeaveFrame(StackFrame::Type type, int stack_adjustment = 0); |
| 1424 | 1427 |
| 1425 // Expects object in r0 and returns map with validated enum cache | 1428 // Expects object in r0 and returns map with validated enum cache |
| 1426 // in r0. Assumes that any other register can be used as a scratch. | 1429 // in r0. Assumes that any other register can be used as a scratch. |
| 1427 void CheckEnumCache(Register null_value, Label* call_runtime); | 1430 void CheckEnumCache(Register null_value, Label* call_runtime); |
| 1428 | 1431 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 #define ACCESS_MASM(masm) \ | 1566 #define ACCESS_MASM(masm) \ |
| 1564 masm->stop(__FILE_LINE__); \ | 1567 masm->stop(__FILE_LINE__); \ |
| 1565 masm-> | 1568 masm-> |
| 1566 #else | 1569 #else |
| 1567 #define ACCESS_MASM(masm) masm-> | 1570 #define ACCESS_MASM(masm) masm-> |
| 1568 #endif | 1571 #endif |
| 1569 } // namespace internal | 1572 } // namespace internal |
| 1570 } // namespace v8 | 1573 } // namespace v8 |
| 1571 | 1574 |
| 1572 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1575 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |