| OLD | NEW |
| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 {{B(Wide), B(Star), R16(136)}, 4, 0, " Star.Wide r136"}, | 198 {{B(Wide), B(Star), R16(136)}, 4, 0, " Star.Wide r136"}, |
| 199 {{B(Wide), B(Call), R16(134), R16(135), U16(2), U16(177)}, | 199 {{B(Wide), B(Call), R16(134), R16(135), U16(2), U16(177)}, |
| 200 10, | 200 10, |
| 201 0, | 201 0, |
| 202 "Call.Wide r134, r135, #2, [177]"}, | 202 "Call.Wide r134, r135, #2, [177]"}, |
| 203 {{B(Ldar), | 203 {{B(Ldar), |
| 204 static_cast<uint8_t>(Register::FromParameterIndex(2, 3).ToOperand())}, | 204 static_cast<uint8_t>(Register::FromParameterIndex(2, 3).ToOperand())}, |
| 205 2, | 205 2, |
| 206 3, | 206 3, |
| 207 " Ldar a1"}, | 207 " Ldar a1"}, |
| 208 {{B(Wide), B(CreateObjectLiteral), U16(513), U16(1027), U16(165)}, | 208 {{B(Wide), B(CreateObjectLiteral), U16(513), U16(1027), U8(165)}, |
| 209 7, | 209 7, |
| 210 0, | 210 0, |
| 211 "CreateObjectLiteral.Wide [513], [1027], #165"}, | 211 "CreateObjectLiteral.Wide [513], [1027], #165"}, |
| 212 {{B(ExtraWide), B(JumpIfNull), U32(123456789)}, | 212 {{B(ExtraWide), B(JumpIfNull), U32(123456789)}, |
| 213 6, | 213 6, |
| 214 0, | 214 0, |
| 215 "JumpIfNull.ExtraWide [123456789]"}, | 215 "JumpIfNull.ExtraWide [123456789]"}, |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 for (size_t i = 0; i < arraysize(cases); ++i) { | 218 for (size_t i = 0; i < arraysize(cases); ++i) { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 std::set<std::string> names; | 391 std::set<std::string> names; |
| 392 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kNone)); | 392 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kNone)); |
| 393 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kRead)); | 393 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kRead)); |
| 394 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kWrite)); | 394 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kWrite)); |
| 395 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kReadWrite)); | 395 names.insert(Bytecodes::AccumulatorUseToString(AccumulatorUse::kReadWrite)); |
| 396 CHECK_EQ(names.size(), 4); | 396 CHECK_EQ(names.size(), 4); |
| 397 } | 397 } |
| 398 } // namespace interpreter | 398 } // namespace interpreter |
| 399 } // namespace internal | 399 } // namespace internal |
| 400 } // namespace v8 | 400 } // namespace v8 |
| OLD | NEW |