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

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: Update. 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
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || 280 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall ||
281 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallWide || 281 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallWide ||
282 bytecode == Bytecode::kTailCallWide || bytecode == Bytecode::kNewWide; 282 bytecode == Bytecode::kTailCallWide || bytecode == Bytecode::kNewWide;
283 } 283 }
284 284
285 // static 285 // static
286 bool Bytecodes::IsCallRuntime(Bytecode bytecode) { 286 bool Bytecodes::IsCallRuntime(Bytecode bytecode) {
287 return bytecode == Bytecode::kCallRuntime || 287 return bytecode == Bytecode::kCallRuntime ||
288 bytecode == Bytecode::kCallRuntimeWide || 288 bytecode == Bytecode::kCallRuntimeWide ||
289 bytecode == Bytecode::kCallRuntimeForPair || 289 bytecode == Bytecode::kCallRuntimeForPair ||
290 bytecode == Bytecode::kCallRuntimeForPairWide; 290 bytecode == Bytecode::kCallRuntimeForPairWide ||
291 bytecode == Bytecode::kInvokeIntrinsic ||
292 bytecode == Bytecode::kInvokeIntrinsicWide;
291 } 293 }
292 294
293 // static 295 // static
294 bool Bytecodes::IsDebugBreak(Bytecode bytecode) { 296 bool Bytecodes::IsDebugBreak(Bytecode bytecode) {
295 switch (bytecode) { 297 switch (bytecode) {
296 #define CASE(Name, ...) case Bytecode::k##Name: 298 #define CASE(Name, ...) case Bytecode::k##Name:
297 DEBUG_BREAK_BYTECODE_LIST(CASE); 299 DEBUG_BREAK_BYTECODE_LIST(CASE);
298 #undef CASE 300 #undef CASE
299 return true; 301 return true;
300 default: 302 default:
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } else { 641 } else {
640 std::ostringstream s; 642 std::ostringstream s;
641 s << "r" << index(); 643 s << "r" << index();
642 return s.str(); 644 return s.str();
643 } 645 }
644 } 646 }
645 647
646 } // namespace interpreter 648 } // namespace interpreter
647 } // namespace internal 649 } // namespace internal
648 } // namespace v8 650 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698