HermesExecutorFactory.smali
.class public Lcom/facebook/hermes/reactexecutor/HermesExecutorFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/facebook/react/bridge/JavaScriptExecutorFactory;
# static fields
.field private static final TAG:Ljava/lang/String; = "Hermes"
# instance fields
.field private final mConfig:Lcom/facebook/hermes/reactexecutor/RuntimeConfig;
# direct methods
.method public constructor <init>()V
.registers 4
.line 1
new-instance v0, Lcom/facebook/hermes/reactexecutor/RuntimeConfig;
const-wide/16 v1, 0xc00
invoke-direct {v0, v1, v2}, Lcom/facebook/hermes/reactexecutor/RuntimeConfig;-><init>(J)V
invoke-direct {p0, v0}, Lcom/facebook/hermes/reactexecutor/HermesExecutorFactory;-><init>(Lcom/facebook/hermes/reactexecutor/RuntimeConfig;)V
return-void
.end method
.method public constructor <init>(Lcom/facebook/hermes/reactexecutor/RuntimeConfig;)V
.registers 2
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/facebook/hermes/reactexecutor/HermesExecutorFactory;->mConfig:Lcom/facebook/hermes/reactexecutor/RuntimeConfig;
return-void
.end method
# virtual methods
.method public create()Lcom/facebook/react/bridge/JavaScriptExecutor;
.registers 3
new-instance v0, Lcom/facebook/hermes/reactexecutor/HermesExecutor;
iget-object v1, p0, Lcom/facebook/hermes/reactexecutor/HermesExecutorFactory;->mConfig:Lcom/facebook/hermes/reactexecutor/RuntimeConfig;
invoke-direct {v0, v1}, Lcom/facebook/hermes/reactexecutor/HermesExecutor;-><init>(Lcom/facebook/hermes/reactexecutor/RuntimeConfig;)V
return-object v0
.end method
.method public startSamplingProfiler()V
.registers 1
invoke-static {}, Lcom/facebook/hermes/instrumentation/HermesSamplingProfiler;->enable()V
return-void
.end method
.method public stopSamplingProfiler(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/facebook/hermes/instrumentation/HermesSamplingProfiler;->dumpSampledTraceToFile(Ljava/lang/String;)V
.line 2
invoke-static {}, Lcom/facebook/hermes/instrumentation/HermesSamplingProfiler;->disable()V
return-void
.end method
.method public toString()Ljava/lang/String;
.registers 2
const-string v0, "JSIExecutor+HermesRuntime"
return-object v0
.end method