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

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

Issue 1257543003: [Interpreter] Add more bytecode definitions and add operand types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Attempt to address patch set 3 comments. Created 5 years, 4 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/compiler/interpreter-assembler.h" 5 #include "src/compiler/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/instruction-selector.h" 10 #include "src/compiler/instruction-selector.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 84
85 Node* InterpreterAssembler::RegisterFrameOffset(Node* index) { 85 Node* InterpreterAssembler::RegisterFrameOffset(Node* index) {
86 return raw_assembler_->Int32Sub( 86 return raw_assembler_->Int32Sub(
87 Int32Constant(kFirstRegisterOffsetFromFp), 87 Int32Constant(kFirstRegisterOffsetFromFp),
88 raw_assembler_->Word32Shl(index, Int32Constant(kPointerSizeLog2))); 88 raw_assembler_->Word32Shl(index, Int32Constant(kPointerSizeLog2)));
89 } 89 }
90 90
91 91
92 Node* InterpreterAssembler::BytecodeArg(int delta) { 92 Node* InterpreterAssembler::BytecodeOperand(int delta) {
93 DCHECK_LT(delta, interpreter::Bytecodes::NumberOfArguments(bytecode_)); 93 DCHECK_LT(delta, interpreter::Bytecodes::NumberOfOperands(bytecode_));
94 return raw_assembler_->Load(kMachUint8, BytecodePointer(), 94 return raw_assembler_->Load(kMachUint8, BytecodePointer(),
95 Int32Constant(1 + delta)); 95 Int32Constant(1 + delta));
96 } 96 }
97 97
98 98
99 Node* InterpreterAssembler::LoadRegister(int index) { 99 Node* InterpreterAssembler::LoadRegister(int index) {
100 return raw_assembler_->Load(kMachPtr, FramePointer(), 100 return raw_assembler_->Load(kMachPtr, FramePointer(),
101 RegisterFrameOffset(index)); 101 RegisterFrameOffset(index));
102 } 102 }
103 103
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 199
200 Node* InterpreterAssembler::NumberConstant(double value) { 200 Node* InterpreterAssembler::NumberConstant(double value) {
201 return raw_assembler_->NumberConstant(value); 201 return raw_assembler_->NumberConstant(value);
202 } 202 }
203 203
204 204
205 } // namespace interpreter 205 } // namespace interpreter
206 } // namespace internal 206 } // namespace internal
207 } // namespace v8 207 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698