| 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 6765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6776 __ movl(EBX, FieldAddress(EAX, Function::entry_point_offset())); | 6776 __ movl(EBX, FieldAddress(EAX, Function::entry_point_offset())); |
| 6777 | 6777 |
| 6778 // EAX: Function. | 6778 // EAX: Function. |
| 6779 // EDX: Arguments descriptor array. | 6779 // EDX: Arguments descriptor array. |
| 6780 // ECX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). | 6780 // ECX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). |
| 6781 __ xorl(ECX, ECX); | 6781 __ xorl(ECX, ECX); |
| 6782 __ call(EBX); | 6782 __ call(EBX); |
| 6783 compiler->RecordSafepoint(locs()); | 6783 compiler->RecordSafepoint(locs()); |
| 6784 // Marks either the continuation point in unoptimized code or the | 6784 // Marks either the continuation point in unoptimized code or the |
| 6785 // deoptimization point in optimized code, after call. | 6785 // deoptimization point in optimized code, after call. |
| 6786 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); | 6786 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id()); |
| 6787 if (compiler->is_optimizing()) { | 6787 if (compiler->is_optimizing()) { |
| 6788 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); | 6788 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); |
| 6789 } | 6789 } |
| 6790 // Add deoptimization continuation point after the call and before the | 6790 // Add deoptimization continuation point after the call and before the |
| 6791 // arguments are removed. | 6791 // arguments are removed. |
| 6792 // In optimized code this descriptor is needed for exception handling. | 6792 // In optimized code this descriptor is needed for exception handling. |
| 6793 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6793 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
| 6794 deopt_id_after, | 6794 deopt_id_after, |
| 6795 token_pos()); | 6795 token_pos()); |
| 6796 __ Drop(argument_count); | 6796 __ Drop(argument_count); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6872 __ Drop(1); | 6872 __ Drop(1); |
| 6873 __ popl(result); | 6873 __ popl(result); |
| 6874 } | 6874 } |
| 6875 | 6875 |
| 6876 | 6876 |
| 6877 } // namespace dart | 6877 } // namespace dart |
| 6878 | 6878 |
| 6879 #undef __ | 6879 #undef __ |
| 6880 | 6880 |
| 6881 #endif // defined TARGET_ARCH_IA32 | 6881 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |