Lines Matching refs:WasmFunctionBuilder
60 struct WasmFunctionBuilder::Type {
66 WasmFunctionBuilder::WasmFunctionBuilder(Zone* zone)
76 uint16_t WasmFunctionBuilder::AddParam(LocalType type) {
81 uint16_t WasmFunctionBuilder::AddLocal(LocalType type) {
86 uint16_t WasmFunctionBuilder::AddVar(LocalType type, bool param) {
92 void WasmFunctionBuilder::ReturnType(LocalType type) { return_type_ = type; }
95 void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size) {
100 void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size,
113 void WasmFunctionBuilder::Emit(WasmOpcode opcode) {
118 void WasmFunctionBuilder::EmitWithU8(WasmOpcode opcode, const byte immediate) {
124 void WasmFunctionBuilder::EmitWithLocal(WasmOpcode opcode) {
130 uint32_t WasmFunctionBuilder::EmitEditableImmediate(const byte immediate) {
136 void WasmFunctionBuilder::EditImmediate(uint32_t offset, const byte immediate) {
142 void WasmFunctionBuilder::Exported(uint8_t flag) { exported_ = flag; }
145 void WasmFunctionBuilder::External(uint8_t flag) { external_ = flag; }
147 void WasmFunctionBuilder::SetName(const unsigned char* name, int name_length) {
158 WasmFunctionEncoder* WasmFunctionBuilder::Build(Zone* zone,
202 void WasmFunctionBuilder::IndexVars(WasmFunctionEncoder* e,
354 functions_.push_back(new (zone_) WasmFunctionBuilder(zone_));
359 WasmFunctionBuilder* WasmModuleBuilder::FunctionAt(size_t index) {