Search in sources :

Example 21 with ValType

use of com.github.anba.es6draft.compiler.DefaultCodeGenerator.ValType in project es6draft by anba.

the class ExpressionGenerator method ArrayAccumulationElement.

private void ArrayAccumulationElement(Expression element, CodeVisitor mv) {
    // stack: [array, nextIndex] -> []
    ValType elementType = element.accept(this, mv);
    mv.toBoxed(elementType);
    mv.invoke(Methods.ArrayOperations_defineProperty__int);
}
Also used : ValType(com.github.anba.es6draft.compiler.DefaultCodeGenerator.ValType)

Aggregations

ValType (com.github.anba.es6draft.compiler.DefaultCodeGenerator.ValType)21 Jump (com.github.anba.es6draft.compiler.assembler.Jump)4 MethodName (com.github.anba.es6draft.compiler.assembler.MethodName)3 BlockScope (com.github.anba.es6draft.ast.scope.BlockScope)2 Name (com.github.anba.es6draft.ast.scope.Name)2 SpreadElementMethod (com.github.anba.es6draft.ast.synthetic.SpreadElementMethod)2 MethodCode (com.github.anba.es6draft.compiler.assembler.Code.MethodCode)2 FieldName (com.github.anba.es6draft.compiler.assembler.FieldName)2 MethodTypeDescriptor (com.github.anba.es6draft.compiler.assembler.MethodTypeDescriptor)2 com.github.anba.es6draft.ast (com.github.anba.es6draft.ast)1 Scope (com.github.anba.es6draft.ast.scope.Scope)1 TopLevelScope (com.github.anba.es6draft.ast.scope.TopLevelScope)1 WithScope (com.github.anba.es6draft.ast.scope.WithScope)1 ExpressionMethod (com.github.anba.es6draft.ast.synthetic.ExpressionMethod)1 EvaluateArrayComprehension (com.github.anba.es6draft.compiler.ArrayComprehensionGenerator.EvaluateArrayComprehension)1 OutlinedCall (com.github.anba.es6draft.compiler.CodeVisitor.OutlinedCall)1 PropertyEvaluation (com.github.anba.es6draft.compiler.PropertyGenerator.PropertyEvaluation)1 Completion (com.github.anba.es6draft.compiler.StatementGenerator.Completion)1 MutableValue (com.github.anba.es6draft.compiler.assembler.MutableValue)1 Type (com.github.anba.es6draft.compiler.assembler.Type)1