OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 | 645 |
646 // --------------------------------------------------------------------------- | 646 // --------------------------------------------------------------------------- |
647 // JavaScript invokes | 647 // JavaScript invokes |
648 | 648 |
649 // Invoke the JavaScript function code by either calling or jumping. | 649 // Invoke the JavaScript function code by either calling or jumping. |
650 void InvokeFunctionCode(Register function, Register new_target, | 650 void InvokeFunctionCode(Register function, Register new_target, |
651 const ParameterCount& expected, | 651 const ParameterCount& expected, |
652 const ParameterCount& actual, InvokeFlag flag, | 652 const ParameterCount& actual, InvokeFlag flag, |
653 const CallWrapper& call_wrapper); | 653 const CallWrapper& call_wrapper); |
654 | 654 |
655 void FloodFunctionIfStepping(Register fun, Register new_target, | |
656 const ParameterCount& expected, | |
657 const ParameterCount& actual); | |
658 | |
659 // Invoke the JavaScript function in the given register. Changes the | 655 // Invoke the JavaScript function in the given register. Changes the |
660 // current context to the context in the function before invoking. | 656 // current context to the context in the function before invoking. |
661 void InvokeFunction(Register function, | 657 void InvokeFunction(Register function, |
662 Register new_target, | 658 Register new_target, |
663 const ParameterCount& actual, | 659 const ParameterCount& actual, |
664 InvokeFlag flag, | 660 InvokeFlag flag, |
665 const CallWrapper& call_wrapper); | 661 const CallWrapper& call_wrapper); |
666 | 662 |
667 void InvokeFunction(Register function, | 663 void InvokeFunction(Register function, |
668 const ParameterCount& expected, | 664 const ParameterCount& expected, |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 1447 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
1452 | 1448 |
1453 // Helper functions for generating invokes. | 1449 // Helper functions for generating invokes. |
1454 void InvokePrologue(const ParameterCount& expected, | 1450 void InvokePrologue(const ParameterCount& expected, |
1455 const ParameterCount& actual, | 1451 const ParameterCount& actual, |
1456 Label* done, | 1452 Label* done, |
1457 bool* definitely_mismatches, | 1453 bool* definitely_mismatches, |
1458 InvokeFlag flag, | 1454 InvokeFlag flag, |
1459 const CallWrapper& call_wrapper); | 1455 const CallWrapper& call_wrapper); |
1460 | 1456 |
| 1457 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1458 const ParameterCount& expected, |
| 1459 const ParameterCount& actual); |
| 1460 |
1461 void InitializeNewString(Register string, | 1461 void InitializeNewString(Register string, |
1462 Register length, | 1462 Register length, |
1463 Heap::RootListIndex map_index, | 1463 Heap::RootListIndex map_index, |
1464 Register scratch1, | 1464 Register scratch1, |
1465 Register scratch2); | 1465 Register scratch2); |
1466 | 1466 |
1467 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1467 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1468 void InNewSpace(Register object, | 1468 void InNewSpace(Register object, |
1469 Register scratch, | 1469 Register scratch, |
1470 Condition cond, // eq for new space, ne otherwise. | 1470 Condition cond, // eq for new space, ne otherwise. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1550 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1551 #else | 1551 #else |
1552 #define ACCESS_MASM(masm) masm-> | 1552 #define ACCESS_MASM(masm) masm-> |
1553 #endif | 1553 #endif |
1554 | 1554 |
1555 | 1555 |
1556 } // namespace internal | 1556 } // namespace internal |
1557 } // namespace v8 | 1557 } // namespace v8 |
1558 | 1558 |
1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |