| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2127 2, | 2127 2, |
| 2128 locs()); | 2128 locs()); |
| 2129 __ Drop(2); | 2129 __ Drop(2); |
| 2130 __ popl(kResultReg); | 2130 __ popl(kResultReg); |
| 2131 __ Bind(&done); | 2131 __ Bind(&done); |
| 2132 return; | 2132 return; |
| 2133 } | 2133 } |
| 2134 } | 2134 } |
| 2135 | 2135 |
| 2136 __ Bind(&slow_path); | 2136 __ Bind(&slow_path); |
| 2137 StubCode* stub_code = compiler->isolate()->stub_code(); | 2137 Isolate* isolate = compiler->isolate(); |
| 2138 const Code& stub = Code::Handle( |
| 2139 isolate, isolate->stub_code()->GetAllocateArrayStub()); |
| 2140 const ExternalLabel label(stub.EntryPoint()); |
| 2138 compiler->GenerateCall(token_pos(), | 2141 compiler->GenerateCall(token_pos(), |
| 2139 &stub_code->AllocateArrayLabel(), | 2142 &label, |
| 2140 RawPcDescriptors::kOther, | 2143 RawPcDescriptors::kOther, |
| 2141 locs()); | 2144 locs()); |
| 2142 __ Bind(&done); | 2145 __ Bind(&done); |
| 2143 ASSERT(locs()->out(0).reg() == kResultReg); | 2146 ASSERT(locs()->out(0).reg() == kResultReg); |
| 2144 } | 2147 } |
| 2145 | 2148 |
| 2146 | 2149 |
| 2147 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, | 2150 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 2148 bool opt) const { | 2151 bool opt) const { |
| 2149 const intptr_t kNumInputs = 1; | 2152 const intptr_t kNumInputs = 1; |
| (...skipping 4630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6780 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6783 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6781 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6784 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6782 #endif | 6785 #endif |
| 6783 } | 6786 } |
| 6784 | 6787 |
| 6785 } // namespace dart | 6788 } // namespace dart |
| 6786 | 6789 |
| 6787 #undef __ | 6790 #undef __ |
| 6788 | 6791 |
| 6789 #endif // defined TARGET_ARCH_IA32 | 6792 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |