| 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 void ResetRoundingMode(); | 547 void ResetRoundingMode(); |
| 548 | 548 |
| 549 // These exist to provide portability between 32 and 64bit | 549 // These exist to provide portability between 32 and 64bit |
| 550 void LoadP(Register dst, const MemOperand& mem, Register scratch = no_reg); | 550 void LoadP(Register dst, const MemOperand& mem, Register scratch = no_reg); |
| 551 void StoreP(Register src, const MemOperand& mem, Register scratch = no_reg); | 551 void StoreP(Register src, const MemOperand& mem, Register scratch = no_reg); |
| 552 | 552 |
| 553 // --------------------------------------------------------------------------- | 553 // --------------------------------------------------------------------------- |
| 554 // JavaScript invokes | 554 // JavaScript invokes |
| 555 | 555 |
| 556 // Invoke the JavaScript function code by either calling or jumping. | 556 // Invoke the JavaScript function code by either calling or jumping. |
| 557 void InvokeCode(Register code, const ParameterCount& expected, | 557 void InvokeCode(Register code, Register new_target, |
| 558 const ParameterCount& actual, InvokeFlag flag, | 558 const ParameterCount& expected, const ParameterCount& actual, |
| 559 const CallWrapper& call_wrapper); | 559 InvokeFlag flag, const CallWrapper& call_wrapper); |
| 560 | 560 |
| 561 // Invoke the JavaScript function in the given register. Changes the | 561 // Invoke the JavaScript function in the given register. Changes the |
| 562 // current context to the context in the function before invoking. | 562 // current context to the context in the function before invoking. |
| 563 void InvokeFunction(Register function, const ParameterCount& actual, | 563 void InvokeFunction(Register function, Register new_target, |
| 564 InvokeFlag flag, const CallWrapper& call_wrapper); | 564 const ParameterCount& actual, InvokeFlag flag, |
| 565 const CallWrapper& call_wrapper); |
| 565 | 566 |
| 566 void InvokeFunction(Register function, const ParameterCount& expected, | 567 void InvokeFunction(Register function, const ParameterCount& expected, |
| 567 const ParameterCount& actual, InvokeFlag flag, | 568 const ParameterCount& actual, InvokeFlag flag, |
| 568 const CallWrapper& call_wrapper); | 569 const CallWrapper& call_wrapper); |
| 569 | 570 |
| 570 void InvokeFunction(Handle<JSFunction> function, | 571 void InvokeFunction(Handle<JSFunction> function, |
| 571 const ParameterCount& expected, | 572 const ParameterCount& expected, |
| 572 const ParameterCount& actual, InvokeFlag flag, | 573 const ParameterCount& actual, InvokeFlag flag, |
| 573 const CallWrapper& call_wrapper); | 574 const CallWrapper& call_wrapper); |
| 574 | 575 |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 #define ACCESS_MASM(masm) \ | 1584 #define ACCESS_MASM(masm) \ |
| 1584 masm->stop(__FILE_LINE__); \ | 1585 masm->stop(__FILE_LINE__); \ |
| 1585 masm-> | 1586 masm-> |
| 1586 #else | 1587 #else |
| 1587 #define ACCESS_MASM(masm) masm-> | 1588 #define ACCESS_MASM(masm) masm-> |
| 1588 #endif | 1589 #endif |
| 1589 } // namespace internal | 1590 } // namespace internal |
| 1590 } // namespace v8 | 1591 } // namespace v8 |
| 1591 | 1592 |
| 1592 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1593 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |