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

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

Issue 2085823003: Revert of [Interpreter] Map runtime id's to intrinsic id's in InvokeIntrinsic bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/interpreter/interpreter-assembler.h ('k') | src/interpreter/interpreter-intrinsics.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/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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 356
357 Node* InterpreterAssembler::BytecodeOperandRuntimeId(int operand_index) { 357 Node* InterpreterAssembler::BytecodeOperandRuntimeId(int operand_index) {
358 DCHECK(OperandType::kRuntimeId == 358 DCHECK(OperandType::kRuntimeId ==
359 Bytecodes::GetOperandType(bytecode_, operand_index)); 359 Bytecodes::GetOperandType(bytecode_, operand_index));
360 OperandSize operand_size = 360 OperandSize operand_size =
361 Bytecodes::GetOperandSize(bytecode_, operand_index, operand_scale()); 361 Bytecodes::GetOperandSize(bytecode_, operand_index, operand_scale());
362 DCHECK_EQ(operand_size, OperandSize::kShort); 362 DCHECK_EQ(operand_size, OperandSize::kShort);
363 return BytecodeUnsignedOperand(operand_index, operand_size); 363 return BytecodeUnsignedOperand(operand_index, operand_size);
364 } 364 }
365 365
366 Node* InterpreterAssembler::BytecodeOperandIntrinsicId(int operand_index) {
367 DCHECK(OperandType::kIntrinsicId ==
368 Bytecodes::GetOperandType(bytecode_, operand_index));
369 OperandSize operand_size =
370 Bytecodes::GetOperandSize(bytecode_, operand_index, operand_scale());
371 DCHECK_EQ(operand_size, OperandSize::kByte);
372 return BytecodeUnsignedOperand(operand_index, operand_size);
373 }
374
375 Node* InterpreterAssembler::LoadConstantPoolEntry(Node* index) { 366 Node* InterpreterAssembler::LoadConstantPoolEntry(Node* index) {
376 Node* constant_pool = LoadObjectField(BytecodeArrayTaggedPointer(), 367 Node* constant_pool = LoadObjectField(BytecodeArrayTaggedPointer(),
377 BytecodeArray::kConstantPoolOffset); 368 BytecodeArray::kConstantPoolOffset);
378 Node* entry_offset = 369 Node* entry_offset =
379 IntPtrAdd(IntPtrConstant(FixedArray::kHeaderSize - kHeapObjectTag), 370 IntPtrAdd(IntPtrConstant(FixedArray::kHeaderSize - kHeapObjectTag),
380 WordShl(index, kPointerSizeLog2)); 371 WordShl(index, kPointerSizeLog2));
381 return Load(MachineType::AnyTagged(), constant_pool, entry_offset); 372 return Load(MachineType::AnyTagged(), constant_pool, entry_offset);
382 } 373 }
383 374
384 Node* InterpreterAssembler::LoadContextSlot(Node* context, int slot_index) { 375 Node* InterpreterAssembler::LoadContextSlot(Node* context, int slot_index) {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 Goto(&loop); 761 Goto(&loop);
771 } 762 }
772 Bind(&done_loop); 763 Bind(&done_loop);
773 764
774 return array; 765 return array;
775 } 766 }
776 767
777 } // namespace interpreter 768 } // namespace interpreter
778 } // namespace internal 769 } // namespace internal
779 } // namespace v8 770 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/interpreter/interpreter-intrinsics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698