Home
last modified time | relevance | path

Searched refs:case_count (Results 1 – 23 of 23) sorted by relevance

/external/v8/src/compiler/
Dcontrol-builders.h91 explicit SwitchBuilder(AstGraphBuilder* builder, int case_count) in SwitchBuilder() argument
96 body_environments_(case_count, zone()) {} in SwitchBuilder()
111 size_t case_count() const { return body_environments_.size(); } in case_count() function
Draw-machine-assembler.cc75 size_t case_count) { in Switch() argument
77 size_t succ_count = case_count + 1; in Switch()
80 for (size_t index = 0; index < case_count; ++index) { in Switch()
91 succ_blocks[case_count] = default_block; in Switch()
Dinstruction-selector.cc736 sw.case_count = block->SuccessorCount() - 1; in VisitControl()
739 sw.case_values = zone()->NewArray<int32_t>(sw.case_count); in VisitControl()
742 for (size_t index = 0; index < sw.case_count; ++index) { in VisitControl()
1105 for (size_t index = 0; index < sw.case_count; ++index) { in EmitTableSwitch()
1119 size_t input_count = 2 + sw.case_count * 2; in EmitLookupSwitch()
1123 for (size_t index = 0; index < sw.case_count; ++index) { in EmitLookupSwitch()
Dinstruction-selector-impl.h23 size_t case_count; // number of cases member
Draw-machine-assembler.h616 RawMachineLabel** case_labels, size_t case_count);
/external/v8/src/wasm/
Dast-decoder.cc397 uint16_t case_count = *reinterpret_cast<const uint16_t*>(pc_ + 1); in DecodeFunctionBody() local
411 Shift(kAstEnd, 1 + case_count); in DecodeFunctionBody()
423 if (target >= case_count) { in DecodeFunctionBody()
833 uint16_t case_count = *reinterpret_cast<const uint16_t*>(p->pc() + 1); in Reduce() local
834 SsaEnv** case_envs = zone_->NewArray<SsaEnv*>(case_count); in Reduce()
835 for (int i = 0; i < case_count; i++) { in Reduce()
1564 uint16_t case_count = *reinterpret_cast<const uint16_t*>(pc + 1); in OpcodeArity() local
1565 return 1 + case_count; in OpcodeArity()
Dwasm-macro-gen.h36 #define WASM_TABLESWITCH_OP(case_count, table_count, ...) \ argument
37 kExprTableSwitch, static_cast<byte>(case_count), \
38 static_cast<byte>(case_count >> 8), static_cast<byte>(table_count), \
/external/v8/src/compiler/ia32/
Dcode-generator-ia32.cc1268 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1269 Label** cases = zone()->NewArray<Label*>(case_count); in AssembleArchTableSwitch()
1270 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
1273 Label* const table = AddJumpTable(cases, case_count); in AssembleArchTableSwitch()
1274 __ cmp(input, Immediate(case_count)); in AssembleArchTableSwitch()
Dinstruction-selector-ia32.cc1159 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1160 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1161 if (sw.case_count > 4 && in VisitSwitch()
/external/v8/src/compiler/ppc/
Dcode-generator-ppc.cc1523 int32_t const case_count = static_cast<int32_t>(instr->InputCount() - 2); in AssembleArchTableSwitch() local
1524 Label** cases = zone()->NewArray<Label*>(case_count); in AssembleArchTableSwitch()
1525 for (int32_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
1528 Label* const table = AddJumpTable(cases, case_count); in AssembleArchTableSwitch()
1529 __ Cmpli(input, Operand(case_count), r0); in AssembleArchTableSwitch()
Dinstruction-selector-ppc.cc1539 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1540 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1541 if (sw.case_count > 0 && in VisitSwitch()
/external/v8/src/compiler/arm/
Dcode-generator-arm.cc1049 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1052 __ cmp(input, Operand(case_count)); in AssembleArchTableSwitch()
1053 __ BlockConstPoolFor(case_count + 2); in AssembleArchTableSwitch()
1056 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
Dinstruction-selector-arm.cc1435 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1436 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1437 if (sw.case_count > 0 && in VisitSwitch()
/external/v8/src/compiler/x87/
Dcode-generator-x87.cc1644 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1645 Label** cases = zone()->NewArray<Label*>(case_count); in AssembleArchTableSwitch()
1646 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
1649 Label* const table = AddJumpTable(cases, case_count); in AssembleArchTableSwitch()
1650 __ cmp(input, Immediate(case_count)); in AssembleArchTableSwitch()
Dinstruction-selector-x87.cc1176 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1177 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1178 if (sw.case_count > 4 && in VisitSwitch()
/external/v8/src/compiler/x64/
Dcode-generator-x64.cc1778 int32_t const case_count = static_cast<int32_t>(instr->InputCount() - 2); in AssembleArchTableSwitch() local
1779 Label** cases = zone()->NewArray<Label*>(case_count); in AssembleArchTableSwitch()
1780 for (int32_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
1783 Label* const table = AddJumpTable(cases, case_count); in AssembleArchTableSwitch()
1784 __ cmpl(input, Immediate(case_count)); in AssembleArchTableSwitch()
Dinstruction-selector-x64.cc1558 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1559 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1560 if (sw.case_count > 4 && in VisitSwitch()
/external/v8/src/compiler/mips/
Dcode-generator-mips.cc1418 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1420 __ Branch(GetLabel(i.InputRpo(1)), hs, input, Operand(case_count)); in AssembleArchTableSwitch()
1421 __ BlockTrampolinePoolFor(case_count + 6); in AssembleArchTableSwitch()
1429 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
Dinstruction-selector-mips.cc1167 size_t lookup_space_cost = 2 + 2 * sw.case_count; in VisitSwitch()
1168 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1169 if (sw.case_count > 0 && in VisitSwitch()
/external/v8/src/compiler/mips64/
Dcode-generator-mips64.cc1655 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1658 __ Branch(GetLabel(i.InputRpo(1)), hs, input, Operand(case_count)); in AssembleArchTableSwitch()
1659 __ BlockTrampolinePoolFor(static_cast<int>(case_count) * 2 + 7); in AssembleArchTableSwitch()
1669 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
Dinstruction-selector-mips64.cc1651 size_t lookup_space_cost = 2 + 2 * sw.case_count; in VisitSwitch()
1652 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1653 if (sw.case_count > 0 && in VisitSwitch()
/external/v8/src/compiler/arm64/
Dcode-generator-arm64.cc1318 size_t const case_count = instr->InputCount() - 2; in AssembleArchTableSwitch() local
1320 __ Cmp(input, case_count); in AssembleArchTableSwitch()
1327 for (size_t index = 0; index < case_count; ++index) { in AssembleArchTableSwitch()
Dinstruction-selector-arm64.cc1922 size_t lookup_space_cost = 3 + 2 * sw.case_count; in VisitSwitch()
1923 size_t lookup_time_cost = sw.case_count; in VisitSwitch()
1924 if (sw.case_count > 0 && in VisitSwitch()