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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "lib/error.h" | 10 #include "lib/error.h" |
(...skipping 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3941 // descriptor. | 3941 // descriptor. |
3942 Register temp_reg = locs()->temp(0).reg(); | 3942 Register temp_reg = locs()->temp(0).reg(); |
3943 int argument_count = ArgumentCount(); | 3943 int argument_count = ArgumentCount(); |
3944 const Array& arguments_descriptor = | 3944 const Array& arguments_descriptor = |
3945 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 3945 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
3946 argument_names())); | 3946 argument_names())); |
3947 __ LoadObject(temp_reg, arguments_descriptor); | 3947 __ LoadObject(temp_reg, arguments_descriptor); |
3948 compiler->GenerateDartCall(deopt_id(), | 3948 compiler->GenerateDartCall(deopt_id(), |
3949 token_pos(), | 3949 token_pos(), |
3950 &StubCode::CallClosureFunctionLabel(), | 3950 &StubCode::CallClosureFunctionLabel(), |
3951 PcDescriptors::kOther, | 3951 PcDescriptors::kClosureCall, |
3952 locs()); | 3952 locs()); |
3953 __ Drop(argument_count); | 3953 __ Drop(argument_count); |
3954 } | 3954 } |
3955 | 3955 |
3956 | 3956 |
3957 LocationSummary* BooleanNegateInstr::MakeLocationSummary() const { | 3957 LocationSummary* BooleanNegateInstr::MakeLocationSummary() const { |
3958 return LocationSummary::Make(1, | 3958 return LocationSummary::Make(1, |
3959 Location::RequiresRegister(), | 3959 Location::RequiresRegister(), |
3960 LocationSummary::kNoCall); | 3960 LocationSummary::kNoCall); |
3961 } | 3961 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4052 PcDescriptors::kOther, | 4052 PcDescriptors::kOther, |
4053 locs()); | 4053 locs()); |
4054 __ Drop(2); // Discard type arguments and receiver. | 4054 __ Drop(2); // Discard type arguments and receiver. |
4055 } | 4055 } |
4056 | 4056 |
4057 } // namespace dart | 4057 } // namespace dart |
4058 | 4058 |
4059 #undef __ | 4059 #undef __ |
4060 | 4060 |
4061 #endif // defined TARGET_ARCH_X64 | 4061 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |