| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 ASSERT(!original_ic_data.IsNull()); | 371 ASSERT(!original_ic_data.IsNull()); |
| 372 if (original_ic_data.NumberOfChecks() == 0) { | 372 if (original_ic_data.NumberOfChecks() == 0) { |
| 373 // IC call for reoptimization populates original ICData. | 373 // IC call for reoptimization populates original ICData. |
| 374 equality_ic_data = original_ic_data.raw(); | 374 equality_ic_data = original_ic_data.raw(); |
| 375 } else { | 375 } else { |
| 376 // Megamorphic call. | 376 // Megamorphic call. |
| 377 equality_ic_data = original_ic_data.AsUnaryClassChecks(); | 377 equality_ic_data = original_ic_data.AsUnaryClassChecks(); |
| 378 } | 378 } |
| 379 } else { | 379 } else { |
| 380 equality_ic_data = ICData::New(compiler->parsed_function().function(), | 380 equality_ic_data = ICData::New(compiler->parsed_function().function(), |
| 381 Symbols::EqualOperatorHandle(), | 381 Symbols::EqualOperator(), |
| 382 deopt_id, | 382 deopt_id, |
| 383 kNumArgumentsChecked); | 383 kNumArgumentsChecked); |
| 384 } | 384 } |
| 385 compiler->GenerateInstanceCall(deopt_id, | 385 compiler->GenerateInstanceCall(deopt_id, |
| 386 token_pos, | 386 token_pos, |
| 387 kNumberOfArguments, | 387 kNumberOfArguments, |
| 388 kNoArgumentNames, | 388 kNoArgumentNames, |
| 389 locs, | 389 locs, |
| 390 equality_ic_data); | 390 equality_ic_data); |
| 391 Label check_ne; | 391 Label check_ne; |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 | 1004 |
| 1005 | 1005 |
| 1006 void StringFromCharCodeInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1006 void StringFromCharCodeInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1007 Register char_code = locs()->in(0).reg(); | 1007 Register char_code = locs()->in(0).reg(); |
| 1008 Register result = locs()->out().reg(); | 1008 Register result = locs()->out().reg(); |
| 1009 __ movq(result, | 1009 __ movq(result, |
| 1010 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress()))); | 1010 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress()))); |
| 1011 __ movq(result, Address(result, | 1011 __ movq(result, Address(result, |
| 1012 char_code, | 1012 char_code, |
| 1013 TIMES_HALF_WORD_SIZE, // Char code is a smi. | 1013 TIMES_HALF_WORD_SIZE, // Char code is a smi. |
| 1014 Symbols::kNullCharId * kWordSize)); | 1014 Symbols::kNullCharCodeSymbolOffset * kWordSize)); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 | 1017 |
| 1018 LocationSummary* LoadIndexedInstr::MakeLocationSummary() const { | 1018 LocationSummary* LoadIndexedInstr::MakeLocationSummary() const { |
| 1019 const intptr_t kNumInputs = 2; | 1019 const intptr_t kNumInputs = 2; |
| 1020 const intptr_t kNumTemps = 0; | 1020 const intptr_t kNumTemps = 0; |
| 1021 LocationSummary* locs = | 1021 LocationSummary* locs = |
| 1022 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 1022 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 1023 locs->set_in(0, Location::RequiresRegister()); | 1023 locs->set_in(0, Location::RequiresRegister()); |
| 1024 locs->set_in(1, CanBeImmediateIndex(index()) | 1024 locs->set_in(1, CanBeImmediateIndex(index()) |
| (...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2464 | 2464 |
| 2465 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2465 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2466 UNIMPLEMENTED(); | 2466 UNIMPLEMENTED(); |
| 2467 } | 2467 } |
| 2468 | 2468 |
| 2469 } // namespace dart | 2469 } // namespace dart |
| 2470 | 2470 |
| 2471 #undef __ | 2471 #undef __ |
| 2472 | 2472 |
| 2473 #endif // defined TARGET_ARCH_X64 | 2473 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |