Lines Matching refs:Zone
9 #include "src/zone-containers.h"
66 WasmFunctionBuilder::WasmFunctionBuilder(Zone* zone)
68 locals_(zone),
71 body_(zone),
72 local_indices_(zone),
73 name_(zone) {}
158 WasmFunctionEncoder* WasmFunctionBuilder::Build(Zone* zone,
161 new (zone) WasmFunctionEncoder(zone, return_type_, exported_, external_);
162 uint16_t* var_index = zone->NewArray<uint16_t>(locals_.size());
188 FunctionSig::Builder sig(zone, return_type_ == kAstStmt ? 0 : 1,
248 WasmFunctionEncoder::WasmFunctionEncoder(Zone* zone, LocalType return_type,
250 : params_(zone),
253 body_(zone),
254 name_(zone) {}
310 WasmDataSegmentEncoder::WasmDataSegmentEncoder(Zone* zone, const byte* data,
312 : data_(zone), dest_(dest) {
343 WasmModuleBuilder::WasmModuleBuilder(Zone* zone)
344 : zone_(zone),
345 signatures_(zone),
346 functions_(zone),
347 data_segments_(zone),
348 indirect_functions_(zone),
349 globals_(zone),
350 signature_map_(zone) {}
409 WasmModuleWriter* WasmModuleBuilder::Build(Zone* zone) {
410 WasmModuleWriter* writer = new (zone) WasmModuleWriter(zone);
412 writer->functions_.push_back(function->Build(zone, this));
436 WasmModuleWriter::WasmModuleWriter(Zone* zone)
437 : functions_(zone),
438 data_segments_(zone),
439 signatures_(zone),
440 indirect_functions_(zone),
441 globals_(zone) {}
467 WasmModuleIndex* WasmModuleWriter::WriteTo(Zone* zone) const {
499 ZoneVector<uint8_t> buffer_vector(sizes.total(), zone);
572 return new (zone) WasmModuleIndex(buffer, buffer + sizes.total());