Home
last modified time | relevance | path

Searched refs:BytecodeNode (Results 1 – 17 of 17) sorted by relevance

/external/v8/src/interpreter/
Dbytecode-peephole-optimizer.h26 void Write(BytecodeNode* node) override;
27 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override;
35 BytecodeNode* OptimizeAndEmitLast(BytecodeNode* current);
36 BytecodeNode* Optimize(BytecodeNode* current);
39 void TryToRemoveLastExpressionPosition(const BytecodeNode* const current);
40 bool TransformCurrentBytecode(BytecodeNode* const current);
41 bool TransformLastAndCurrentBytecodes(BytecodeNode* const current);
42 bool CanElideCurrent(const BytecodeNode* const current) const;
43 bool CanElideLast(const BytecodeNode* const current) const;
45 const BytecodeNode* const current) const;
[all …]
Dbytecode-pipeline.cc14 BytecodeNode::BytecodeNode(Bytecode bytecode) { in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
19 BytecodeNode::BytecodeNode(Bytecode bytecode, uint32_t operand0) { in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
25 BytecodeNode::BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
33 BytecodeNode::BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
42 BytecodeNode::BytecodeNode(Bytecode bytecode, uint32_t operand0, in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
53 BytecodeNode::BytecodeNode(const BytecodeNode& other) { in BytecodeNode() function in v8::internal::interpreter::BytecodeNode
57 BytecodeNode& BytecodeNode::operator=(const BytecodeNode& other) { in operator =()
62 void BytecodeNode::set_bytecode(Bytecode bytecode) { in set_bytecode()
67 void BytecodeNode::set_bytecode(Bytecode bytecode, uint32_t operand0) { in set_bytecode()
73 void BytecodeNode::Clone(const BytecodeNode* const other) { in Clone()
[all …]
Dbytecode-pipeline.h17 class BytecodeNode; variable
28 virtual void Write(BytecodeNode* node) = 0;
34 virtual void WriteJump(BytecodeNode* node, BytecodeLabel* label) = 0;
141 class BytecodeNode final : ZoneObject {
143 explicit BytecodeNode(Bytecode bytecode = Bytecode::kIllegal);
144 BytecodeNode(Bytecode bytecode, uint32_t operand0);
145 BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1);
146 BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1,
148 BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1,
151 BytecodeNode(const BytecodeNode& other);
[all …]
Dbytecode-peephole-optimizer.cc32 void BytecodePeepholeOptimizer::Write(BytecodeNode* node) { in Write()
40 void BytecodePeepholeOptimizer::WriteJump(BytecodeNode* node, in WriteJump()
77 void BytecodePeepholeOptimizer::SetLast(const BytecodeNode* const node) { in SetLast()
82 const BytecodeNode* const node, int index) const { in GetConstantForIndexOperand()
98 const BytecodeNode* const current) { in TryToRemoveLastExpressionPosition()
113 const BytecodeNode* const current) const { in CanElideCurrent()
134 const BytecodeNode* const current) const { in CanElideLastBasedOnSourcePosition()
173 void TransformLdaStarToLdrLdar(Bytecode new_bytecode, BytecodeNode* const last, in TransformLdaStarToLdrLdar()
174 BytecodeNode* const current) { in TransformLdaStarToLdrLdar()
194 BytecodeNode* const current) { in TransformLastAndCurrentBytecodes()
[all …]
Dbytecode-register-optimizer.h29 void Write(BytecodeNode* node) override;
30 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override;
47 void WriteToNextStage(BytecodeNode* node) const;
48 void WriteToNextStage(BytecodeNode* node,
67 void DoLdar(const BytecodeNode* const node);
68 void DoMov(const BytecodeNode* const node);
69 void DoStar(const BytecodeNode* const node);
73 void PrepareOperands(BytecodeNode* const node);
74 void PrepareAccumulator(BytecodeNode* const node);
75 void PrepareRegisterOperands(BytecodeNode* const node);
[all …]
Dbytecode-array-writer.h28 void Write(BytecodeNode* node) override;
29 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override;
51 void EmitBytecode(const BytecodeNode* const node);
52 void EmitJump(BytecodeNode* node, BytecodeLabel* label);
53 void UpdateSourcePositionTable(const BytecodeNode* const node);
Dbytecode-register-optimizer.cc219 void BytecodeRegisterOptimizer::Write(BytecodeNode* node) { in Write()
263 void BytecodeRegisterOptimizer::WriteJump(BytecodeNode* node, in WriteJump()
309 void BytecodeRegisterOptimizer::WriteToNextStage(BytecodeNode* node) const { in WriteToNextStage()
314 BytecodeNode* node, const BytecodeSourceInfo& source_info) const { in WriteToNextStage()
330 BytecodeNode node(Bytecode::kStar, operand); in OutputRegisterTransfer()
334 BytecodeNode node(Bytecode::kLdar, operand); in OutputRegisterTransfer()
339 BytecodeNode node(Bytecode::kMov, operand0, operand1); in OutputRegisterTransfer()
420 BytecodeNode nop(Bytecode::kNop); in EmitNopForSourceInfo()
425 void BytecodeRegisterOptimizer::DoLdar(const BytecodeNode* const node) { in DoLdar()
432 void BytecodeRegisterOptimizer::DoMov(const BytecodeNode* const node) { in DoMov()
[all …]
Dbytecode-dead-code-optimizer.h22 void Write(BytecodeNode* node) override;
23 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override;
Dbytecode-dead-code-optimizer.cc24 void BytecodeDeadCodeOptimizer::Write(BytecodeNode* node) { in Write()
42 void BytecodeDeadCodeOptimizer::WriteJump(BytecodeNode* node, in WriteJump()
Dbytecode-array-writer.cc60 void BytecodeArrayWriter::Write(BytecodeNode* node) { in Write()
67 void BytecodeArrayWriter::WriteJump(BytecodeNode* node, BytecodeLabel* label) { in WriteJump()
98 const BytecodeNode* const node) { in UpdateSourcePositionTable()
131 OperandScale GetOperandScale(const BytecodeNode* const node) { in GetOperandScale()
162 void BytecodeArrayWriter::EmitBytecode(const BytecodeNode* const node) { in EmitBytecode()
340 void BytecodeArrayWriter::EmitJump(BytecodeNode* node, BytecodeLabel* label) { in EmitJump()
Dbytecode-array-builder.cc99 void BytecodeArrayBuilder::AttachSourceInfo(BytecodeNode* node) { in AttachSourceInfo()
117 BytecodeNode node(bytecode, operand0, operand1, operand2, operand3); in Output()
125 BytecodeNode node(bytecode, operand0, operand1, operand2); in Output()
133 BytecodeNode node(bytecode, operand0, operand1); in Output()
140 BytecodeNode node(bytecode, operand0); in Output()
147 BytecodeNode node(bytecode); in Output()
408 BytecodeNode node(jump_bytecode, 0); in OutputJump()
Dbytecode-array-builder.h24 class BytecodeNode; variable
324 void AttachSourceInfo(BytecodeNode* node);
/external/v8/test/unittests/interpreter/
Dbytecode-peephole-optimizer-unittest.cc27 void Write(BytecodeNode* node) override { in Write()
32 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override { in WriteJump()
53 const BytecodeNode& last_written() const { return last_written_; } in last_written()
60 BytecodeNode last_written_;
68 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
73 BytecodeNode jump(Bytecode::kJump, 0); in TEST_F()
82 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
95 BytecodeNode nop(Bytecode::kNop); in TEST_F()
97 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
105 BytecodeNode nop(Bytecode::kNop); in TEST_F()
[all …]
Dbytecode-dead-code-optimizer-unittest.cc22 void Write(BytecodeNode* node) override { in Write()
27 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override { in WriteJump()
43 const BytecodeNode& last_written() const { return last_written_; } in last_written()
49 BytecodeNode last_written_;
53 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
59 BytecodeNode jump(Bytecode::kJump, 0); in TEST_F()
66 BytecodeNode ret(Bytecode::kReturn); in TEST_F()
71 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
78 BytecodeNode thrw(Bytecode::kThrow); in TEST_F()
83 BytecodeNode add(Bytecode::kAdd, Register(0).ToOperand()); in TEST_F()
[all …]
Dbytecode-register-optimizer-unittest.cc31 void Write(BytecodeNode* node) override { output_.push_back(*node); } in Write()
32 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override { in WriteJump()
55 const BytecodeNode& last_written() const { return output_.back(); } in last_written()
56 const std::vector<BytecodeNode>* output() { return &output_; } in output()
62 std::vector<BytecodeNode> output_;
69 BytecodeNode node(Bytecode::kNop); in TEST_F()
77 BytecodeNode node(Bytecode::kNop); in TEST_F()
86 BytecodeNode node(Bytecode::kNop); in TEST_F()
96 BytecodeNode node(Bytecode::kStar, temp.ToOperand()); in TEST_F()
100 BytecodeNode jump(Bytecode::kJump, 0); in TEST_F()
[all …]
Dbytecode-pipeline-unittest.cc55 BytecodeNode node; in TEST_F()
61 BytecodeNode node(Bytecode::kLdaZero); in TEST_F()
69 BytecodeNode node(Bytecode::kJumpIfTrue, operands[0]); in TEST_F()
78 BytecodeNode node(Bytecode::kLdaGlobal, operands[0]); in TEST_F()
87 BytecodeNode node(Bytecode::kLdaNamedProperty, operands[0], operands[1], in TEST_F()
99 BytecodeNode node(Bytecode::kForInNext, operands[0], operands[1], operands[2], in TEST_F()
112 BytecodeNode node(Bytecode::kForInNext, operands[0], operands[1], operands[2], in TEST_F()
115 BytecodeNode other(Bytecode::kForInNext, operands[0], operands[1], in TEST_F()
122 BytecodeNode node(Bytecode::kForInNext, operands[0], operands[1], operands[2], in TEST_F()
126 BytecodeNode other(Bytecode::kForInNext, operands[0], operands[1], in TEST_F()
[all …]
Dbytecode-array-writer-unittest.cc29 void Write(BytecodeNode* node, const BytecodeSourceInfo& info);
60 void BytecodeArrayWriterUnittest::Write(BytecodeNode* node, in Write()
70 BytecodeNode node(bytecode); in Write()
76 BytecodeNode node(bytecode, operand0); in Write()
83 BytecodeNode node(bytecode, operand0, operand1); in Write()
90 BytecodeNode node(bytecode, operand0, operand1, operand2); in Write()
98 BytecodeNode node(bytecode, operand0, operand1, operand2, operand3); in Write()
105 BytecodeNode node(bytecode, 0); in WriteJump()