| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 2, | 1983 2, |
| 1984 locs()); | 1984 locs()); |
| 1985 __ Drop(2); | 1985 __ Drop(2); |
| 1986 __ popq(kResultReg); | 1986 __ popq(kResultReg); |
| 1987 __ Bind(&done); | 1987 __ Bind(&done); |
| 1988 return; | 1988 return; |
| 1989 } | 1989 } |
| 1990 } | 1990 } |
| 1991 | 1991 |
| 1992 __ Bind(&slow_path); | 1992 __ Bind(&slow_path); |
| 1993 StubCode* stub_code = compiler->isolate()->stub_code(); | 1993 Isolate* isolate = compiler->isolate(); |
| 1994 const Code& stub = Code::Handle( |
| 1995 isolate, isolate->stub_code()->GetAllocateArrayStub()); |
| 1996 const ExternalLabel label(stub.EntryPoint()); |
| 1994 compiler->GenerateCall(token_pos(), | 1997 compiler->GenerateCall(token_pos(), |
| 1995 &stub_code->AllocateArrayLabel(), | 1998 &label, |
| 1996 RawPcDescriptors::kOther, | 1999 RawPcDescriptors::kOther, |
| 1997 locs()); | 2000 locs()); |
| 1998 __ Bind(&done); | 2001 __ Bind(&done); |
| 1999 ASSERT(locs()->out(0).reg() == kResultReg); | 2002 ASSERT(locs()->out(0).reg() == kResultReg); |
| 2000 } | 2003 } |
| 2001 | 2004 |
| 2002 | 2005 |
| 2003 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, | 2006 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 2004 bool opt) const { | 2007 bool opt) const { |
| 2005 const intptr_t kNumInputs = 1; | 2008 const intptr_t kNumInputs = 1; |
| (...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5922 __ movq(R10, Immediate(kInvalidObjectPointer)); | 5925 __ movq(R10, Immediate(kInvalidObjectPointer)); |
| 5923 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 5926 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
| 5924 #endif | 5927 #endif |
| 5925 } | 5928 } |
| 5926 | 5929 |
| 5927 } // namespace dart | 5930 } // namespace dart |
| 5928 | 5931 |
| 5929 #undef __ | 5932 #undef __ |
| 5930 | 5933 |
| 5931 #endif // defined TARGET_ARCH_X64 | 5934 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |