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

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

Issue 2709533002: Revert of [interpreter] Create custom call opcodes for specific argument counts (Closed)
Patch Set: Created 3 years, 10 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
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/interpreter/interpreter-assembler.h" 5 #include "src/interpreter/interpreter-assembler.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 } 444 }
445 445
446 Node* InterpreterAssembler::BytecodeOperandImmIntPtr(int operand_index) { 446 Node* InterpreterAssembler::BytecodeOperandImmIntPtr(int operand_index) {
447 return ChangeInt32ToIntPtr(BytecodeOperandImm(operand_index)); 447 return ChangeInt32ToIntPtr(BytecodeOperandImm(operand_index));
448 } 448 }
449 449
450 Node* InterpreterAssembler::BytecodeOperandImmSmi(int operand_index) { 450 Node* InterpreterAssembler::BytecodeOperandImmSmi(int operand_index) {
451 return SmiFromWord32(BytecodeOperandImm(operand_index)); 451 return SmiFromWord32(BytecodeOperandImm(operand_index));
452 } 452 }
453 453
454 Node* InterpreterAssembler::BytecodeOperandIdxInt32(int operand_index) { 454 Node* InterpreterAssembler::BytecodeOperandIdx(int operand_index) {
455 DCHECK(OperandType::kIdx == 455 DCHECK(OperandType::kIdx ==
456 Bytecodes::GetOperandType(bytecode_, operand_index)); 456 Bytecodes::GetOperandType(bytecode_, operand_index));
457 OperandSize operand_size = 457 OperandSize operand_size =
458 Bytecodes::GetOperandSize(bytecode_, operand_index, operand_scale()); 458 Bytecodes::GetOperandSize(bytecode_, operand_index, operand_scale());
459 return BytecodeUnsignedOperand(operand_index, operand_size); 459 return ChangeUint32ToWord(
460 } 460 BytecodeUnsignedOperand(operand_index, operand_size));
461
462 Node* InterpreterAssembler::BytecodeOperandIdx(int operand_index) {
463 return ChangeUint32ToWord(BytecodeOperandIdxInt32(operand_index));
464 } 461 }
465 462
466 Node* InterpreterAssembler::BytecodeOperandIdxSmi(int operand_index) { 463 Node* InterpreterAssembler::BytecodeOperandIdxSmi(int operand_index) {
467 return SmiTag(BytecodeOperandIdx(operand_index)); 464 return SmiTag(BytecodeOperandIdx(operand_index));
468 } 465 }
469 466
470 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) { 467 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) {
471 DCHECK(Bytecodes::IsRegisterOperandType( 468 DCHECK(Bytecodes::IsRegisterOperandType(
472 Bytecodes::GetOperandType(bytecode_, operand_index))); 469 Bytecodes::GetOperandType(bytecode_, operand_index)));
473 OperandSize operand_size = 470 OperandSize operand_size =
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 Goto(&loop); 1418 Goto(&loop);
1422 } 1419 }
1423 Bind(&done_loop); 1420 Bind(&done_loop);
1424 1421
1425 return array; 1422 return array;
1426 } 1423 }
1427 1424
1428 } // namespace interpreter 1425 } // namespace interpreter
1429 } // namespace internal 1426 } // namespace internal
1430 } // namespace v8 1427 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | test/cctest/interpreter/bytecode_expectations/CallGlobal.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698