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

Side by Side Diff: test/unittests/interpreter/bytecodes-unittest.cc

Issue 2122183002: [Interpreter] Collect type feedback for calls in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed few comments. Created 4 years, 5 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 <vector> 5 #include <vector>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "test/unittests/interpreter/bytecode-utils.h" 10 #include "test/unittests/interpreter/bytecode-utils.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 0, 162 0,
163 "LdaSmi.ExtraWide [100000]"}, 163 "LdaSmi.ExtraWide [100000]"},
164 {{B(LdaSmi), U8(-1)}, 2, 0, " LdaSmi [-1]"}, 164 {{B(LdaSmi), U8(-1)}, 2, 0, " LdaSmi [-1]"},
165 {{B(Wide), B(LdaSmi), U16(-1000)}, 4, 0, " LdaSmi.Wide [-1000]"}, 165 {{B(Wide), B(LdaSmi), U16(-1000)}, 4, 0, " LdaSmi.Wide [-1000]"},
166 {{B(ExtraWide), B(LdaSmi), U32(-100000)}, 166 {{B(ExtraWide), B(LdaSmi), U32(-100000)},
167 6, 167 6,
168 0, 168 0,
169 "LdaSmi.ExtraWide [-100000]"}, 169 "LdaSmi.ExtraWide [-100000]"},
170 {{B(Star), R8(5)}, 2, 0, " Star r5"}, 170 {{B(Star), R8(5)}, 2, 0, " Star r5"},
171 {{B(Wide), B(Star), R16(136)}, 4, 0, " Star.Wide r136"}, 171 {{B(Wide), B(Star), R16(136)}, 4, 0, " Star.Wide r136"},
172 {{B(Wide), B(Call), R16(134), R16(135), U16(2), U16(177)}, 172 {{B(Wide), B(CallWithFeedback), R16(134), R16(135), U16(2), U16(177)},
173 10, 173 10,
174 0, 174 0,
175 "Call.Wide r134, r135, #2, [177]"}, 175 "CallWithFeedback.Wide r134, r135, #2, [177]"},
176 {{B(Ldar), 176 {{B(Ldar),
177 static_cast<uint8_t>(Register::FromParameterIndex(2, 3).ToOperand())}, 177 static_cast<uint8_t>(Register::FromParameterIndex(2, 3).ToOperand())},
178 2, 178 2,
179 3, 179 3,
180 " Ldar a1"}, 180 " Ldar a1"},
181 {{B(Wide), B(CreateObjectLiteral), U16(513), U16(1027), U8(165)}, 181 {{B(Wide), B(CreateObjectLiteral), U16(513), U16(1027), U8(165)},
182 7, 182 7,
183 0, 183 0,
184 "CreateObjectLiteral.Wide [513], [1027], #165"}, 184 "CreateObjectLiteral.Wide [513], [1027], #165"},
185 {{B(ExtraWide), B(JumpIfNull), U32(123456789)}, 185 {{B(ExtraWide), B(JumpIfNull), U32(123456789)},
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 std::set<std::string> names; 306 std::set<std::string> names;
307 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kNone)); 307 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kNone));
308 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kRead)); 308 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kRead));
309 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kWrite)); 309 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kWrite));
310 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kReadWrite)); 310 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kReadWrite));
311 CHECK_EQ(names.size(), 4); 311 CHECK_EQ(names.size(), 4);
312 } 312 }
313 } // namespace interpreter 313 } // namespace interpreter
314 } // namespace internal 314 } // namespace internal
315 } // namespace v8 315 } // namespace v8
OLDNEW
« test/cctest/cctest.status ('K') | « test/unittests/interpreter/bytecode-array-builder-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698