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

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

Issue 1985753002: [interpreter] Introduce fused bytecodes for common sequences. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 7 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 <iomanip> 7 #include <iomanip>
8 8
9 #include "src/frames.h" 9 #include "src/frames.h"
10 #include "src/interpreter/bytecode-traits.h" 10 #include "src/interpreter/bytecode-traits.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return "Byte"; 93 return "Byte";
94 case OperandSize::kShort: 94 case OperandSize::kShort:
95 return "Short"; 95 return "Short";
96 case OperandSize::kQuad: 96 case OperandSize::kQuad:
97 return "Quad"; 97 return "Quad";
98 } 98 }
99 UNREACHABLE(); 99 UNREACHABLE();
100 return ""; 100 return "";
101 } 101 }
102 102
103
104 // static
105 uint8_t Bytecodes::ToByte(Bytecode bytecode) {
106 DCHECK(bytecode <= Bytecode::kLast);
107 return static_cast<uint8_t>(bytecode);
108 }
109
110
111 // static 103 // static
112 Bytecode Bytecodes::FromByte(uint8_t value) { 104 Bytecode Bytecodes::FromByte(uint8_t value) {
113 Bytecode bytecode = static_cast<Bytecode>(value); 105 Bytecode bytecode = static_cast<Bytecode>(value);
114 DCHECK(bytecode <= Bytecode::kLast); 106 DCHECK(bytecode <= Bytecode::kLast);
115 return bytecode; 107 return bytecode;
116 } 108 }
117 109
118 110
119 // static 111 // static
120 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) { 112 Bytecode Bytecodes::GetDebugBreak(Bytecode bytecode) {
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 } else { 929 } else {
938 std::ostringstream s; 930 std::ostringstream s;
939 s << "r" << index(); 931 s << "r" << index();
940 return s.str(); 932 return s.str();
941 } 933 }
942 } 934 }
943 935
944 } // namespace interpreter 936 } // namespace interpreter
945 } // namespace internal 937 } // namespace internal
946 } // namespace v8 938 } // 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