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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 void InitializeRootRegister() { | 633 void InitializeRootRegister() { |
634 ExternalReference roots_array_start = | 634 ExternalReference roots_array_start = |
635 ExternalReference::roots_array_start(isolate()); | 635 ExternalReference::roots_array_start(isolate()); |
636 mov(kRootRegister, Operand(roots_array_start)); | 636 mov(kRootRegister, Operand(roots_array_start)); |
637 } | 637 } |
638 | 638 |
639 // --------------------------------------------------------------------------- | 639 // --------------------------------------------------------------------------- |
640 // JavaScript invokes | 640 // JavaScript invokes |
641 | 641 |
642 // Invoke the JavaScript function code by either calling or jumping. | 642 // Invoke the JavaScript function code by either calling or jumping. |
643 void InvokeCode(Register code, | 643 void InvokeFunctionCode(Register function, Register new_target, |
644 Register new_target, | 644 const ParameterCount& expected, |
645 const ParameterCount& expected, | 645 const ParameterCount& actual, InvokeFlag flag, |
646 const ParameterCount& actual, | 646 const CallWrapper& call_wrapper); |
647 InvokeFlag flag, | |
648 const CallWrapper& call_wrapper); | |
649 | 647 |
650 // Invoke the JavaScript function in the given register. Changes the | 648 // Invoke the JavaScript function in the given register. Changes the |
651 // current context to the context in the function before invoking. | 649 // current context to the context in the function before invoking. |
652 void InvokeFunction(Register function, | 650 void InvokeFunction(Register function, |
653 Register new_target, | 651 Register new_target, |
654 const ParameterCount& actual, | 652 const ParameterCount& actual, |
655 InvokeFlag flag, | 653 InvokeFlag flag, |
656 const CallWrapper& call_wrapper); | 654 const CallWrapper& call_wrapper); |
657 | 655 |
658 void InvokeFunction(Register function, | 656 void InvokeFunction(Register function, |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 1447 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
1450 | 1448 |
1451 // Helper functions for generating invokes. | 1449 // Helper functions for generating invokes. |
1452 void InvokePrologue(const ParameterCount& expected, | 1450 void InvokePrologue(const ParameterCount& expected, |
1453 const ParameterCount& actual, | 1451 const ParameterCount& actual, |
1454 Label* done, | 1452 Label* done, |
1455 bool* definitely_mismatches, | 1453 bool* definitely_mismatches, |
1456 InvokeFlag flag, | 1454 InvokeFlag flag, |
1457 const CallWrapper& call_wrapper); | 1455 const CallWrapper& call_wrapper); |
1458 | 1456 |
| 1457 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1458 const ParameterCount& expected, |
| 1459 const ParameterCount& actual); |
| 1460 |
1459 void InitializeNewString(Register string, | 1461 void InitializeNewString(Register string, |
1460 Register length, | 1462 Register length, |
1461 Heap::RootListIndex map_index, | 1463 Heap::RootListIndex map_index, |
1462 Register scratch1, | 1464 Register scratch1, |
1463 Register scratch2); | 1465 Register scratch2); |
1464 | 1466 |
1465 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1467 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1466 void InNewSpace(Register object, | 1468 void InNewSpace(Register object, |
1467 Register scratch, | 1469 Register scratch, |
1468 Condition cond, // eq for new space, ne otherwise. | 1470 Condition cond, // eq for new space, ne otherwise. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1550 #else | 1552 #else |
1551 #define ACCESS_MASM(masm) masm-> | 1553 #define ACCESS_MASM(masm) masm-> |
1552 #endif | 1554 #endif |
1553 | 1555 |
1554 | 1556 |
1555 } // namespace internal | 1557 } // namespace internal |
1556 } // namespace v8 | 1558 } // namespace v8 |
1557 | 1559 |
1558 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1560 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |