| 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 "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2038 summary->set_in(1, Location::RegisterLocation(RDX)); | 2038 summary->set_in(1, Location::RegisterLocation(RDX)); |
| 2039 summary->set_out(0, Location::RegisterLocation(RAX)); | 2039 summary->set_out(0, Location::RegisterLocation(RAX)); |
| 2040 return summary; | 2040 return summary; |
| 2041 } | 2041 } |
| 2042 | 2042 |
| 2043 | 2043 |
| 2044 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2044 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2045 ASSERT(locs()->in(0).reg() == RAX); // Value. | 2045 ASSERT(locs()->in(0).reg() == RAX); // Value. |
| 2046 ASSERT(locs()->in(1).reg() == RDX); // Instantiator type arguments. | 2046 ASSERT(locs()->in(1).reg() == RDX); // Instantiator type arguments. |
| 2047 | 2047 |
| 2048 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs()); | 2048 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), |
| 2049 locs()); |
| 2049 ASSERT(locs()->out(0).reg() == RAX); | 2050 ASSERT(locs()->out(0).reg() == RAX); |
| 2050 } | 2051 } |
| 2051 | 2052 |
| 2052 | 2053 |
| 2053 // TODO(srdjan): In case of constant inputs make CreateArray kNoCall and | 2054 // TODO(srdjan): In case of constant inputs make CreateArray kNoCall and |
| 2054 // use slow path stub. | 2055 // use slow path stub. |
| 2055 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, | 2056 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, |
| 2056 bool opt) const { | 2057 bool opt) const { |
| 2057 const intptr_t kNumInputs = 2; | 2058 const intptr_t kNumInputs = 2; |
| 2058 const intptr_t kNumTemps = 0; | 2059 const intptr_t kNumTemps = 0; |
| (...skipping 4704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6763 __ Drop(1); | 6764 __ Drop(1); |
| 6764 __ popq(result); | 6765 __ popq(result); |
| 6765 } | 6766 } |
| 6766 | 6767 |
| 6767 | 6768 |
| 6768 } // namespace dart | 6769 } // namespace dart |
| 6769 | 6770 |
| 6770 #undef __ | 6771 #undef __ |
| 6771 | 6772 |
| 6772 #endif // defined TARGET_ARCH_X64 | 6773 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |