| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 587 |
| 588 void InitializeRootRegister() { | 588 void InitializeRootRegister() { |
| 589 ExternalReference roots_array_start = | 589 ExternalReference roots_array_start = |
| 590 ExternalReference::roots_array_start(isolate()); | 590 ExternalReference::roots_array_start(isolate()); |
| 591 mov(kRootRegister, Operand(roots_array_start)); | 591 mov(kRootRegister, Operand(roots_array_start)); |
| 592 } | 592 } |
| 593 | 593 |
| 594 // --------------------------------------------------------------------------- | 594 // --------------------------------------------------------------------------- |
| 595 // JavaScript invokes | 595 // JavaScript invokes |
| 596 | 596 |
| 597 // Set up call kind marking in ecx. The method takes ecx as an | |
| 598 // explicit first parameter to make the code more readable at the | |
| 599 // call sites. | |
| 600 void SetCallKind(Register dst, CallKind kind); | |
| 601 | |
| 602 // Invoke the JavaScript function code by either calling or jumping. | 597 // Invoke the JavaScript function code by either calling or jumping. |
| 603 void InvokeCode(Register code, | 598 void InvokeCode(Register code, |
| 604 const ParameterCount& expected, | 599 const ParameterCount& expected, |
| 605 const ParameterCount& actual, | 600 const ParameterCount& actual, |
| 606 InvokeFlag flag, | 601 InvokeFlag flag, |
| 607 const CallWrapper& call_wrapper, | 602 const CallWrapper& call_wrapper); |
| 608 CallKind call_kind); | |
| 609 | 603 |
| 610 void InvokeCode(Handle<Code> code, | 604 void InvokeCode(Handle<Code> code, |
| 611 const ParameterCount& expected, | 605 const ParameterCount& expected, |
| 612 const ParameterCount& actual, | 606 const ParameterCount& actual, |
| 613 RelocInfo::Mode rmode, | 607 RelocInfo::Mode rmode, |
| 614 InvokeFlag flag, | 608 InvokeFlag flag); |
| 615 CallKind call_kind); | |
| 616 | 609 |
| 617 // Invoke the JavaScript function in the given register. Changes the | 610 // Invoke the JavaScript function in the given register. Changes the |
| 618 // current context to the context in the function before invoking. | 611 // current context to the context in the function before invoking. |
| 619 void InvokeFunction(Register function, | 612 void InvokeFunction(Register function, |
| 620 const ParameterCount& actual, | 613 const ParameterCount& actual, |
| 621 InvokeFlag flag, | 614 InvokeFlag flag, |
| 622 const CallWrapper& call_wrapper, | 615 const CallWrapper& call_wrapper); |
| 623 CallKind call_kind); | |
| 624 | 616 |
| 625 void InvokeFunction(Register function, | 617 void InvokeFunction(Register function, |
| 626 const ParameterCount& expected, | 618 const ParameterCount& expected, |
| 627 const ParameterCount& actual, | 619 const ParameterCount& actual, |
| 628 InvokeFlag flag, | 620 InvokeFlag flag, |
| 629 const CallWrapper& call_wrapper, | 621 const CallWrapper& call_wrapper); |
| 630 CallKind call_kind); | |
| 631 | 622 |
| 632 void InvokeFunction(Handle<JSFunction> function, | 623 void InvokeFunction(Handle<JSFunction> function, |
| 633 const ParameterCount& expected, | 624 const ParameterCount& expected, |
| 634 const ParameterCount& actual, | 625 const ParameterCount& actual, |
| 635 InvokeFlag flag, | 626 InvokeFlag flag, |
| 636 const CallWrapper& call_wrapper, | 627 const CallWrapper& call_wrapper); |
| 637 CallKind call_kind); | |
| 638 | 628 |
| 639 void IsObjectJSObjectType(Register heap_object, | 629 void IsObjectJSObjectType(Register heap_object, |
| 640 Register map, | 630 Register map, |
| 641 Register scratch, | 631 Register scratch, |
| 642 Label* fail); | 632 Label* fail); |
| 643 | 633 |
| 644 void IsInstanceJSObjectType(Register map, | 634 void IsInstanceJSObjectType(Register map, |
| 645 Register scratch, | 635 Register scratch, |
| 646 Label* fail); | 636 Label* fail); |
| 647 | 637 |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 1438 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| 1449 | 1439 |
| 1450 // Helper functions for generating invokes. | 1440 // Helper functions for generating invokes. |
| 1451 void InvokePrologue(const ParameterCount& expected, | 1441 void InvokePrologue(const ParameterCount& expected, |
| 1452 const ParameterCount& actual, | 1442 const ParameterCount& actual, |
| 1453 Handle<Code> code_constant, | 1443 Handle<Code> code_constant, |
| 1454 Register code_reg, | 1444 Register code_reg, |
| 1455 Label* done, | 1445 Label* done, |
| 1456 bool* definitely_mismatches, | 1446 bool* definitely_mismatches, |
| 1457 InvokeFlag flag, | 1447 InvokeFlag flag, |
| 1458 const CallWrapper& call_wrapper, | 1448 const CallWrapper& call_wrapper); |
| 1459 CallKind call_kind); | |
| 1460 | 1449 |
| 1461 void InitializeNewString(Register string, | 1450 void InitializeNewString(Register string, |
| 1462 Register length, | 1451 Register length, |
| 1463 Heap::RootListIndex map_index, | 1452 Heap::RootListIndex map_index, |
| 1464 Register scratch1, | 1453 Register scratch1, |
| 1465 Register scratch2); | 1454 Register scratch2); |
| 1466 | 1455 |
| 1467 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1456 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
| 1468 void InNewSpace(Register object, | 1457 void InNewSpace(Register object, |
| 1469 Register scratch, | 1458 Register scratch, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1543 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1555 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1544 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1556 #else | 1545 #else |
| 1557 #define ACCESS_MASM(masm) masm-> | 1546 #define ACCESS_MASM(masm) masm-> |
| 1558 #endif | 1547 #endif |
| 1559 | 1548 |
| 1560 | 1549 |
| 1561 } } // namespace v8::internal | 1550 } } // namespace v8::internal |
| 1562 | 1551 |
| 1563 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1552 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |