| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 static void EmitEqualityAsInstanceCall(FlowGraphCompiler* compiler, | 323 static void EmitEqualityAsInstanceCall(FlowGraphCompiler* compiler, |
| 324 intptr_t deopt_id, | 324 intptr_t deopt_id, |
| 325 intptr_t token_pos, | 325 intptr_t token_pos, |
| 326 Token::Kind kind, | 326 Token::Kind kind, |
| 327 LocationSummary* locs) { | 327 LocationSummary* locs) { |
| 328 if (!compiler->is_optimizing()) { | 328 if (!compiler->is_optimizing()) { |
| 329 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore, | 329 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore, |
| 330 deopt_id, | 330 deopt_id, |
| 331 token_pos); | 331 token_pos); |
| 332 } | 332 } |
| 333 const String& operator_name = String::ZoneHandle(Symbols::New("==")); | 333 const String& operator_name = String::ZoneHandle(Symbols::EqualOperator()); |
| 334 const int kNumberOfArguments = 2; | 334 const int kNumberOfArguments = 2; |
| 335 const Array& kNoArgumentNames = Array::Handle(); | 335 const Array& kNoArgumentNames = Array::Handle(); |
| 336 const int kNumArgumentsChecked = 2; | 336 const int kNumArgumentsChecked = 2; |
| 337 | 337 |
| 338 const Immediate raw_null = | 338 const Immediate raw_null = |
| 339 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 339 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
| 340 Label check_identity; | 340 Label check_identity; |
| 341 __ cmpq(Address(RSP, 0 * kWordSize), raw_null); | 341 __ cmpq(Address(RSP, 0 * kWordSize), raw_null); |
| 342 __ j(EQUAL, &check_identity, Assembler::kNearJump); | 342 __ j(EQUAL, &check_identity, Assembler::kNearJump); |
| 343 __ cmpq(Address(RSP, 1 * kWordSize), raw_null); | 343 __ cmpq(Address(RSP, 1 * kWordSize), raw_null); |
| (...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2292 | 2292 |
| 2293 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2293 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2294 UNIMPLEMENTED(); | 2294 UNIMPLEMENTED(); |
| 2295 } | 2295 } |
| 2296 | 2296 |
| 2297 } // namespace dart | 2297 } // namespace dart |
| 2298 | 2298 |
| 2299 #undef __ | 2299 #undef __ |
| 2300 | 2300 |
| 2301 #endif // defined TARGET_ARCH_X64 | 2301 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |