| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // The intrinsic code below is executed before a method has built its frame. | 5 // The intrinsic code below is executed before a method has built its frame. |
| 6 // The return address is on the stack and the arguments below it. | 6 // The return address is on the stack and the arguments below it. |
| 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. | 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. |
| 8 // Each intrinsification method returns true if the corresponding | 8 // Each intrinsification method returns true if the corresponding |
| 9 // Dart method was intrinsified. | 9 // Dart method was intrinsified. |
| 10 | 10 |
| (...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 // Set Isolate::user_tag_. | 1721 // Set Isolate::user_tag_. |
| 1722 __ movl(user_tag_addr, EBX); | 1722 __ movl(user_tag_addr, EBX); |
| 1723 __ ret(); | 1723 __ ret(); |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 | 1726 |
| 1727 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { | 1727 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { |
| 1728 Isolate* isolate = Isolate::Current(); | 1728 Isolate* isolate = Isolate::Current(); |
| 1729 const Address default_tag_addr = | 1729 const Address default_tag_addr = |
| 1730 Address::Absolute( | 1730 Address::Absolute( |
| 1731 reinterpret_cast<uword>(isolate->object_store()) + | 1731 reinterpret_cast<uword>(isolate) + Isolate::default_tag_offset()); |
| 1732 ObjectStore::default_tag_offset()); | |
| 1733 // Set return value. | 1732 // Set return value. |
| 1734 __ movl(EAX, default_tag_addr); | 1733 __ movl(EAX, default_tag_addr); |
| 1735 __ ret(); | 1734 __ ret(); |
| 1736 } | 1735 } |
| 1737 | 1736 |
| 1738 | 1737 |
| 1739 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 1738 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 1740 Isolate* isolate = Isolate::Current(); | 1739 Isolate* isolate = Isolate::Current(); |
| 1741 const Address current_tag_addr = | 1740 const Address current_tag_addr = |
| 1742 Address::Absolute(reinterpret_cast<uword>(isolate) + | 1741 Address::Absolute(reinterpret_cast<uword>(isolate) + |
| 1743 Isolate::current_tag_offset()); | 1742 Isolate::current_tag_offset()); |
| 1744 // Set return value to Isolate::current_tag_. | 1743 // Set return value to Isolate::current_tag_. |
| 1745 __ movl(EAX, current_tag_addr); | 1744 __ movl(EAX, current_tag_addr); |
| 1746 __ ret(); | 1745 __ ret(); |
| 1747 } | 1746 } |
| 1748 | 1747 |
| 1749 #undef __ | 1748 #undef __ |
| 1750 } // namespace dart | 1749 } // namespace dart |
| 1751 | 1750 |
| 1752 #endif // defined TARGET_ARCH_IA32 | 1751 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |