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

Side by Side Diff: runtime/vm/assembler_mips.h

Issue 1713853003: VM: Share object pool entries for optimized static calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef VM_ASSEMBLER_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 SubuDetectOverflow(rd, rs, rd, ro); 919 SubuDetectOverflow(rd, rs, rd, ro);
920 } 920 }
921 921
922 void Branch(const StubEntry& stub_entry, Register pp = PP); 922 void Branch(const StubEntry& stub_entry, Register pp = PP);
923 923
924 void BranchLink(const StubEntry& stub_entry, 924 void BranchLink(const StubEntry& stub_entry,
925 Patchability patchable = kNotPatchable); 925 Patchability patchable = kNotPatchable);
926 926
927 void BranchLinkPatchable(const StubEntry& stub_entry); 927 void BranchLinkPatchable(const StubEntry& stub_entry);
928 928
929 // Emit a call that shares its object pool entries with other calls
930 // that have the same equivalence marker.
931 void BranchLinkWithEquivalence(const StubEntry& stub_entry,
932 const Object& equivalence);
933
929 void Drop(intptr_t stack_elements) { 934 void Drop(intptr_t stack_elements) {
930 ASSERT(stack_elements >= 0); 935 ASSERT(stack_elements >= 0);
931 if (stack_elements > 0) { 936 if (stack_elements > 0) {
932 addiu(SP, SP, Immediate(stack_elements * kWordSize)); 937 addiu(SP, SP, Immediate(stack_elements * kWordSize));
933 } 938 }
934 } 939 }
935 940
936 void LoadPoolPointer(Register reg = PP) { 941 void LoadPoolPointer(Register reg = PP) {
937 ASSERT(!in_delay_slot_); 942 ASSERT(!in_delay_slot_);
938 CheckCodePointer(); 943 CheckCodePointer();
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 Register value, 1757 Register value,
1753 Label* no_update); 1758 Label* no_update);
1754 1759
1755 DISALLOW_ALLOCATION(); 1760 DISALLOW_ALLOCATION();
1756 DISALLOW_COPY_AND_ASSIGN(Assembler); 1761 DISALLOW_COPY_AND_ASSIGN(Assembler);
1757 }; 1762 };
1758 1763
1759 } // namespace dart 1764 } // namespace dart
1760 1765
1761 #endif // VM_ASSEMBLER_MIPS_H_ 1766 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698