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

Unified Diff: runtime/vm/assembler_mips.cc

Issue 13407003: Third codegen test passing for simulated 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/vm/assembler_mips.h ('k') | runtime/vm/code_generator_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.cc
===================================================================
--- runtime/vm/assembler_mips.cc (revision 20788)
+++ runtime/vm/assembler_mips.cc (working copy)
@@ -6,6 +6,9 @@
#if defined(TARGET_ARCH_MIPS)
#include "vm/assembler.h"
+#include "vm/runtime_entry.h"
+#include "vm/simulator.h"
+#include "vm/stub_code.h"
namespace dart {
@@ -145,6 +148,11 @@
}
+void Assembler::CallRuntime(const RuntimeEntry& entry) {
+ entry.Call(this);
+}
+
+
void Assembler::EnterDartFrame(intptr_t frame_size) {
const intptr_t offset = CodeSize();
@@ -201,6 +209,17 @@
}
+void Assembler::ReserveAlignedFrameSpace(intptr_t frame_space) {
+ // Reserve space for arguments and align frame before entering
+ // the C++ world.
+ addiu(SP, SP, Immediate(-frame_space));
+ if (OS::ActivationFrameAlignment() > 0) {
+ LoadImmediate(TMP, ~(OS::ActivationFrameAlignment() - 1));
+ and_(SP, SP, TMP);
+ }
+}
+
+
int32_t Assembler::AddExternalLabel(const ExternalLabel* label) {
if (object_pool_.IsNull()) {
// The object pool cannot be used in the vm isolate.
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/code_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698