Index: src/regexp-macro-assembler-irregexp-inl.h |
=================================================================== |
--- src/regexp-macro-assembler-irregexp-inl.h (revision 11134) |
+++ src/regexp-macro-assembler-irregexp-inl.h (working copy) |
@@ -62,6 +62,16 @@ |
} |
+void RegExpMacroAssemblerIrregexp::Emit8(uint32_t word) { |
+ ASSERT(pc_ <= buffer_.length()); |
+ if (pc_ + 1 >= buffer_.length()) { |
ulan
2012/03/27 11:02:43
I think we want to expand only if pc_ == buffer.le
Erik Corry
2012/03/28 09:40:26
Done.
|
+ Expand(); |
+ } |
+ *reinterpret_cast<unsigned char*>(buffer_.start() + pc_) = word; |
+ pc_ += 1; |
+} |
+ |
+ |
void RegExpMacroAssemblerIrregexp::Emit32(uint32_t word) { |
ASSERT(pc_ <= buffer_.length()); |
if (pc_ + 3 >= buffer_.length()) { |