Skip to content

Instantly share code, notes, and snippets.

@syg
Last active December 14, 2015 23:29
Show Gist options
  • Save syg/5165904 to your computer and use it in GitHub Desktop.
Save syg/5165904 to your computer and use it in GitHub Desktop.
diff --git a/js/src/ion/x86/Assembler-x86.h b/js/src/ion/x86/Assembler-x86.h
index be1ca9f..986a5d6 100644
--- a/js/src/ion/x86/Assembler-x86.h
+++ b/js/src/ion/x86/Assembler-x86.h
@@ -257,6 +257,10 @@ class Assembler : public AssemblerX86Shared
push(Imm32(word.value));
return masm.currentOffset();
}
+ CodeOffsetLabel moveWithPatch(const ImmWord &word, const Register &dest) {
+ movl(Imm32(word.value), dest);
+ return masm.currentOffset();
+ }
void movl(const ImmGCPtr &ptr, const Register &dest) {
masm.movl_i32r(ptr.value, dest.code());
@@ -421,4 +425,3 @@ GetTempRegForIntArg(uint32_t usedIntArgs, uint32_t usedFloatArgs, Register *out)
} // namespace js
#endif // jsion_cpu_x86_assembler_h__
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment