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

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

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: rebase Created 4 years, 7 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 Generate(); 58 Generate();
59 return code_.ToHandleChecked(); 59 return code_.ToHandleChecked();
60 } 60 }
61 61
62 protected: 62 protected:
63 virtual byte* Generate() { 63 virtual byte* Generate() {
64 if (code_.is_null()) { 64 if (code_.is_null()) {
65 Schedule* schedule = this->Export(); 65 Schedule* schedule = this->Export();
66 CallDescriptor* call_descriptor = this->call_descriptor(); 66 CallDescriptor* call_descriptor = this->call_descriptor();
67 Graph* graph = this->graph(); 67 Graph* graph = this->graph();
68 CompilationInfo info("testing", main_isolate(), main_zone()); 68 CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone());
69 code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph, 69 code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph,
70 schedule); 70 schedule);
71 } 71 }
72 return this->code_.ToHandleChecked()->entry(); 72 return this->code_.ToHandleChecked()->entry();
73 } 73 }
74 74
75 private: 75 private:
76 MaybeHandle<Code> code_; 76 MaybeHandle<Code> code_;
77 }; 77 };
78 78
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 void Run(RawMachineAssemblerTester<int32_t>* m); 539 void Run(RawMachineAssemblerTester<int32_t>* m);
540 void RunLeft(RawMachineAssemblerTester<int32_t>* m); 540 void RunLeft(RawMachineAssemblerTester<int32_t>* m);
541 void RunRight(RawMachineAssemblerTester<int32_t>* m); 541 void RunRight(RawMachineAssemblerTester<int32_t>* m);
542 }; 542 };
543 } // namespace compiler 543 } // namespace compiler
544 } // namespace internal 544 } // namespace internal
545 } // namespace v8 545 } // namespace v8
546 546
547 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 547 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698