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

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

Issue 1645763003: [Interpreter] TurboFan implementation of intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged with oth@'s changes. Created 4 years, 9 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.cc » ('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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 // static 302 // static
303 bool Bytecodes::IsCallOrNew(Bytecode bytecode) { 303 bool Bytecodes::IsCallOrNew(Bytecode bytecode) {
304 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || 304 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall ||
305 bytecode == Bytecode::kNew; 305 bytecode == Bytecode::kNew;
306 } 306 }
307 307
308 // static 308 // static
309 bool Bytecodes::IsCallRuntime(Bytecode bytecode) { 309 bool Bytecodes::IsCallRuntime(Bytecode bytecode) {
310 return bytecode == Bytecode::kCallRuntime || 310 return bytecode == Bytecode::kCallRuntime ||
311 bytecode == Bytecode::kCallRuntimeForPair; 311 bytecode == Bytecode::kCallRuntimeForPair ||
312 bytecode == Bytecode::kInvokeIntrinsic;
312 } 313 }
313 314
314 // static 315 // static
315 bool Bytecodes::IsDebugBreak(Bytecode bytecode) { 316 bool Bytecodes::IsDebugBreak(Bytecode bytecode) {
316 switch (bytecode) { 317 switch (bytecode) {
317 #define CASE(Name, ...) case Bytecode::k##Name: 318 #define CASE(Name, ...) case Bytecode::k##Name:
318 DEBUG_BREAK_BYTECODE_LIST(CASE); 319 DEBUG_BREAK_BYTECODE_LIST(CASE);
319 #undef CASE 320 #undef CASE
320 return true; 321 return true;
321 default: 322 default:
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } else { 676 } else {
676 std::ostringstream s; 677 std::ostringstream s;
677 s << "r" << index(); 678 s << "r" << index();
678 return s.str(); 679 return s.str();
679 } 680 }
680 } 681 }
681 682
682 } // namespace interpreter 683 } // namespace interpreter
683 } // namespace internal 684 } // namespace internal
684 } // namespace v8 685 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698