Home | History | Annotate | Download | only in wasm

Lines Matching defs:code

2 // Use of this source code is governed by a BSD-style license that can be
35 size_t EmitSection(WasmSection::Code code, ZoneBuffer& buffer) {
37 const char* name = WasmSection::getName(code);
39 size_t length = WasmSection::getNameLength(code);
89 void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size) {
91 body_.push_back(code[i]);
122 byte code[] = {WASM_I32V_5(value)};
123 EmitCode(code, sizeof(code));
265 size_t start = EmitSection(WasmSection::Code::Signatures, buffer);
284 size_t start = EmitSection(WasmSection::Code::Globals, buffer);
297 size_t start = EmitSection(WasmSection::Code::ImportTable, buffer);
311 size_t start = EmitSection(WasmSection::Code::FunctionSignatures, buffer);
322 size_t start = EmitSection(WasmSection::Code::FunctionTable, buffer);
333 size_t start = EmitSection(WasmSection::Code::Memory, buffer);
343 size_t start = EmitSection(WasmSection::Code::ExportTable, buffer);
354 size_t start = EmitSection(WasmSection::Code::StartFunction, buffer);
359 // == emit code ==============================================================
361 size_t start = EmitSection(WasmSection::Code::FunctionBodies, buffer);
371 size_t start = EmitSection(WasmSection::Code::DataSegments, buffer);