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

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

Issue 1410003003: [Interpreter] Add support for JS runtime calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_api_builtin
Patch Set: Rebased 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 case interpreter::OperandType::kCount8: 310 case interpreter::OperandType::kCount8:
311 EXPECT_THAT(m.BytecodeOperandCount(i), m.IsBytecodeOperand(offset)); 311 EXPECT_THAT(m.BytecodeOperandCount(i), m.IsBytecodeOperand(offset));
312 break; 312 break;
313 case interpreter::OperandType::kIdx8: 313 case interpreter::OperandType::kIdx8:
314 EXPECT_THAT(m.BytecodeOperandIdx(i), m.IsBytecodeOperand(offset)); 314 EXPECT_THAT(m.BytecodeOperandIdx(i), m.IsBytecodeOperand(offset));
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::kReg8: 321 case interpreter::OperandType::kReg8:
321 EXPECT_THAT(m.BytecodeOperandReg(i), 322 EXPECT_THAT(m.BytecodeOperandReg(i),
322 m.IsBytecodeOperandSignExtended(offset)); 323 m.IsBytecodeOperandSignExtended(offset));
323 break; 324 break;
324 case interpreter::OperandType::kIdx16: 325 case interpreter::OperandType::kIdx16:
325 EXPECT_THAT(m.BytecodeOperandIdx(i), 326 EXPECT_THAT(m.BytecodeOperandIdx(i),
326 m.IsBytecodeOperandShort(offset)); 327 m.IsBytecodeOperandShort(offset));
327 break; 328 break;
328 case interpreter::OperandType::kNone: 329 case interpreter::OperandType::kNone:
329 UNREACHABLE(); 330 UNREACHABLE();
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 feedback_vector, 627 feedback_vector,
627 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher, 628 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher,
628 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 629 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset -
629 kHeapObjectTag))); 630 kHeapObjectTag)));
630 } 631 }
631 } 632 }
632 633
633 } // namespace compiler 634 } // namespace compiler
634 } // namespace internal 635 } // namespace internal
635 } // namespace v8 636 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-bytecode-generator.cc ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698