Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: runtime/vm/intermediate_language_mips.cc

Issue 1266033003: Add box slow path allocation stub to static calls target table (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 const ExternalLabel label(stub.EntryPoint()); 1850 const ExternalLabel label(stub.EntryPoint());
1851 1851
1852 LocationSummary* locs = instruction_->locs(); 1852 LocationSummary* locs = instruction_->locs();
1853 locs->live_registers()->Remove(Location::RegisterLocation(result_)); 1853 locs->live_registers()->Remove(Location::RegisterLocation(result_));
1854 1854
1855 compiler->SaveLiveRegisters(locs); 1855 compiler->SaveLiveRegisters(locs);
1856 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. 1856 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
1857 &label, 1857 &label,
1858 RawPcDescriptors::kOther, 1858 RawPcDescriptors::kOther,
1859 locs); 1859 locs);
1860 compiler->AddStubCallTarget(stub);
1860 if (result_ != V0) { 1861 if (result_ != V0) {
1861 __ mov(result_, V0); 1862 __ mov(result_, V0);
1862 } 1863 }
1863 compiler->RestoreLiveRegisters(locs); 1864 compiler->RestoreLiveRegisters(locs);
1864 __ b(exit_label()); 1865 __ b(exit_label());
1865 } 1866 }
1866 1867
1867 static void Allocate(FlowGraphCompiler* compiler, 1868 static void Allocate(FlowGraphCompiler* compiler,
1868 Instruction* instruction, 1869 Instruction* instruction,
1869 const Class& cls, 1870 const Class& cls,
(...skipping 3717 matching lines...) Expand 10 before | Expand all | Expand 10 after
5587 1, 5588 1,
5588 locs()); 5589 locs());
5589 __ lw(result, Address(SP, 1 * kWordSize)); 5590 __ lw(result, Address(SP, 1 * kWordSize));
5590 __ addiu(SP, SP, Immediate(2 * kWordSize)); 5591 __ addiu(SP, SP, Immediate(2 * kWordSize));
5591 } 5592 }
5592 5593
5593 5594
5594 } // namespace dart 5595 } // namespace dart
5595 5596
5596 #endif // defined TARGET_ARCH_MIPS 5597 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698