Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index 68df2556a7ef7acf4b4c96aa776cdad37a5f6f57..76c48900275fafa008adbf312fa4edf7fcf5e646 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -612,6 +612,11 @@ class MacroAssembler: public Assembler { |
void AllocateOneByteSlicedString(Register result, Register scratch1, |
Register scratch2, Label* gc_required); |
+ // Allocate and initialize a JSValue wrapper with the specified {constructor} |
+ // and {value}. |
+ void AllocateJSValue(Register result, Register constructor, Register value, |
+ Register scratch, Label* gc_required); |
+ |
// Copy memory, byte-by-byte, from source to destination. Not optimized for |
// long or aligned copies. |
// The contents of index and scratch are destroyed. |
@@ -773,9 +778,11 @@ class MacroAssembler: public Assembler { |
void Move(XMMRegister dst, uint64_t src); |
void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } |
+ void Move(Register dst, Smi* source) { Move(dst, Immediate(source)); } |
+ |
// Push a handle value. |
void Push(Handle<Object> handle) { push(Immediate(handle)); } |
- void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
+ void Push(Smi* smi) { Push(Immediate(smi)); } |
Handle<Object> CodeObject() { |
DCHECK(!code_object_.is_null()); |