| 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 6867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6878 // EBX: Code (compiled code or lazy compile stub). | 6878 // EBX: Code (compiled code or lazy compile stub). |
| 6879 ASSERT(locs()->in(0).reg() == EAX); | 6879 ASSERT(locs()->in(0).reg() == EAX); |
| 6880 __ movl(EBX, FieldAddress(EAX, Function::instructions_offset())); | 6880 __ movl(EBX, FieldAddress(EAX, Function::instructions_offset())); |
| 6881 | 6881 |
| 6882 // EAX: Function. | 6882 // EAX: Function. |
| 6883 // EDX: Arguments descriptor array. | 6883 // EDX: Arguments descriptor array. |
| 6884 // ECX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). | 6884 // ECX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). |
| 6885 __ xorl(ECX, ECX); | 6885 __ xorl(ECX, ECX); |
| 6886 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); | 6886 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); |
| 6887 __ call(EBX); | 6887 __ call(EBX); |
| 6888 compiler->RecordCallInfo(token_pos(), | 6888 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall, |
| 6889 RawPcDescriptors::kClosureCall, | 6889 deopt_id(), |
| 6890 deopt_id(), | 6890 token_pos()); |
| 6891 locs(), | 6891 compiler->RecordSafepoint(locs()); |
| 6892 locs()->input_count()); | 6892 // Marks either the continuation point in unoptimized code or the |
| 6893 // deoptimization point in optimized code, after call. |
| 6894 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); |
| 6895 if (compiler->is_optimizing()) { |
| 6896 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); |
| 6897 } else { |
| 6898 // Add deoptimization continuation point after the call and before the |
| 6899 // arguments are removed. |
| 6900 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
| 6901 deopt_id_after, |
| 6902 token_pos()); |
| 6903 } |
| 6893 __ Drop(argument_count); | 6904 __ Drop(argument_count); |
| 6894 } | 6905 } |
| 6895 | 6906 |
| 6896 | 6907 |
| 6897 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Isolate* isolate, | 6908 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Isolate* isolate, |
| 6898 bool opt) const { | 6909 bool opt) const { |
| 6899 return LocationSummary::Make(isolate, | 6910 return LocationSummary::Make(isolate, |
| 6900 1, | 6911 1, |
| 6901 Location::RequiresRegister(), | 6912 Location::RequiresRegister(), |
| 6902 LocationSummary::kNoCall); | 6913 LocationSummary::kNoCall); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6945 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6956 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6946 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6957 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6947 #endif | 6958 #endif |
| 6948 } | 6959 } |
| 6949 | 6960 |
| 6950 } // namespace dart | 6961 } // namespace dart |
| 6951 | 6962 |
| 6952 #undef __ | 6963 #undef __ |
| 6953 | 6964 |
| 6954 #endif // defined TARGET_ARCH_IA32 | 6965 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |