| 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 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 | 2135 |
| 2136 __ Bind(&slow_path); | 2136 __ Bind(&slow_path); |
| 2137 Isolate* isolate = compiler->isolate(); | 2137 Isolate* isolate = compiler->isolate(); |
| 2138 const Code& stub = Code::Handle( | 2138 const Code& stub = Code::Handle( |
| 2139 isolate, isolate->stub_code()->GetAllocateArrayStub()); | 2139 isolate, isolate->stub_code()->GetAllocateArrayStub()); |
| 2140 const ExternalLabel label(stub.EntryPoint()); | 2140 const ExternalLabel label(stub.EntryPoint()); |
| 2141 compiler->GenerateCall(token_pos(), | 2141 compiler->GenerateCall(token_pos(), |
| 2142 &label, | 2142 &label, |
| 2143 RawPcDescriptors::kOther, | 2143 RawPcDescriptors::kOther, |
| 2144 locs()); | 2144 locs()); |
| 2145 compiler->AddStubCallTarget(stub); |
| 2145 __ Bind(&done); | 2146 __ Bind(&done); |
| 2146 ASSERT(locs()->out(0).reg() == kResultReg); | 2147 ASSERT(locs()->out(0).reg() == kResultReg); |
| 2147 } | 2148 } |
| 2148 | 2149 |
| 2149 | 2150 |
| 2150 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, | 2151 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 2151 bool opt) const { | 2152 bool opt) const { |
| 2152 const intptr_t kNumInputs = 1; | 2153 const intptr_t kNumInputs = 1; |
| 2153 const intptr_t kNumTemps = | 2154 const intptr_t kNumTemps = |
| 2154 (IsUnboxedLoad() && opt) ? 1 : | 2155 (IsUnboxedLoad() && opt) ? 1 : |
| (...skipping 4608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6763 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6764 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6764 Isolate* isolate = compiler->isolate(); | 6765 Isolate* isolate = compiler->isolate(); |
| 6765 StubCode* stub_code = isolate->stub_code(); | 6766 StubCode* stub_code = isolate->stub_code(); |
| 6766 const Code& stub = Code::Handle(isolate, | 6767 const Code& stub = Code::Handle(isolate, |
| 6767 stub_code->GetAllocationStubForClass(cls())); | 6768 stub_code->GetAllocationStubForClass(cls())); |
| 6768 const ExternalLabel label(stub.EntryPoint()); | 6769 const ExternalLabel label(stub.EntryPoint()); |
| 6769 compiler->GenerateCall(token_pos(), | 6770 compiler->GenerateCall(token_pos(), |
| 6770 &label, | 6771 &label, |
| 6771 RawPcDescriptors::kOther, | 6772 RawPcDescriptors::kOther, |
| 6772 locs()); | 6773 locs()); |
| 6774 compiler->AddStubCallTarget(stub); |
| 6773 __ Drop(ArgumentCount()); // Discard arguments. | 6775 __ Drop(ArgumentCount()); // Discard arguments. |
| 6774 } | 6776 } |
| 6775 | 6777 |
| 6776 | 6778 |
| 6777 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6779 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6778 ASSERT(!compiler->is_optimizing()); | 6780 ASSERT(!compiler->is_optimizing()); |
| 6779 StubCode* stub_code = compiler->isolate()->stub_code(); | 6781 StubCode* stub_code = compiler->isolate()->stub_code(); |
| 6780 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 6782 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
| 6781 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6783 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 6782 #if defined(DEBUG) | 6784 #if defined(DEBUG) |
| 6783 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6785 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6784 __ movl(EDX, Immediate(kInvalidObjectPointer)); | 6786 __ movl(EDX, Immediate(kInvalidObjectPointer)); |
| 6785 #endif | 6787 #endif |
| 6786 } | 6788 } |
| 6787 | 6789 |
| 6788 } // namespace dart | 6790 } // namespace dart |
| 6789 | 6791 |
| 6790 #undef __ | 6792 #undef __ |
| 6791 | 6793 |
| 6792 #endif // defined TARGET_ARCH_IA32 | 6794 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |