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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 } | 356 } |
357 const String& operator_name = String::ZoneHandle(Symbols::EqualOperator()); | 357 const String& operator_name = String::ZoneHandle(Symbols::EqualOperator()); |
358 const int kNumberOfArguments = 2; | 358 const int kNumberOfArguments = 2; |
359 const Array& kNoArgumentNames = Array::Handle(); | 359 const Array& kNoArgumentNames = Array::Handle(); |
360 const int kNumArgumentsChecked = 2; | 360 const int kNumArgumentsChecked = 2; |
361 | 361 |
362 const Immediate raw_null = | 362 const Immediate raw_null = |
363 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 363 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
364 Label check_identity; | 364 Label check_identity; |
365 __ cmpq(Address(RSP, 0 * kWordSize), raw_null); | 365 __ cmpq(Address(RSP, 0 * kWordSize), raw_null); |
366 __ j(EQUAL, &check_identity, Assembler::kNearJump); | 366 __ j(EQUAL, &check_identity); |
367 __ cmpq(Address(RSP, 1 * kWordSize), raw_null); | 367 __ cmpq(Address(RSP, 1 * kWordSize), raw_null); |
368 __ j(EQUAL, &check_identity, Assembler::kNearJump); | 368 __ j(EQUAL, &check_identity); |
369 | 369 |
370 ICData& equality_ic_data = ICData::ZoneHandle(original_ic_data.raw()); | 370 ICData& equality_ic_data = ICData::ZoneHandle(original_ic_data.raw()); |
371 if (compiler->is_optimizing() && FLAG_propagate_ic_data) { | 371 if (compiler->is_optimizing() && FLAG_propagate_ic_data) { |
372 ASSERT(!original_ic_data.IsNull()); | 372 ASSERT(!original_ic_data.IsNull()); |
373 if (original_ic_data.NumberOfChecks() == 0) { | 373 if (original_ic_data.NumberOfChecks() == 0) { |
374 // IC call for reoptimization populates original ICData. | 374 // IC call for reoptimization populates original ICData. |
375 equality_ic_data = original_ic_data.raw(); | 375 equality_ic_data = original_ic_data.raw(); |
376 } else { | 376 } else { |
377 // Megamorphic call. | 377 // Megamorphic call. |
378 equality_ic_data = original_ic_data.AsUnaryClassChecks(); | 378 equality_ic_data = original_ic_data.AsUnaryClassChecks(); |
(...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2434 | 2434 |
2435 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2435 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2436 UNIMPLEMENTED(); | 2436 UNIMPLEMENTED(); |
2437 } | 2437 } |
2438 | 2438 |
2439 } // namespace dart | 2439 } // namespace dart |
2440 | 2440 |
2441 #undef __ | 2441 #undef __ |
2442 | 2442 |
2443 #endif // defined TARGET_ARCH_X64 | 2443 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |