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

Side by Side Diff: runtime/vm/intermediate_language_arm.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 1825
1826 LocationSummary* locs = instruction_->locs(); 1826 LocationSummary* locs = instruction_->locs();
1827 1827
1828 locs->live_registers()->Remove(Location::RegisterLocation(result_)); 1828 locs->live_registers()->Remove(Location::RegisterLocation(result_));
1829 1829
1830 compiler->SaveLiveRegisters(locs); 1830 compiler->SaveLiveRegisters(locs);
1831 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. 1831 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
1832 &label, 1832 &label,
1833 RawPcDescriptors::kOther, 1833 RawPcDescriptors::kOther,
1834 locs); 1834 locs);
1835 compiler->AddStubCallTarget(stub);
1835 __ MoveRegister(result_, R0); 1836 __ MoveRegister(result_, R0);
1836 compiler->RestoreLiveRegisters(locs); 1837 compiler->RestoreLiveRegisters(locs);
1837 __ b(exit_label()); 1838 __ b(exit_label());
1838 } 1839 }
1839 1840
1840 static void Allocate(FlowGraphCompiler* compiler, 1841 static void Allocate(FlowGraphCompiler* compiler,
1841 Instruction* instruction, 1842 Instruction* instruction,
1842 const Class& cls, 1843 const Class& cls,
1843 Register result, 1844 Register result,
1844 Register temp) { 1845 Register temp) {
(...skipping 5005 matching lines...) Expand 10 before | Expand all | Expand 10 after
6850 1, 6851 1,
6851 locs()); 6852 locs());
6852 __ Drop(1); 6853 __ Drop(1);
6853 __ Pop(result); 6854 __ Pop(result);
6854 } 6855 }
6855 6856
6856 6857
6857 } // namespace dart 6858 } // namespace dart
6858 6859
6859 #endif // defined TARGET_ARCH_ARM 6860 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698