| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 locs->set_in(kLengthPos, Location::RegisterLocation(R2)); | 1970 locs->set_in(kLengthPos, Location::RegisterLocation(R2)); |
| 1971 locs->set_out(0, Location::RegisterLocation(R0)); | 1971 locs->set_out(0, Location::RegisterLocation(R0)); |
| 1972 return locs; | 1972 return locs; |
| 1973 } | 1973 } |
| 1974 | 1974 |
| 1975 | 1975 |
| 1976 void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1976 void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1977 // Allocate the array. R2 = length, R1 = element type. | 1977 // Allocate the array. R2 = length, R1 = element type. |
| 1978 ASSERT(locs()->in(kElementTypePos).reg() == R1); | 1978 ASSERT(locs()->in(kElementTypePos).reg() == R1); |
| 1979 ASSERT(locs()->in(kLengthPos).reg() == R2); | 1979 ASSERT(locs()->in(kLengthPos).reg() == R2); |
| 1980 StubCode* stub_code = compiler->isolate()->stub_code(); | 1980 Isolate* isolate = compiler->isolate(); |
| 1981 const Code& stub = Code::Handle( |
| 1982 isolate, isolate->stub_code()->GetAllocateArrayStub()); |
| 1983 const ExternalLabel label(stub.EntryPoint()); |
| 1981 compiler->GenerateCall(token_pos(), | 1984 compiler->GenerateCall(token_pos(), |
| 1982 &stub_code->AllocateArrayLabel(), | 1985 &label, |
| 1983 RawPcDescriptors::kOther, | 1986 RawPcDescriptors::kOther, |
| 1984 locs()); | 1987 locs()); |
| 1985 ASSERT(locs()->out(0).reg() == R0); | 1988 ASSERT(locs()->out(0).reg() == R0); |
| 1986 } | 1989 } |
| 1987 | 1990 |
| 1988 | 1991 |
| 1989 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, | 1992 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 1990 bool opt) const { | 1993 bool opt) const { |
| 1991 const intptr_t kNumInputs = 1; | 1994 const intptr_t kNumInputs = 1; |
| 1992 const intptr_t kNumTemps = | 1995 const intptr_t kNumTemps = |
| (...skipping 3497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5490 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 5493 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 5491 #if defined(DEBUG) | 5494 #if defined(DEBUG) |
| 5492 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); | 5495 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); |
| 5493 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); | 5496 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); |
| 5494 #endif | 5497 #endif |
| 5495 } | 5498 } |
| 5496 | 5499 |
| 5497 } // namespace dart | 5500 } // namespace dart |
| 5498 | 5501 |
| 5499 #endif // defined TARGET_ARCH_ARM64 | 5502 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |