Home
last modified time | relevance | path

Searched refs:bytecode (Results 1 – 25 of 238) sorted by relevance

12345678910

/third_party/node/deps/v8/src/interpreter/
Dbytecodes.h571 static const char* ToString(Bytecode bytecode);
575 static std::string ToString(Bytecode bytecode, OperandScale operand_scale,
579 static uint8_t ToByte(Bytecode bytecode) { in ToByte() argument
580 DCHECK_LE(bytecode, Bytecode::kLast); in ToByte()
581 return static_cast<uint8_t>(bytecode); in ToByte()
586 Bytecode bytecode = static_cast<Bytecode>(value); in FromByte() local
587 DCHECK_LE(bytecode, Bytecode::kLast); in FromByte()
588 return bytecode; in FromByte()
611 static OperandScale PrefixBytecodeToOperandScale(Bytecode bytecode) { in PrefixBytecodeToOperandScale() argument
612 switch (bytecode) { in PrefixBytecodeToOperandScale()
[all …]
Dbytecode-node.h21 V8_INLINE BytecodeNode(Bytecode bytecode,
23 : bytecode_(bytecode), in bytecode_() argument
27 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in bytecode_()
30 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
32 : bytecode_(bytecode), in bytecode_() argument
36 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in bytecode_()
40 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
43 : bytecode_(bytecode), in bytecode_() argument
47 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count()); in bytecode_()
52 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
[all …]
Dbytecodes.cc105 const char* Bytecodes::ToString(Bytecode bytecode) { in SHORT_STAR_BYTECODE_LIST()
106 switch (bytecode) { in SHORT_STAR_BYTECODE_LIST()
117 std::string Bytecodes::ToString(Bytecode bytecode, OperandScale operand_scale, in ToString() argument
119 std::string value(ToString(bytecode)); in ToString()
130 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) { in GetDebugBreak() argument
131 DCHECK(!IsDebugBreak(bytecode)); in GetDebugBreak()
132 if (bytecode == Bytecode::kWide) { in GetDebugBreak()
135 if (bytecode == Bytecode::kExtraWide) { in GetDebugBreak()
138 int bytecode_size = Size(bytecode, OperandScale::kSingle); in GetDebugBreak()
149 int Bytecodes::GetOperandOffset(Bytecode bytecode, int i, in GetOperandOffset() argument
[all …]
Dbytecode-array-writer.cc85 int BytecodeArrayWriter::CheckBytecodeMatches(BytecodeArray bytecode) { in CheckBytecodeMatches() argument
89 if (bytecode_size != bytecode.length()) mismatches = true; in CheckBytecodeMatches()
93 int first_mismatch = std::min(bytecode_size, bytecode.length()); in CheckBytecodeMatches()
95 if (bytecode_ptr[i] != bytecode.get(i)) { in CheckBytecodeMatches()
110 DCHECK(!Bytecodes::IsJump(node->bytecode())); in Write()
113 UpdateExitSeenInBlock(node->bytecode()); in Write()
114 MaybeElideLastBytecode(node->bytecode(), node->source_info().is_valid()); in Write()
121 DCHECK(Bytecodes::IsForwardJump(node->bytecode())); in WriteJump()
124 UpdateExitSeenInBlock(node->bytecode()); in WriteJump()
125 MaybeElideLastBytecode(node->bytecode(), node->source_info().is_valid()); in WriteJump()
[all …]
Dinterpreter.cc57 Handle<BytecodeArray> bytecode);
89 Builtin BuiltinIndexFromBytecode(Bytecode bytecode, in BuiltinIndexFromBytecode() argument
91 int index = static_cast<int>(bytecode); in BuiltinIndexFromBytecode()
93 if (Bytecodes::IsShortStar(bytecode)) { in BuiltinIndexFromBytecode()
95 } else if (bytecode > Bytecode::kLastShortStar) { in BuiltinIndexFromBytecode()
118 CodeT Interpreter::GetBytecodeHandler(Bytecode bytecode, in GetBytecodeHandler() argument
120 Builtin builtin = BuiltinIndexFromBytecode(bytecode, operand_scale); in GetBytecodeHandler()
124 void Interpreter::SetBytecodeHandler(Bytecode bytecode, in SetBytecodeHandler() argument
129 size_t index = GetDispatchTableIndex(bytecode, operand_scale); in SetBytecodeHandler()
134 size_t Interpreter::GetDispatchTableIndex(Bytecode bytecode, in GetDispatchTableIndex() argument
[all …]
Dbytecode-decoder.cc97 Bytecode bytecode = Bytecodes::FromByte(bytecode_start[0]); in Decode() local
100 if (Bytecodes::IsPrefixScalingBytecode(bytecode)) { in Decode()
102 operand_scale = Bytecodes::PrefixBytecodeToOperandScale(bytecode); in Decode()
103 bytecode = Bytecodes::FromByte(bytecode_start[1]); in Decode()
112 int bytecode_size = Bytecodes::Size(bytecode, operand_scale); in Decode()
123 os << Bytecodes::ToString(bytecode, operand_scale) << " "; in Decode()
126 if (Bytecodes::IsDebugBreak(bytecode)) return os; in Decode()
128 int number_of_operands = Bytecodes::NumberOfOperands(bytecode); in Decode()
130 OperandType op_type = Bytecodes::GetOperandType(bytecode, i); in Decode()
132 Bytecodes::GetOperandOffset(bytecode, i, operand_scale); in Decode()
[all …]
Dbytecode-register.h68 static constexpr Register FromShortStar(Bytecode bytecode) { in FromShortStar() argument
69 DCHECK(Bytecodes::IsShortStar(bytecode)); in FromShortStar()
71 static_cast<int>(bytecode)); in FromShortStar()
76 Bytecode bytecode = in TryToShortStar() local
78 DCHECK_GE(bytecode, Bytecode::kFirstShortStar); in TryToShortStar()
79 DCHECK_LE(bytecode, Bytecode::kLastShortStar); in TryToShortStar()
80 return bytecode; in TryToShortStar()
Dbytecode-register-optimizer.h68 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use> in NON_EXPORTED_BASE()
70 if (Bytecodes::IsJump(bytecode) || Bytecodes::IsSwitch(bytecode) || in NON_EXPORTED_BASE()
71 bytecode == Bytecode::kDebugger || in NON_EXPORTED_BASE()
72 bytecode == Bytecode::kSuspendGenerator || in NON_EXPORTED_BASE()
73 bytecode == Bytecode::kResumeGenerator) { in NON_EXPORTED_BASE()
/third_party/node/deps/v8/src/regexp/
Dregexp-bytecode-peephole.cc59 BytecodeSequenceNode(int bytecode, Zone* zone);
61 BytecodeSequenceNode& FollowedBy(int bytecode);
64 BytecodeSequenceNode& ReplaceWith(int bytecode);
118 bool CheckArguments(const byte* bytecode, int pc);
129 BytecodeSequenceNode* Find(int bytecode) const;
179 bool OptimizeBytecode(const byte* bytecode, int length);
189 BytecodeSequenceNode& CreateSequence(int bytecode);
192 int TryOptimizeSequence(const byte* bytecode, int bytecode_length,
197 void EmitOptimization(int start_pc, const byte* bytecode,
222 void EmitArgument(int start_pc, const byte* bytecode,
[all …]
Dregexp-bytecodes.h237 inline constexpr int RegExpBytecodeLength(int bytecode) { in RegExpBytecodeLength() argument
238 DCHECK(base::IsInRange(bytecode, 0, kRegExpBytecodeCount - 1)); in RegExpBytecodeLength()
239 return kRegExpBytecodeLengths[bytecode]; in RegExpBytecodeLength()
248 inline constexpr const char* RegExpBytecodeName(int bytecode) { in RegExpBytecodeName() argument
249 DCHECK(base::IsInRange(bytecode, 0, kRegExpBytecodeCount - 1)); in RegExpBytecodeName()
250 return kRegExpBytecodeNames[bytecode]; in RegExpBytecodeName()
Dregexp-bytecodes.cc15 int bytecode = *reinterpret_cast<const int32_t*>(pc) & BYTECODE_MASK; in RegExpBytecodeDisassembleSingle() local
16 PrintF("%s", RegExpBytecodeName(bytecode)); in RegExpBytecodeDisassembleSingle()
19 for (int i = 0; i < RegExpBytecodeLength(bytecode); i++) { in RegExpBytecodeDisassembleSingle()
25 for (int i = 1; i < RegExpBytecodeLength(bytecode); i++) { in RegExpBytecodeDisassembleSingle()
/third_party/node/deps/v8/src/compiler/
Dbytecode-analysis.cc105 template <Bytecode bytecode, OperandType operand_type, size_t i>
154 template <Bytecode bytecode, OperandType operand_type, size_t i>
192 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
198 if (bytecode == Bytecode::kSuspendGenerator) { in UpdateInLiveness()
202 DCHECK(Bytecodes::ReadsAccumulator(bytecode)); in UpdateInLiveness()
206 if (bytecode == Bytecode::kResumeGenerator) { in UpdateInLiveness()
215 (UpdateInLivenessForOutOperand<bytecode, operand_types, operand_index>( in UpdateInLiveness()
219 if (Bytecodes::WritesImplicitRegister(bytecode)) { in UpdateInLiveness()
220 in_liveness->MarkRegisterDead(Register::FromShortStar(bytecode).index()); in UpdateInLiveness()
226 (UpdateInLivenessForInOperand<bytecode, operand_types, operand_index>( in UpdateInLiveness()
[all …]
Djs-inlining-heuristic.cc101 out.bytecode[0] = function.shared().GetBytecodeArray(); in CollectFunctions()
122 out.bytecode[n] = function.shared().GetBytecodeArray(); in CollectFunctions()
133 out.bytecode[0] = out.shared_info->GetBytecodeArray(); in CollectFunctions()
144 out.bytecode[0] = out.shared_info->GetBytecodeArray(); in CollectFunctions()
191 if (!candidate.bytecode[i].has_value()) { in Reduce()
199 candidate.can_inline_function[i] = candidate.bytecode[i].has_value(); in Reduce()
226 BytecodeArrayRef bytecode = candidate.bytecode[i].value(); in Reduce() local
227 candidate.total_size += bytecode.length(); in Reduce()
235 IsSmall(bytecode.length() + inlined_bytecode_size); in Reduce()
711 total_inlined_bytecode_size_ += candidate.bytecode[0].value().length(); in InlineCandidate()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Deg_asm.c36 bc->bytecode[id++] = cf->isa[0]; in eg_bytecode_cf_build()
37 bc->bytecode[id++] = cf->isa[1]; in eg_bytecode_cf_build()
45 bc->bytecode[id++] = in eg_bytecode_cf_build()
53 bc->bytecode[id++] = in eg_bytecode_cf_build()
61 bc->bytecode[id++] = S_SQ_CF_ALU_WORD0_ADDR(cf->addr >> 1) | in eg_bytecode_cf_build()
65 bc->bytecode[id++] = S_SQ_CF_ALU_WORD1_CF_INST(opcode) | in eg_bytecode_cf_build()
73 bc->bytecode[id++] = S_SQ_CF_WORD0_ADDR(cf->addr >> 1); in eg_bytecode_cf_build()
74 bc->bytecode[id] = S_SQ_CF_WORD1_CF_INST(opcode) | in eg_bytecode_cf_build()
79 bc->bytecode[id] |= S_SQ_CF_ALLOC_EXPORT_WORD1_END_OF_PROGRAM(cf->end_of_program); in eg_bytecode_cf_build()
83 bc->bytecode[id++] = S_SQ_CF_ALLOC_EXPORT_WORD0_RW_GPR(cf->output.gpr) | in eg_bytecode_cf_build()
[all …]
Dr700_asm.c26 void r700_bytecode_cf_vtx_build(uint32_t *bytecode, const struct r600_bytecode_cf *cf) in r700_bytecode_cf_vtx_build() argument
29 *bytecode++ = S_SQ_CF_WORD0_ADDR(cf->addr >> 1); in r700_bytecode_cf_vtx_build()
30 *bytecode++ = S_SQ_CF_WORD1_CF_INST(r600_isa_cf_opcode(ISA_CC_R700, cf->op)) | in r700_bytecode_cf_vtx_build()
39 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | in r700_bytecode_alu_build()
53 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) | in r700_bytecode_alu_build()
64 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) | in r700_bytecode_alu_build()
132 bc->bytecode[id++] = S_SQ_MEM_RD_WORD0_MEM_INST(2) | in r700_bytecode_fetch_mem_build()
146 bc->bytecode[id++] = S_SQ_MEM_RD_WORD1_DST_GPR(mem->dst_gpr) | in r700_bytecode_fetch_mem_build()
157 bc->bytecode[id++] = S_SQ_MEM_RD_WORD2_ARRAY_BASE(mem->array_base) | in r700_bytecode_fetch_mem_build()
162 bc->bytecode[id++] = 0; /* MEM ops are 4 word aligned */ in r700_bytecode_fetch_mem_build()
Dr600_asm.c1639 bc->bytecode[id] = S_SQ_VTX_WORD0_VTX_INST(r600_isa_fetch_opcode(bc->isa->hw_class, vtx->op)) | in r600_bytecode_vtx_build()
1645 bc->bytecode[id] |= S_SQ_VTX_WORD0_MEGA_FETCH_COUNT(vtx->mega_fetch_count); in r600_bytecode_vtx_build()
1647 bc->bytecode[id++] = S_SQ_VTX_WORD1_DST_SEL_X(vtx->dst_sel_x) | in r600_bytecode_vtx_build()
1657 bc->bytecode[id] = S_SQ_VTX_WORD2_OFFSET(vtx->offset)| in r600_bytecode_vtx_build()
1660 …bc->bytecode[id] |= ((vtx->buffer_index_mode & 0x3) << 21); // S_SQ_VTX_WORD2_BIM(vtx->buffer_inde… in r600_bytecode_vtx_build()
1662 bc->bytecode[id] |= S_SQ_VTX_WORD2_MEGA_FETCH(1); in r600_bytecode_vtx_build()
1664 bc->bytecode[id++] = 0; in r600_bytecode_vtx_build()
1671 bc->bytecode[id] = S_SQ_TEX_WORD0_TEX_INST( in r600_bytecode_tex_build()
1678 …bc->bytecode[id] |= ((tex->sampler_index_mode & 0x3) << 27) | // S_SQ_TEX_WORD0_SIM(tex->sampler_i… in r600_bytecode_tex_build()
1681 bc->bytecode[id++] = S_SQ_TEX_WORD1_DST_GPR(tex->dst_gpr) | in r600_bytecode_tex_build()
[all …]
/third_party/node/deps/v8/tools/ignition/
Dbytecode_dispatches_report.py84 for bytecode, counters_from_bytecode in iteritems(dispatches_table):
85 top_bytecodes.append((bytecode, sum(itervalues(counters_from_bytecode))))
94 for bytecode, counter in top_bytecodes:
95 print("{:>12d}\t{}".format(counter, bytecode))
99 dispatches_table, bytecode, top_count, sort_source_relative): argument
103 if bytecode in destinations:
104 count = destinations[bytecode]
108 bytecode_destinations = dispatches_table[bytecode]
118 def print_top_dispatch_sources_and_destinations(dispatches_table, bytecode, argument
121 dispatches_table, bytecode, top_count, sort_relative)
[all …]
/third_party/libsnd/src/
Dima_adpcm.c262 int chan, k, diff, bytecode, predictor ; in aiff_ima_decode_block() local
295 { bytecode = blockdata [k + 2] ; in aiff_ima_decode_block()
296 sampledata [pima->channels * (2 * k + 0)] = bytecode & 0xF ; in aiff_ima_decode_block()
297 sampledata [pima->channels * (2 * k + 1)] = (bytecode >> 4) & 0xF ; in aiff_ima_decode_block()
304 bytecode = pima->samples [pima->channels * k + chan] ; in aiff_ima_decode_block()
306 stepindx += ima_indx_adjust [bytecode] ; in aiff_ima_decode_block()
310 if (bytecode & 1) diff += step >> 2 ; in aiff_ima_decode_block()
311 if (bytecode & 2) diff += step >> 1 ; in aiff_ima_decode_block()
312 if (bytecode & 4) diff += step ; in aiff_ima_decode_block()
313 if (bytecode & 8) diff = -diff ; in aiff_ima_decode_block()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/adpcmdec/
Dadpcmdec.c221 int bytecode; in adpcmdec_decode_ms_block() local
226 bytecode = (data[idx] >> 4) & 0x0F; in adpcmdec_decode_ms_block()
228 bytecode = data[idx] & 0x0F; in adpcmdec_decode_ms_block()
233 idelta[chan] = (AdaptationTable[bytecode] * delta) >> 8; in adpcmdec_decode_ms_block()
239 if (bytecode & 0x8) in adpcmdec_decode_ms_block()
240 bytecode -= 0x10; in adpcmdec_decode_ms_block()
246 current = (bytecode * delta) + predict; in adpcmdec_decode_ms_block()
305 int bytecode; in adpcmdec_decode_ima_block() local
310 bytecode = data[idx] & 0x0F; in adpcmdec_decode_ima_block()
312 bytecode = (data[idx] >> 4) & 0x0F; in adpcmdec_decode_ima_block()
[all …]
/third_party/node/deps/v8/src/maglev/
Dmaglev-graph-builder.h134 interpreter::Bytecode bytecode = iterator_.current_bytecode(); in EmitUnconditionalDeopt() local
135 if (interpreter::Bytecodes::IsForwardJump(bytecode)) { in EmitUnconditionalDeopt()
139 if (interpreter::Bytecodes::IsConditionalJump(bytecode)) { in EmitUnconditionalDeopt()
142 } else if (bytecode == interpreter::Bytecode::kJumpLoop) { in EmitUnconditionalDeopt()
146 } else if (interpreter::Bytecodes::IsSwitch(bytecode)) { in EmitUnconditionalDeopt()
152 } else if (!interpreter::Bytecodes::Returns(bytecode) && in EmitUnconditionalDeopt()
153 !interpreter::Bytecodes::UnconditionallyThrows(bytecode)) { in EmitUnconditionalDeopt()
472 size_t array_length = bytecode().length() + 1; in CalculatePredecessorCounts()
476 interpreter::BytecodeArrayIterator iterator(bytecode().object()); in CalculatePredecessorCounts()
478 interpreter::Bytecode bytecode = iterator.current_bytecode(); in CalculatePredecessorCounts() local
[all …]
/third_party/node/deps/v8/src/regexp/experimental/
Dexperimental.cc45 return re->bytecode(kIsLatin1) != Smi::FromInt(JSRegExp::kUninitializedValue); in IsCompiled()
62 Handle<ByteArray> bytecode; member
89 ZoneList<RegExpInstruction> bytecode = ExperimentalRegExpCompiler::Compile( in CompileImpl() local
93 result.bytecode = VectorToByteArray(isolate, bytecode.ToVector()); in CompileImpl()
120 re->set_bytecode_and_trampoline(isolate, compilation_result->bytecode); in Compile()
137 ByteArray bytecode, String subject, int capture_count, in ExecRawImpl() argument
152 isolate, call_origin, bytecode, register_count_per_match, subject, in ExecRawImpl()
177 ByteArray bytecode = ByteArray::cast(regexp.bytecode(kIsLatin1)); in ExecRaw() local
179 return ExecRawImpl(isolate, call_origin, bytecode, subject, in ExecRaw()
278 *compilation_result->bytecode, *subject, in OneshotExecRaw()
/third_party/node/deps/v8/src/builtins/
Dgenerate-bytecodes-builtins-list.cc17 void WriteBytecode(std::ofstream& out, Bytecode bytecode, in WriteBytecode() argument
21 if (Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) { in WriteBytecode()
22 std::string name = Bytecodes::ToString(bytecode, operand_scale, ""); in WriteBytecode()
26 if (bytecode == Bytecode::kStar0) { in WriteBytecode()
33 << Bytecodes::ToString(bytecode) << ")"; in WriteBytecode()
/third_party/node/deps/v8/src/objects/
Dcode.tq11 // The 13 LSB of the install target bytecode offset.
16 // TODO(v8:8983): bytecode array object sizes vary based on their contents.
22 // * empty_byte_array (for bytecode generated for functions that will never
24 // * ByteArray (when source positions have been collected for the bytecode)
26 // positions for pre-existing bytecode).
/third_party/node/deps/v8/src/runtime/
Druntime-trace.cc68 interpreter::Bytecode bytecode = bytecode_iterator.current_bytecode(); in PrintRegisters() local
71 if ((is_input && interpreter::Bytecodes::ReadsAccumulator(bytecode)) || in PrintRegisters()
72 (!is_input && interpreter::Bytecodes::WritesAccumulator(bytecode))) { in PrintRegisters()
79 int operand_count = interpreter::Bytecodes::NumberOfOperands(bytecode); in PrintRegisters()
82 interpreter::Bytecodes::GetOperandType(bytecode, operand_index); in PrintRegisters()
95 if (!is_input && interpreter::Bytecodes::IsShortStar(bytecode)) { in PrintRegisters()
98 interpreter::Register::FromShortStar(bytecode), 1); in PrintRegisters()
/third_party/node/deps/v8/src/
DDEPS9 "+src/baseline/bytecode-offset-iterator.h",
45 "+src/interpreter/bytecode-array-iterator.h",
46 "+src/interpreter/bytecode-array-random-iterator.h",
47 "+src/interpreter/bytecode-decoder.h",
48 "+src/interpreter/bytecode-flags.h",
49 "+src/interpreter/bytecode-register.h",

12345678910