| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |