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

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

Issue 1584813002: [Interpreter] Make ForInPrepare take a kRegTriple8 and ForInNext take kRegPair8 for cache state (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_forin
Patch Set: Fix release Created 4 years, 11 months 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 UNREACHABLE(); 297 UNREACHABLE();
298 return nullptr; 298 return nullptr;
299 } 299 }
300 } 300 }
301 301
302 302
303 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) { 303 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) {
304 switch (interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)) { 304 switch (interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)) {
305 case interpreter::OperandType::kReg8: 305 case interpreter::OperandType::kReg8:
306 case interpreter::OperandType::kRegPair8: 306 case interpreter::OperandType::kRegPair8:
307 case interpreter::OperandType::kRegTriple8:
307 case interpreter::OperandType::kMaybeReg8: 308 case interpreter::OperandType::kMaybeReg8:
308 DCHECK_EQ( 309 DCHECK_EQ(
309 interpreter::OperandSize::kByte, 310 interpreter::OperandSize::kByte,
310 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); 311 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index));
311 return BytecodeOperandSignExtended(operand_index); 312 return BytecodeOperandSignExtended(operand_index);
312 case interpreter::OperandType::kReg16: 313 case interpreter::OperandType::kReg16:
313 DCHECK_EQ( 314 DCHECK_EQ(
314 interpreter::OperandSize::kShort, 315 interpreter::OperandSize::kShort,
315 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); 316 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index));
316 return BytecodeOperandShortSignExtended(operand_index); 317 return BytecodeOperandShortSignExtended(operand_index);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 return raw_assembler_->call_descriptor(); 743 return raw_assembler_->call_descriptor();
743 } 744 }
744 745
745 746
746 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 747 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
747 748
748 749
749 } // namespace compiler 750 } // namespace compiler
750 } // namespace internal 751 } // namespace internal
751 } // namespace v8 752 } // 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