Home
last modified time | relevance | path

Searched refs:local_decls (Results 1 – 5 of 5) sorted by relevance

/external/v8/test/mjsunit/wasm/
Dwasm-module-builder.js277 let local_decls = [];
282 local_decls.push({count: l.i32_count, type: kAstI32});
285 local_decls.push({count: l.i64_count, type: kAstI64});
288 local_decls.push({count: l.f32_count, type: kAstF32});
291 local_decls.push({count: l.f64_count, type: kAstF64});
296 header.emit_varint(local_decls.length);
297 for (let decl of local_decls) {
/external/v8/src/wasm/
Dwasm-macro-gen.h139 : sig(s), local_decls(zone), total(0) {} in sig()
155 pos = WriteUint32v(buffer, pos, static_cast<uint32_t>(local_decls.size())); in Emit()
156 for (size_t i = 0; i < local_decls.size(); ++i) { in Emit()
157 pos = WriteUint32v(buffer, pos, local_decls[i].first); in Emit()
158 buffer[pos++] = WasmOpcodes::LocalTypeCodeFor(local_decls[i].second); in Emit()
170 if (local_decls.size() > 0 && local_decls.back().second == type) { in AddLocals()
171 count += local_decls.back().first; in AddLocals()
172 local_decls.pop_back(); in AddLocals()
174 local_decls.push_back(std::pair<uint32_t, LocalType>(count, type)); in AddLocals()
179 size_t size = SizeofUint32v(static_cast<uint32_t>(local_decls.size())); in Size()
[all …]
/external/vulkan-validation-layers/
Dvk-layer-generate.py141 local_decls = {}
157 local_decls[p.name] = '%s%s' % (base_type, ptr_txt)
170 local_decls['%s' % (p.name)] = '%s%s' % (base_type, ptr_txt)
171 return (obj_uses, local_decls)
1272 …(struct_uses, local_decls) = get_object_uses(vulkan.object_type_list, proto.params[:last_param_ind…
1562 …(struct_uses, local_decls) = get_object_uses(vulkan.object_non_dispatch_list, proto.params[1:last_…
1566 if len(local_decls) > 0:
1567 pre_call_txt += '//LOCAL DECLS:%s\n' % local_decls
1571 …(pre_decl, pre_code, post_code) = self._gen_obj_code(struct_uses, local_decls, ' ', '', 0, set(…
1573 for ld in local_decls:
[all …]
/external/v8/test/cctest/wasm/
Dwasm-run-utils.h439 local_decls(main_zone(), sig), in GraphAndBuilders()
465 local_decls(main_zone(), sig), in GraphAndBuilders()
487 LocalDeclEncoder local_decls; variable
506 local_decls.Prepend(main_zone(), &start, &end); in Build()
516 uint32_t index = local_decls.AddLocals(1, type); in AllocateLocal()
/external/v8/test/unittests/wasm/
Dast-decoder-unittest.cc71 AstDecoderTest() : module(nullptr), local_decls(zone()) {} in AstDecoderTest()
75 LocalDeclEncoder local_decls; member in v8::internal::wasm::AstDecoderTest
78 local_decls.AddLocals(count, type); in AddLocals()
85 local_decls.Prepend(zone(), &start, &end); in Verify()
2421 LocalDeclEncoder local_decls(zone()); in TEST_F() local
2423 local_decls.AddLocals(5, kAstF32); in TEST_F()
2424 local_decls.AddLocals(1337, kAstI32); in TEST_F()
2425 local_decls.AddLocals(212, kAstI64); in TEST_F()
2426 local_decls.Prepend(zone(), &data, &end); in TEST_F()