Index: test/cctest/compiler/codegen-tester.h |
diff --git a/test/cctest/compiler/codegen-tester.h b/test/cctest/compiler/codegen-tester.h |
index 9ca1066ecd5a859b450c6a700a4a8d00635cbcb3..e12026b031ae26a0d2ba3fc5eeabf8f47718c270 100644 |
--- a/test/cctest/compiler/codegen-tester.h |
+++ b/test/cctest/compiler/codegen-tester.h |
@@ -52,6 +52,11 @@ class RawMachineAssemblerTester : public HandleAndZoneScope, |
void GenerateCode() { Generate(); } |
+ Handle<Code> GetCode() { |
+ Generate(); |
+ return code_.ToHandleChecked(); |
+ } |
+ |
protected: |
virtual byte* Generate() { |
if (code_.is_null()) { |