Changeset 209928 in webkit for trunk/Source/JavaScriptCore/b3/B3Compilation.h
- Timestamp:
- Dec 16, 2016, 11:24:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/b3/B3Compilation.h
r206525 r209928 41 41 class Procedure; 42 42 43 // This is a fool-proof API for compiling a Procedure to code and then running that code. You compile 44 // a Procedure using this API by doing: 45 // 46 // std::unique_ptr<Compilation> compilation = std::make_unique<Compilation>(vm, proc); 47 // 48 // Then you keep the Compilation object alive for as long as you want to be able to run the code. If 49 // this API feels too high-level, you can use B3::generate() directly. 43 // This class is a way to keep the result of a B3 compilation alive 44 // and runnable. 50 45 51 46 class Compilation { … … 54 49 55 50 public: 56 JS_EXPORT_PRIVATE Compilation(VM&, Procedure&, unsigned optLevel = 1);57 58 // This constructor allows you to manually create a Compilation. It's currently only used by test59 // code. Probably best to keep it that way.60 51 JS_EXPORT_PRIVATE Compilation(MacroAssemblerCodeRef, std::unique_ptr<OpaqueByproducts>); 61 52 JS_EXPORT_PRIVATE Compilation(Compilation&&); 62 53 JS_EXPORT_PRIVATE ~Compilation(); 63 54
Note:
See TracChangeset
for help on using the changeset viewer.