Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 4e14fbf97702fb8cf914fd2cb07f4d6e54adf1b8..bd5b94f57c60744cf15eed31abd572f021b5c62e 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -264,6 +264,14 @@ class MacroAssembler: public Assembler { |
void LoadHeapObject(Register dst, Handle<HeapObject> object); |
+ void LoadObject(Register result, Handle<Object> object) { |
+ if (object->IsHeapObject()) { |
+ LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
+ } else { |
+ li(result, object); |
+ } |
+ } |
+ |
// --------------------------------------------------------------------------- |
// GC Support |