mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 1331058 - Fix analysis check in IonBuilder::initEnvironmentChain. r=shu
This commit is contained in:
parent
9c5080bd64
commit
3e71edcc8a
@ -1141,9 +1141,11 @@ IonBuilder::initEnvironmentChain(MDefinition* callee)
|
||||
current->add(env);
|
||||
|
||||
// This reproduce what is done in CallObject::createForFunction. Skip
|
||||
// this for analyses, as the script might not have a baseline script
|
||||
// with template objects yet.
|
||||
if (fun->needsSomeEnvironmentObject() && !info().isAnalysis()) {
|
||||
// this for the arguments analysis, as the script might not have a
|
||||
// baseline script with template objects yet.
|
||||
if (fun->needsSomeEnvironmentObject() &&
|
||||
info().analysisMode() != Analysis_ArgumentsUsage)
|
||||
{
|
||||
if (fun->needsNamedLambdaEnvironment())
|
||||
env = createNamedLambdaObject(callee, env);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user