Lines Matching refs:iterator

10 #include "src/interpreter/bytecode-array-iterator.h"
11 #include "src/interpreter/bytecode-array-random-iterator.h"
108 const interpreter::BytecodeArrayIterator& iterator) {
111 Register r = iterator.GetRegisterOperand(i);
118 Register r = iterator.GetRegisterOperand(i);
119 uint32_t reg_count = iterator.GetRegisterCountOperand(i + 1);
129 Register r = iterator.GetRegisterOperand(i);
138 Register r = iterator.GetRegisterOperand(i);
157 const interpreter::BytecodeArrayIterator& iterator) {
160 Register r = iterator.GetRegisterOperand(i);
167 Register r = iterator.GetRegisterOperand(i);
176 Register r = iterator.GetRegisterOperand(i);
177 uint32_t reg_count = iterator.GetRegisterCountOperand(i + 1);
195 const interpreter::BytecodeArrayIterator& iterator,
200 in_liveness->MarkRegisterLive(iterator.GetRegisterOperand(0).index());
208 in_liveness->MarkRegisterLive(iterator.GetRegisterOperand(0).index());
216 in_liveness, iterator),
227 in_liveness, iterator),
234 const interpreter::BytecodeArrayIterator& iterator) {
236 in_liveness, iterator,
241 const interpreter::BytecodeArrayIterator& iterator) {
246 iterator);
273 const interpreter::BytecodeArrayIterator& iterator,
320 int target_offset = iterator.GetJumpTargetOffset();
328 iterator.GetJumpTableTargetOffsets()) {
339 table.LookupRange(iterator.current_offset(), &handler_context, nullptr);
366 const interpreter::BytecodeArrayIterator& iterator,
373 liveness, next_bytecode_in_liveness, iterator, bytecode_array, \
385 const interpreter::BytecodeArrayIterator& iterator,
389 liveness, *next_bytecode_in_liveness, iterator, bytecode_array,
403 liveness.in, iterator);
411 const interpreter::BytecodeArrayIterator& iterator,
418 liveness, next_bytecode_in_liveness, iterator, bytecode_array, \
426 const interpreter::BytecodeArrayIterator& iterator) {
433 assignments->Add(iterator.GetRegisterOperand(i));
437 interpreter::Register r = iterator.GetRegisterOperand(i++);
438 uint32_t reg_count = iterator.GetRegisterCountOperand(i);
443 assignments->AddList(iterator.GetRegisterOperand(i), 2);
447 assignments->AddList(iterator.GetRegisterOperand(i), 3);
471 interpreter::BytecodeArrayRandomIterator iterator(bytecode_array(), zone());
473 bytecode_count_ = iterator.size();
478 for (iterator.GoToEnd(); iterator.IsValid(); --iterator) {
479 Bytecode bytecode = iterator.current_bytecode();
480 int current_offset = iterator.current_offset();
484 generator_switch_index = iterator.current_index();
488 int loop_end = current_offset + iterator.current_bytecode_size();
489 int loop_header = iterator.GetJumpTargetOffset();
503 loop_end_index_queue_.push_back(iterator.current_index());
512 iterator.GetJumpTargetOffset() == current_offset);
522 UpdateAssignments(bytecode, &current_loop_info->assignments(), iterator);
526 int suspend_id = iterator.GetUnsignedImmediateOperand(3);
527 int resume_offset = current_offset + iterator.current_bytecode_size();
583 int suspend_id = iterator.GetUnsignedImmediateOperand(3);
584 int resume_offset = current_offset + iterator.current_bytecode_size();
593 iterator, bytecode_array(), liveness_map(), zone());
630 iterator.GoToIndex(loop_end_index);
632 DCHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpLoop);
634 int header_offset = iterator.GetJumpTargetOffset();
635 int end_offset = iterator.current_offset();
649 --iterator;
650 for (; iterator.current_offset() > header_offset; --iterator) {
651 Bytecode bytecode = iterator.current_bytecode();
652 int current_offset = iterator.current_offset();
654 UpdateLiveness(bytecode, liveness, &next_bytecode_in_liveness, iterator,
659 UpdateOutLiveness(iterator.current_bytecode(), header_liveness,
660 next_bytecode_in_liveness, iterator, bytecode_array(),
669 iterator.GoToIndex(generator_switch_index);
670 DCHECK_EQ(iterator.current_bytecode(), Bytecode::kSwitchOnGeneratorState);
672 int current_offset = iterator.current_offset();
678 iterator.GetJumpTableTargetOffsets()) {
690 iterator);
692 for (--iterator; iterator.IsValid(); --iterator) {
693 Bytecode bytecode = iterator.current_bytecode();
695 liveness_map().GetLiveness(iterator.current_offset());
700 UpdateLiveness(bytecode, liveness, &next_bytecode_in_liveness, iterator,
797 interpreter::BytecodeArrayIterator iterator(bytecode_array());
799 for (; !iterator.done(); iterator.Advance()) {
800 int current_offset = iterator.current_offset();
808 iterator.PrintTo(os) << std::endl;
819 interpreter::BytecodeArrayRandomIterator iterator(bytecode_array(), zone());
820 for (iterator.GoToStart(); iterator.IsValid(); ++iterator) {
821 if (iterator.current_bytecode() == Bytecode::kSwitchOnGeneratorState) {
826 // If the iterator is invalid, we've reached the end without finding the
828 if (!iterator.IsValid()) {
858 iterator.GetJumpTableTargetOffsets()) {
899 std::map<int, int>::iterator it =
922 interpreter::BytecodeArrayIterator iterator(bytecode_array(),
924 if (iterator.current_bytecode() != Bytecode::kResumeGenerator) {
929 Bytecodes::ToString(iterator.current_bytecode()));
963 interpreter::BytecodeArrayRandomIterator iterator(bytecode_array(), zone());
976 for (iterator.GoToEnd(); iterator.IsValid(); --iterator) {
977 Bytecode bytecode = iterator.current_bytecode();
979 int current_offset = iterator.current_offset();
985 UpdateOutLiveness(bytecode, liveness, next_bytecode_in_liveness, iterator,
989 int target_offset = iterator.GetJumpTargetOffset();
1005 UpdateInLiveness(bytecode, liveness.in, iterator);
1021 for (iterator.GoToStart(); iterator.IsValid() && invalid_offset == -1;
1022 ++iterator) {
1023 Bytecode bytecode = iterator.current_bytecode();
1024 int current_offset = iterator.current_offset();
1033 int jump_target = iterator.GetJumpTargetOffset();