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

Side by Side Diff: src/interpreter/bytecodes.cc

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removes an unused label declaration. Created 4 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
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.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/bytecodes.h" 5 #include "src/interpreter/bytecodes.h"
6 6
7 #include "src/frames.h" 7 #include "src/frames.h"
8 #include "src/interpreter/bytecode-traits.h" 8 #include "src/interpreter/bytecode-traits.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // static 256 // static
257 bool Bytecodes::IsJump(Bytecode bytecode) { 257 bool Bytecodes::IsJump(Bytecode bytecode) {
258 return IsJumpImmediate(bytecode) || IsJumpConstant(bytecode) || 258 return IsJumpImmediate(bytecode) || IsJumpConstant(bytecode) ||
259 IsJumpConstantWide(bytecode); 259 IsJumpConstantWide(bytecode);
260 } 260 }
261 261
262 262
263 // static 263 // static
264 bool Bytecodes::IsCallOrNew(Bytecode bytecode) { 264 bool Bytecodes::IsCallOrNew(Bytecode bytecode) {
265 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || 265 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall ||
266 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallWide || 266 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallIC ||
267 bytecode == Bytecode::kTailCallWide || bytecode == Bytecode::kNewWide; 267 bytecode == Bytecode::kCallWide ||
268 bytecode == Bytecode::kTailCallWide ||
269 bytecode == Bytecode::kNewWide || bytecode == Bytecode::kCallICWide;
268 } 270 }
269 271
270 // static 272 // static
271 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { 273 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) {
272 return bytecode == Bytecode::kReturn || IsJump(bytecode); 274 return bytecode == Bytecode::kReturn || IsJump(bytecode);
273 } 275 }
274 276
275 // static 277 // static
276 bool Bytecodes::IsIndexOperandType(OperandType operand_type) { 278 bool Bytecodes::IsIndexOperandType(OperandType operand_type) {
277 return operand_type == OperandType::kIdx8 || 279 return operand_type == OperandType::kIdx8 ||
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 } else { 602 } else {
601 std::ostringstream s; 603 std::ostringstream s;
602 s << "r" << index(); 604 s << "r" << index();
603 return s.str(); 605 return s.str();
604 } 606 }
605 } 607 }
606 608
607 } // namespace interpreter 609 } // namespace interpreter
608 } // namespace internal 610 } // namespace internal
609 } // namespace v8 611 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698