Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: src/compiler/interpreter-assembler.cc

Issue 1456453002: [Interpreter] Add support for Call bytecode to bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Compilation fix (signed/unsigned). Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/interpreter-assembler.h" 5 #include "src/compiler/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 return raw_assembler_->WordOr(WordShl(first_byte, kBitsPerByte), 186 return raw_assembler_->WordOr(WordShl(first_byte, kBitsPerByte),
187 second_byte); 187 second_byte);
188 #else 188 #else
189 #error "Unknown Architecture" 189 #error "Unknown Architecture"
190 #endif 190 #endif
191 } 191 }
192 } 192 }
193 193
194 194
195 Node* InterpreterAssembler::BytecodeOperandCount(int operand_index) { 195 Node* InterpreterAssembler::BytecodeOperandCount(int operand_index) {
196 DCHECK_EQ(interpreter::OperandType::kCount8, 196 switch (interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)) {
197 interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)); 197 case interpreter::OperandSize::kByte:
198 return BytecodeOperand(operand_index); 198 DCHECK_EQ(
199 interpreter::OperandType::kCount8,
200 interpreter::Bytecodes::GetOperandType(bytecode_, operand_index));
201 return BytecodeOperand(operand_index);
202 case interpreter::OperandSize::kShort:
203 DCHECK_EQ(
204 interpreter::OperandType::kCount16,
205 interpreter::Bytecodes::GetOperandType(bytecode_, operand_index));
206 return BytecodeOperandShort(operand_index);
207 default:
208 UNREACHABLE();
209 return nullptr;
210 }
199 } 211 }
200 212
201 213
202 Node* InterpreterAssembler::BytecodeOperandImm(int operand_index) { 214 Node* InterpreterAssembler::BytecodeOperandImm(int operand_index) {
203 DCHECK_EQ(interpreter::OperandType::kImm8, 215 DCHECK_EQ(interpreter::OperandType::kImm8,
204 interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)); 216 interpreter::Bytecodes::GetOperandType(bytecode_, operand_index));
205 return BytecodeOperandSignExtended(operand_index); 217 return BytecodeOperandSignExtended(operand_index);
206 } 218 }
207 219
208 220
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 return raw_assembler_->schedule(); 657 return raw_assembler_->schedule();
646 } 658 }
647 659
648 660
649 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 661 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
650 662
651 663
652 } // namespace compiler 664 } // namespace compiler
653 } // namespace internal 665 } // namespace internal
654 } // namespace v8 666 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698