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

Side by Side Diff: test/unittests/compiler/instruction-selector-unittest.cc

Issue 2060213002: Revert of Replace all remaining Oddball checks with new function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « test/cctest/test-strings.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/instruction-selector-unittest.h" 5 #include "test/unittests/compiler/instruction-selector-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/schedule.h" 9 #include "src/compiler/schedule.h"
10 #include "src/flags.h" 10 #include "src/flags.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 EXPECT_EQ(bailout_id_before, desc_before->bailout_id()); 473 EXPECT_EQ(bailout_id_before, desc_before->bailout_id());
474 EXPECT_EQ(OutputFrameStateCombine::kPushOutput, 474 EXPECT_EQ(OutputFrameStateCombine::kPushOutput,
475 desc_before->state_combine().kind()); 475 desc_before->state_combine().kind());
476 EXPECT_EQ(1u, desc_before->parameters_count()); 476 EXPECT_EQ(1u, desc_before->parameters_count());
477 EXPECT_EQ(1u, desc_before->locals_count()); 477 EXPECT_EQ(1u, desc_before->locals_count());
478 EXPECT_EQ(1u, desc_before->stack_count()); 478 EXPECT_EQ(1u, desc_before->stack_count());
479 EXPECT_EQ(43, s.ToInt32(call_instr->InputAt(3))); 479 EXPECT_EQ(43, s.ToInt32(call_instr->InputAt(3)));
480 EXPECT_EQ(0, s.ToInt32(call_instr->InputAt(4))); // This should be a context. 480 EXPECT_EQ(0, s.ToInt32(call_instr->InputAt(4))); // This should be a context.
481 // We inserted 0 here. 481 // We inserted 0 here.
482 EXPECT_EQ(0.5, s.ToFloat64(call_instr->InputAt(5))); 482 EXPECT_EQ(0.5, s.ToFloat64(call_instr->InputAt(5)));
483 EXPECT_TRUE(s.ToHeapObject(call_instr->InputAt(6))->IsUndefined(isolate())); 483 EXPECT_TRUE(s.ToHeapObject(call_instr->InputAt(6))->IsUndefined());
484 EXPECT_EQ(MachineType::AnyTagged(), 484 EXPECT_EQ(MachineType::AnyTagged(),
485 desc_before->GetType(0)); // function is always 485 desc_before->GetType(0)); // function is always
486 // tagged/any. 486 // tagged/any.
487 EXPECT_EQ(MachineType::Int32(), desc_before->GetType(1)); 487 EXPECT_EQ(MachineType::Int32(), desc_before->GetType(1));
488 EXPECT_EQ(MachineType::AnyTagged(), 488 EXPECT_EQ(MachineType::AnyTagged(),
489 desc_before->GetType(2)); // context is always 489 desc_before->GetType(2)); // context is always
490 // tagged/any. 490 // tagged/any.
491 EXPECT_EQ(MachineType::Float64(), desc_before->GetType(3)); 491 EXPECT_EQ(MachineType::Float64(), desc_before->GetType(3));
492 EXPECT_EQ(MachineType::AnyTagged(), desc_before->GetType(4)); 492 EXPECT_EQ(MachineType::AnyTagged(), desc_before->GetType(4));
493 493
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14))); 621 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14)));
622 // Continuation. 622 // Continuation.
623 623
624 EXPECT_EQ(kArchRet, s[index++]->arch_opcode()); 624 EXPECT_EQ(kArchRet, s[index++]->arch_opcode());
625 EXPECT_EQ(index, s.size()); 625 EXPECT_EQ(index, s.size());
626 } 626 }
627 627
628 } // namespace compiler 628 } // namespace compiler
629 } // namespace internal 629 } // namespace internal
630 } // namespace v8 630 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/test-strings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698