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

Unified Diff: runtime/vm/assembler_mips.h

Issue 13473010: Adds native/leaf runtime call stub and redirection on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 20794)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -515,6 +515,15 @@
jr(TMP);
}
+ void BranchPatchable(const ExternalLabel* label) {
+ const uint16_t low = Utils::Low16Bits(label->address());
+ const uint16_t high = Utils::High16Bits(label->address());
+ lui(TMP, Immediate(high));
+ ori(TMP, TMP, Immediate(low));
+ jr(TMP);
+ delay_slot()->nop();
regis 2013/04/02 20:40:51 This works, but there is already a nop in the dela
+ }
+
void BranchLink(const ExternalLabel* label) {
LoadImmediate(TMP, label->address());
jalr(TMP);
@@ -525,6 +534,7 @@
Array::data_offset() + 4*AddExternalLabel(label) - kHeapObjectTag;
LoadWordFromPoolOffset(TMP, offset);
jalr(TMP);
+ delay_slot()->nop();
regis 2013/04/02 20:40:51 ditto
}
// If the signed value in rs is less than value, rd is 1, and 0 otherwise.
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698