Lines Matching refs:WasmFunctionBuilder
49 WasmFunctionBuilder::WasmFunctionBuilder(WasmModuleBuilder* builder)
65 void WasmFunctionBuilder::EmitVarInt(uint32_t val) {
74 void WasmFunctionBuilder::SetSignature(FunctionSig* sig) {
80 uint32_t WasmFunctionBuilder::AddLocal(LocalType type) {
85 void WasmFunctionBuilder::EmitGetLocal(uint32_t local_index) {
89 void WasmFunctionBuilder::EmitSetLocal(uint32_t local_index) {
93 void WasmFunctionBuilder::EmitTeeLocal(uint32_t local_index) {
97 void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size) {
103 void WasmFunctionBuilder::Emit(WasmOpcode opcode) {
107 void WasmFunctionBuilder::EmitWithU8(WasmOpcode opcode, const byte immediate) {
112 void WasmFunctionBuilder::EmitWithU8U8(WasmOpcode opcode, const byte imm1,
119 void WasmFunctionBuilder::EmitWithVarInt(WasmOpcode opcode,
125 void WasmFunctionBuilder::EmitI32Const(int32_t value) {
135 void WasmFunctionBuilder::EmitDirectCallIndex(uint32_t index) {
144 void WasmFunctionBuilder::Export() { exported_ = true; }
146 void WasmFunctionBuilder::ExportAs(Vector<const char> name) {
152 void WasmFunctionBuilder::SetName(Vector<const char> name) {
157 void WasmFunctionBuilder::AddAsmWasmOffset(int asm_position) {
171 void WasmFunctionBuilder::WriteSignature(ZoneBuffer& buffer) const {
175 void WasmFunctionBuilder::WriteExport(ZoneBuffer& buffer) const {
188 void WasmFunctionBuilder::WriteBody(ZoneBuffer& buffer) const {
206 void WasmFunctionBuilder::WriteAsmWasmOffsetTable(ZoneBuffer& buffer) const {
229 WasmFunctionBuilder* WasmModuleBuilder::AddFunction(FunctionSig* sig) {
230 functions_.push_back(new (zone_) WasmFunctionBuilder(this));
284 void WasmModuleBuilder::MarkStartFunction(WasmFunctionBuilder* function) {