OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 summary->set_in(1, Location::RegisterLocation(R1)); | 2094 summary->set_in(1, Location::RegisterLocation(R1)); |
2095 summary->set_out(0, Location::RegisterLocation(R0)); | 2095 summary->set_out(0, Location::RegisterLocation(R0)); |
2096 return summary; | 2096 return summary; |
2097 } | 2097 } |
2098 | 2098 |
2099 | 2099 |
2100 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2100 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2101 ASSERT(locs()->in(0).reg() == R0); // Value. | 2101 ASSERT(locs()->in(0).reg() == R0); // Value. |
2102 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. | 2102 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. |
2103 | 2103 |
2104 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), | 2104 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs()); |
2105 locs()); | |
2106 ASSERT(locs()->out(0).reg() == R0); | 2105 ASSERT(locs()->out(0).reg() == R0); |
2107 } | 2106 } |
2108 | 2107 |
2109 | 2108 |
2110 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, | 2109 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, |
2111 bool opt) const { | 2110 bool opt) const { |
2112 const intptr_t kNumInputs = 2; | 2111 const intptr_t kNumInputs = 2; |
2113 const intptr_t kNumTemps = 0; | 2112 const intptr_t kNumTemps = 0; |
2114 LocationSummary* locs = new (zone) | 2113 LocationSummary* locs = new (zone) |
2115 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 2114 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
(...skipping 3918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6034 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 6033 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
6035 kGrowRegExpStackRuntimeEntry, 1, locs()); | 6034 kGrowRegExpStackRuntimeEntry, 1, locs()); |
6036 __ Drop(1); | 6035 __ Drop(1); |
6037 __ Pop(result); | 6036 __ Pop(result); |
6038 } | 6037 } |
6039 | 6038 |
6040 | 6039 |
6041 } // namespace dart | 6040 } // namespace dart |
6042 | 6041 |
6043 #endif // defined TARGET_ARCH_ARM64 | 6042 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |