OLD | NEW |
1 | 1 |
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
7 #if defined(TARGET_ARCH_ARM) | 7 #if defined(TARGET_ARCH_ARM) |
8 | 8 |
9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
10 | 10 |
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2367 summary->set_in(1, Location::RegisterLocation(R1)); | 2367 summary->set_in(1, Location::RegisterLocation(R1)); |
2368 summary->set_out(0, Location::RegisterLocation(R0)); | 2368 summary->set_out(0, Location::RegisterLocation(R0)); |
2369 return summary; | 2369 return summary; |
2370 } | 2370 } |
2371 | 2371 |
2372 | 2372 |
2373 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2373 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2374 ASSERT(locs()->in(0).reg() == R0); // Value. | 2374 ASSERT(locs()->in(0).reg() == R0); // Value. |
2375 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. | 2375 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. |
2376 | 2376 |
2377 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs()); | 2377 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), |
| 2378 locs()); |
2378 ASSERT(locs()->out(0).reg() == R0); | 2379 ASSERT(locs()->out(0).reg() == R0); |
2379 } | 2380 } |
2380 | 2381 |
2381 | 2382 |
2382 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, | 2383 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, |
2383 bool opt) const { | 2384 bool opt) const { |
2384 const intptr_t kNumInputs = 2; | 2385 const intptr_t kNumInputs = 2; |
2385 const intptr_t kNumTemps = 0; | 2386 const intptr_t kNumTemps = 0; |
2386 LocationSummary* locs = new (zone) | 2387 LocationSummary* locs = new (zone) |
2387 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 2388 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
(...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7240 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 7241 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
7241 kGrowRegExpStackRuntimeEntry, 1, locs()); | 7242 kGrowRegExpStackRuntimeEntry, 1, locs()); |
7242 __ Drop(1); | 7243 __ Drop(1); |
7243 __ Pop(result); | 7244 __ Pop(result); |
7244 } | 7245 } |
7245 | 7246 |
7246 | 7247 |
7247 } // namespace dart | 7248 } // namespace dart |
7248 | 7249 |
7249 #endif // defined TARGET_ARCH_ARM | 7250 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |