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

Side by Side Diff: test/cctest/compiler/codegen-tester.h

Issue 2122853002: Implement UnaligedLoad and UnaligedStore turbofan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits. Fixes some errors 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
« no previous file with comments | « src/machine-type.h ('k') | test/cctest/compiler/graph-builder-tester.h » ('j') | 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 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
7 7
8 #include "src/compiler/instruction-selector.h" 8 #include "src/compiler/instruction-selector.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/compiler/raw-machine-assembler.h" 10 #include "src/compiler/raw-machine-assembler.h"
(...skipping 20 matching lines...) Expand all
31 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, p1, 31 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, p1,
32 p2, p3, p4)), 32 p2, p3, p4)),
33 RawMachineAssembler( 33 RawMachineAssembler(
34 main_isolate(), new (main_zone()) Graph(main_zone()), 34 main_isolate(), new (main_zone()) Graph(main_zone()),
35 Linkage::GetSimplifiedCDescriptor( 35 Linkage::GetSimplifiedCDescriptor(
36 main_zone(), 36 main_zone(),
37 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, 37 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0,
38 p1, p2, p3, p4), 38 p1, p2, p3, p4),
39 true), 39 true),
40 MachineType::PointerRepresentation(), 40 MachineType::PointerRepresentation(),
41 InstructionSelector::SupportedMachineOperatorFlags()) {} 41 InstructionSelector::SupportedMachineOperatorFlags(),
42 InstructionSelector::AlignmentRequirements()) {}
42 43
43 virtual ~RawMachineAssemblerTester() {} 44 virtual ~RawMachineAssemblerTester() {}
44 45
45 void CheckNumber(double expected, Object* number) { 46 void CheckNumber(double expected, Object* number) {
46 CHECK(this->isolate()->factory()->NewNumber(expected)->SameValue(number)); 47 CHECK(this->isolate()->factory()->NewNumber(expected)->SameValue(number));
47 } 48 }
48 49
49 void CheckString(const char* expected, Object* string) { 50 void CheckString(const char* expected, Object* string) {
50 CHECK( 51 CHECK(
51 this->isolate()->factory()->InternalizeUtf8String(expected)->SameValue( 52 this->isolate()->factory()->InternalizeUtf8String(expected)->SameValue(
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 539
539 void Run(RawMachineAssemblerTester<int32_t>* m); 540 void Run(RawMachineAssemblerTester<int32_t>* m);
540 void RunLeft(RawMachineAssemblerTester<int32_t>* m); 541 void RunLeft(RawMachineAssemblerTester<int32_t>* m);
541 void RunRight(RawMachineAssemblerTester<int32_t>* m); 542 void RunRight(RawMachineAssemblerTester<int32_t>* m);
542 }; 543 };
543 } // namespace compiler 544 } // namespace compiler
544 } // namespace internal 545 } // namespace internal
545 } // namespace v8 546 } // namespace v8
546 547
547 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 548 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
OLDNEW
« no previous file with comments | « src/machine-type.h ('k') | test/cctest/compiler/graph-builder-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698