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

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

Issue 2246463002: [compiler] Remove compiler internals from CodeAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/compiler/code-assembler.cc ('k') | test/cctest/compiler/test-code-assembler.cc » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 "src/handles.h" 5 #include "src/handles.h"
6 #include "src/interface-descriptors.h" 6 #include "src/interface-descriptors.h"
7 #include "src/isolate.h" 7 #include "src/isolate.h"
8 #include "test/cctest/compiler/function-tester.h" 8 #include "test/cctest/compiler/function-tester.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // specific flags. 44 // specific flags.
45 CodeAssemblerTesterImpl(Isolate* isolate, Code::Flags flags) 45 CodeAssemblerTesterImpl(Isolate* isolate, Code::Flags flags)
46 : ZoneHolder(isolate), 46 : ZoneHolder(isolate),
47 CodeAssemblerT(isolate, ZoneHolder::zone(), 0, flags, "test"), 47 CodeAssemblerT(isolate, ZoneHolder::zone(), 0, flags, "test"),
48 scope_(isolate) {} 48 scope_(isolate) {}
49 49
50 Handle<Code> GenerateCodeCloseAndEscape() { 50 Handle<Code> GenerateCodeCloseAndEscape() {
51 return scope_.CloseAndEscape(CodeAssemblerT::GenerateCode()); 51 return scope_.CloseAndEscape(CodeAssemblerT::GenerateCode());
52 } 52 }
53 53
54 // Expose some internal methods.
55
56 Node* SmiShiftBitsConstant() {
57 return CodeAssemblerT::SmiShiftBitsConstant();
58 }
59
60 private: 54 private:
61 HandleScope scope_; 55 HandleScope scope_;
62 LocalContext context_; 56 LocalContext context_;
63 }; 57 };
64 58
65 } // namespace compiler 59 } // namespace compiler
66 } // namespace internal 60 } // namespace internal
67 } // namespace v8 61 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | test/cctest/compiler/test-code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698