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

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

Issue 1456453002: [Interpreter] Add support for Call bytecode to bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Compilation fix (signed/unsigned). Created 5 years, 1 month 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 "test/unittests/compiler/interpreter-assembler-unittest.h" 5 #include "test/unittests/compiler/interpreter-assembler-unittest.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/interface-descriptors.h" 10 #include "src/interface-descriptors.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 break; 315 break;
316 case interpreter::OperandType::kImm8: 316 case interpreter::OperandType::kImm8:
317 EXPECT_THAT(m.BytecodeOperandImm(i), 317 EXPECT_THAT(m.BytecodeOperandImm(i),
318 m.IsBytecodeOperandSignExtended(offset)); 318 m.IsBytecodeOperandSignExtended(offset));
319 break; 319 break;
320 case interpreter::OperandType::kMaybeReg8: 320 case interpreter::OperandType::kMaybeReg8:
321 case interpreter::OperandType::kReg8: 321 case interpreter::OperandType::kReg8:
322 EXPECT_THAT(m.BytecodeOperandReg(i), 322 EXPECT_THAT(m.BytecodeOperandReg(i),
323 m.IsBytecodeOperandSignExtended(offset)); 323 m.IsBytecodeOperandSignExtended(offset));
324 break; 324 break;
325 case interpreter::OperandType::kCount16:
326 EXPECT_THAT(m.BytecodeOperandCount(i),
327 m.IsBytecodeOperandShort(offset));
328 break;
325 case interpreter::OperandType::kIdx16: 329 case interpreter::OperandType::kIdx16:
326 EXPECT_THAT(m.BytecodeOperandIdx(i), 330 EXPECT_THAT(m.BytecodeOperandIdx(i),
327 m.IsBytecodeOperandShort(offset)); 331 m.IsBytecodeOperandShort(offset));
328 break; 332 break;
329 case interpreter::OperandType::kNone: 333 case interpreter::OperandType::kNone:
330 UNREACHABLE(); 334 UNREACHABLE();
331 break; 335 break;
332 } 336 }
333 } 337 }
334 } 338 }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 feedback_vector, 631 feedback_vector,
628 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher, 632 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher,
629 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 633 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset -
630 kHeapObjectTag))); 634 kHeapObjectTag)));
631 } 635 }
632 } 636 }
633 637
634 } // namespace compiler 638 } // namespace compiler
635 } // namespace internal 639 } // namespace internal
636 } // namespace v8 640 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/bytecode-graph-builder-unittest.cc ('k') | test/unittests/compiler/node-test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698