9#ifndef RUNTIME_VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_
10#define RUNTIME_VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_
14void BytecodeRegExpMacroAssembler::Emit(uint32_t
byte,
15 uint32_t twenty_four_bits) {
17 ASSERT(pc_ <= buffer_->length());
18 if (pc_ + 3 >= buffer_->
length()) {
21 *
reinterpret_cast<uint32_t*
>(buffer_->
data() + pc_) =
word;
25void BytecodeRegExpMacroAssembler::Emit16(uint32_t
word) {
26 ASSERT(pc_ <= buffer_->length());
27 if (pc_ + 1 >= buffer_->
length()) {
30 *
reinterpret_cast<uint16_t*
>(buffer_->
data() + pc_) =
word;
34void BytecodeRegExpMacroAssembler::Emit8(uint32_t
word) {
35 ASSERT(pc_ <= buffer_->length());
36 if (pc_ == buffer_->
length()) {
39 *
reinterpret_cast<unsigned char*
>(buffer_->
data() + pc_) =
word;
43void BytecodeRegExpMacroAssembler::Emit32(uint32_t
word) {
44 ASSERT(pc_ <= buffer_->length());
45 if (pc_ + 3 >= buffer_->
length()) {
48 *
reinterpret_cast<uint32_t*
>(buffer_->
data() + pc_) =
word;