Removed @author javadocs from code.
This commit is contained in:
-3
@@ -21,9 +21,6 @@ import junit.framework.TestCase;
|
|||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class AbstractCodegenTestCaseOnAndroid extends TestCase {
|
public class AbstractCodegenTestCaseOnAndroid extends TestCase {
|
||||||
|
|
||||||
|
|||||||
@@ -32,9 +32,6 @@ import java.util.Map;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class CodegenTestsOnAndroidRunner {
|
public class CodegenTestsOnAndroidRunner {
|
||||||
private static final Pattern ERROR_IN_TEST_OUTPUT_PATTERN =
|
private static final Pattern ERROR_IN_TEST_OUTPUT_PATTERN =
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ import org.jetbrains.jet.compiler.run.result.RunResult;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class OutputUtils {
|
public class OutputUtils {
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ package org.jetbrains.jet.compiler;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class PathManager {
|
public class PathManager {
|
||||||
|
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ import org.jetbrains.jet.compiler.run.result.RunResult;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class AntRunner {
|
public class AntRunner {
|
||||||
private final List<String> listOfAntCommands;
|
private final List<String> listOfAntCommands;
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ import java.net.URLConnection;
|
|||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class SDKDownloader {
|
public class SDKDownloader {
|
||||||
private final String platformZipPath;
|
private final String platformZipPath;
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import java.util.List;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class Emulator {
|
public class Emulator {
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ import com.intellij.execution.configurations.GeneralCommandLine;
|
|||||||
import com.intellij.openapi.util.SystemInfo;
|
import com.intellij.openapi.util.SystemInfo;
|
||||||
import org.jetbrains.jet.compiler.PathManager;
|
import org.jetbrains.jet.compiler.PathManager;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class PermissionManager {
|
public class PermissionManager {
|
||||||
private PermissionManager() {
|
private PermissionManager() {
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ import java.io.IOException;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class RunUtils {
|
public class RunUtils {
|
||||||
private RunUtils() {
|
private RunUtils() {
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.compiler.run.result;
|
package org.jetbrains.jet.compiler.run.result;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class RunResult {
|
public class RunResult {
|
||||||
private final boolean status;
|
private final boolean status;
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ import org.jetbrains.jet.compiler.PathManager;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class AndroidRunner extends TestSuite {
|
public class AndroidRunner extends TestSuite {
|
||||||
|
|
||||||
|
|||||||
-3
@@ -42,9 +42,6 @@ import java.util.Set;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
|
public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ import com.google.common.collect.Sets;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Natalia.Ukhorskaya
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class SpecialFiles {
|
public class SpecialFiles {
|
||||||
private static final Set<String> excludedFiles = Sets.newHashSet();
|
private static final Set<String> excludedFiles = Sets.newHashSet();
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ import java.util.Collections;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.descriptors.ReceiverParameterDescriptor.NO_RECEIVER_PARAMETER;
|
import static org.jetbrains.jet.lang.descriptors.ReceiverParameterDescriptor.NO_RECEIVER_PARAMETER;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class AccessorForFunctionDescriptor extends SimpleFunctionDescriptorImpl {
|
public class AccessorForFunctionDescriptor extends SimpleFunctionDescriptorImpl {
|
||||||
public AccessorForFunctionDescriptor(DeclarationDescriptor descriptor, DeclarationDescriptor containingDeclaration, int index) {
|
public AccessorForFunctionDescriptor(DeclarationDescriptor descriptor, DeclarationDescriptor containingDeclaration, int index) {
|
||||||
super(containingDeclaration, Collections.<AnnotationDescriptor>emptyList(),
|
super(containingDeclaration, Collections.<AnnotationDescriptor>emptyList(),
|
||||||
|
|||||||
@@ -24,9 +24,6 @@ import org.jetbrains.jet.lang.types.JetType;
|
|||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class AccessorForPropertyDescriptor extends PropertyDescriptor {
|
public class AccessorForPropertyDescriptor extends PropertyDescriptor {
|
||||||
public AccessorForPropertyDescriptor(PropertyDescriptor pd, DeclarationDescriptor containingDeclaration, int index) {
|
public AccessorForPropertyDescriptor(PropertyDescriptor pd, DeclarationDescriptor containingDeclaration, int index) {
|
||||||
super(containingDeclaration, Collections.<AnnotationDescriptor>emptyList(), Modality.FINAL, Visibilities.PUBLIC,
|
super(containingDeclaration, Collections.<AnnotationDescriptor>emptyList(), Modality.FINAL, Visibilities.PUBLIC,
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ import java.util.Map;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public abstract class AnnotationCodegen {
|
public abstract class AnnotationCodegen {
|
||||||
private final JetTypeMapper typeMapper;
|
private final JetTypeMapper typeMapper;
|
||||||
private final BindingContext bindingContext;
|
private final BindingContext bindingContext;
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ import static org.jetbrains.jet.codegen.CodegenUtil.isInterface;
|
|||||||
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.isClassObject;
|
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.isClassObject;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JAVA_STRING_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JAVA_STRING_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class AsmUtil {
|
public class AsmUtil {
|
||||||
private static final Set<ClassDescriptor> PRIMITIVE_NUMBER_CLASSES = Sets.newHashSet(
|
private static final Set<ClassDescriptor> PRIMITIVE_NUMBER_CLASSES = Sets.newHashSet(
|
||||||
KotlinBuiltIns.getInstance().getByte(),
|
KotlinBuiltIns.getInstance().getByte(),
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ package org.jetbrains.jet.codegen;
|
|||||||
* Marks if backend's JetTypeMapper should map built-in types to Java types (e.g., jet.String into java.lang.String).
|
* Marks if backend's JetTypeMapper should map built-in types to Java types (e.g., jet.String into java.lang.String).
|
||||||
* Disabling is needed for compiling builtins: we want types to be jet.* instead of java.util* to make it possible to load
|
* Disabling is needed for compiling builtins: we want types to be jet.* instead of java.util* to make it possible to load
|
||||||
* builtins without JDK.
|
* builtins without JDK.
|
||||||
*
|
|
||||||
* @author Evgeny Gerashchenko
|
|
||||||
* @since 7/5/12
|
|
||||||
*/
|
*/
|
||||||
public enum BuiltinToJavaTypesMapping {
|
public enum BuiltinToJavaTypesMapping {
|
||||||
ENABLED,
|
ENABLED,
|
||||||
|
|||||||
@@ -16,8 +16,5 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public interface Callable {
|
public interface Callable {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,10 +32,6 @@ import java.util.List;
|
|||||||
import static org.jetbrains.asm4.Opcodes.INVOKESPECIAL;
|
import static org.jetbrains.asm4.Opcodes.INVOKESPECIAL;
|
||||||
import static org.jetbrains.asm4.Opcodes.INVOKESTATIC;
|
import static org.jetbrains.asm4.Opcodes.INVOKESTATIC;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkacman
|
|
||||||
*/
|
|
||||||
public class CallableMethod implements Callable {
|
public class CallableMethod implements Callable {
|
||||||
@NotNull
|
@NotNull
|
||||||
private final JvmClassName owner;
|
private final JvmClassName owner;
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ import java.util.List;
|
|||||||
import static org.jetbrains.asm4.Opcodes.*;
|
import static org.jetbrains.asm4.Opcodes.*;
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public abstract class ClassBodyCodegen extends MemberCodegen {
|
public abstract class ClassBodyCodegen extends MemberCodegen {
|
||||||
protected final JetClassOrObject myClass;
|
protected final JetClassOrObject myClass;
|
||||||
protected final OwnerKind kind;
|
protected final OwnerKind kind;
|
||||||
|
|||||||
@@ -14,9 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
import com.intellij.psi.PsiElement;
|
import com.intellij.psi.PsiElement;
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ import org.jetbrains.asm4.util.TraceClassVisitor;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
|
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
|
||||||
public class ClassBuilderFactories {
|
public class ClassBuilderFactories {
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ package org.jetbrains.jet.codegen;
|
|||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
public interface ClassBuilderFactory {
|
public interface ClassBuilderFactory {
|
||||||
@NotNull
|
@NotNull
|
||||||
ClassBuilderMode getClassBuilderMode();
|
ClassBuilderMode getClassBuilderMode();
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public enum ClassBuilderMode {
|
public enum ClassBuilderMode {
|
||||||
/**
|
/**
|
||||||
* Full function bodies
|
* Full function bodies
|
||||||
|
|||||||
@@ -21,9 +21,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public abstract class ClassBuilderOnDemand {
|
public abstract class ClassBuilderOnDemand {
|
||||||
|
|
||||||
private ClassBuilder classBuilder;
|
private ClassBuilder classBuilder;
|
||||||
|
|||||||
@@ -34,10 +34,6 @@ import java.util.*;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.isPrimitive;
|
import static org.jetbrains.jet.codegen.AsmUtil.isPrimitive;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public final class ClassFileFactory extends GenerationStateAware {
|
public final class ClassFileFactory extends GenerationStateAware {
|
||||||
@NotNull private ClassBuilderFactory builderFactory;
|
@NotNull private ClassBuilderFactory builderFactory;
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* @author max
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
import com.intellij.openapi.util.Pair;
|
import com.intellij.openapi.util.Pair;
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ package org.jetbrains.jet.codegen;
|
|||||||
|
|
||||||
import org.jetbrains.asm4.commons.InstructionAdapter;
|
import org.jetbrains.asm4.commons.InstructionAdapter;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public interface CodeChunk {
|
public interface CodeChunk {
|
||||||
void generate(InstructionAdapter v);
|
void generate(InstructionAdapter v);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,10 +48,6 @@ import java.util.*;
|
|||||||
import static org.jetbrains.jet.lang.descriptors.Modality.ABSTRACT;
|
import static org.jetbrains.jet.lang.descriptors.Modality.ABSTRACT;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author abreslav
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class CodegenUtil {
|
public class CodegenUtil {
|
||||||
|
|
||||||
private CodegenUtil() {
|
private CodegenUtil() {
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author abreslav
|
|
||||||
*/
|
|
||||||
public interface CompilationErrorHandler {
|
public interface CompilationErrorHandler {
|
||||||
|
|
||||||
CompilationErrorHandler THROW_EXCEPTION = new CompilationErrorHandler() {
|
CompilationErrorHandler THROW_EXCEPTION = new CompilationErrorHandler() {
|
||||||
|
|||||||
@@ -23,10 +23,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.jet.lang.diagnostics.DiagnosticUtils;
|
import org.jetbrains.jet.lang.diagnostics.DiagnosticUtils;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
* @author abreslav
|
|
||||||
*/
|
|
||||||
public class CompilationException extends RuntimeException {
|
public class CompilationException extends RuntimeException {
|
||||||
private final PsiElement element;
|
private final PsiElement element;
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ConstructorFrameMap extends FrameMap {
|
public class ConstructorFrameMap extends FrameMap {
|
||||||
private int myOuterThisIndex = -1;
|
private int myOuterThisIndex = -1;
|
||||||
|
|
||||||
|
|||||||
@@ -72,11 +72,6 @@ import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDec
|
|||||||
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.getNotNull;
|
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.getNotNull;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.*;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implements LocalLookup {
|
public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implements LocalLookup {
|
||||||
|
|
||||||
private static final String CLASS_NO_PATTERN_MATCHED_EXCEPTION = "jet/NoPatternMatchedException";
|
private static final String CLASS_NO_PATTERN_MATCHED_EXCEPTION = "jet/NoPatternMatchedException";
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ import java.util.Collections;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
public class FrameMap {
|
public class FrameMap {
|
||||||
private final TObjectIntHashMap<DeclarationDescriptor> myVarIndex = new TObjectIntHashMap<DeclarationDescriptor>();
|
private final TObjectIntHashMap<DeclarationDescriptor> myVarIndex = new TObjectIntHashMap<DeclarationDescriptor>();
|
||||||
private final TObjectIntHashMap<DeclarationDescriptor> myVarSizes = new TObjectIntHashMap<DeclarationDescriptor>();
|
private final TObjectIntHashMap<DeclarationDescriptor> myVarSizes = new TObjectIntHashMap<DeclarationDescriptor>();
|
||||||
|
|||||||
@@ -59,11 +59,6 @@ import static org.jetbrains.jet.lang.resolve.BindingContextUtils.callableDescrip
|
|||||||
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class FunctionCodegen extends GenerationStateAware {
|
public class FunctionCodegen extends GenerationStateAware {
|
||||||
private final CodegenContext owner;
|
private final CodegenContext owner;
|
||||||
private final ClassBuilder v;
|
private final ClassBuilder v;
|
||||||
|
|||||||
@@ -21,10 +21,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLClassLoader;
|
import java.net.URLClassLoader;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class GeneratedClassLoader extends URLClassLoader {
|
public class GeneratedClassLoader extends URLClassLoader {
|
||||||
private ClassFileFactory state;
|
private ClassFileFactory state;
|
||||||
|
|
||||||
|
|||||||
@@ -66,11 +66,6 @@ import static org.jetbrains.jet.lang.resolve.BindingContextUtils.callableDescrip
|
|||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JAVA_STRING_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JAVA_STRING_TYPE;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||||
private static final String VALUES = "$VALUES";
|
private static final String VALUES = "$VALUES";
|
||||||
private JetDelegationSpecifier superCall;
|
private JetDelegationSpecifier superCall;
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.Map;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.enumEntryNeedSubclass;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.enumEntryNeedSubclass;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class MemberCodegen extends GenerationStateAware {
|
public class MemberCodegen extends GenerationStateAware {
|
||||||
public MemberCodegen(@NotNull GenerationState state) {
|
public MemberCodegen(@NotNull GenerationState state) {
|
||||||
super(state);
|
super(state);
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ import java.util.Collection;
|
|||||||
|
|
||||||
import static org.jetbrains.asm4.Opcodes.*;
|
import static org.jetbrains.asm4.Opcodes.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
public class NamespaceCodegen extends MemberCodegen {
|
public class NamespaceCodegen extends MemberCodegen {
|
||||||
@NotNull
|
@NotNull
|
||||||
private final ClassBuilderOnDemand v;
|
private final ClassBuilderOnDemand v;
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.codegen;
|
package org.jetbrains.jet.codegen;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
public class OwnerKind {
|
public class OwnerKind {
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
|
|||||||
@@ -46,10 +46,6 @@ import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDec
|
|||||||
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.isExternallyAccessible;
|
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.isExternallyAccessible;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author max
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class PropertyCodegen extends GenerationStateAware {
|
public class PropertyCodegen extends GenerationStateAware {
|
||||||
private final FunctionCodegen functionCodegen;
|
private final FunctionCodegen functionCodegen;
|
||||||
private final ClassBuilder v;
|
private final ClassBuilder v;
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.isPrimitiveNumberClassDescriptor;
|
import static org.jetbrains.jet.codegen.AsmUtil.isPrimitiveNumberClassDescriptor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author abreslav
|
|
||||||
*/
|
|
||||||
public class RangeCodegenUtil {
|
public class RangeCodegenUtil {
|
||||||
private static final ImmutableMap<String, JetType> RANGE_TO_ELEMENT_TYPE = ImmutableMap.<String, JetType>builder()
|
private static final ImmutableMap<String, JetType> RANGE_TO_ELEMENT_TYPE = ImmutableMap.<String, JetType>builder()
|
||||||
.put("ByteRange", KotlinBuiltIns.getInstance().getByteType())
|
.put("ByteRange", KotlinBuiltIns.getInstance().getByteType())
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ import static org.jetbrains.asm4.Opcodes.*;
|
|||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.*;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.*;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public class ScriptCodegen extends MemberCodegen {
|
public class ScriptCodegen extends MemberCodegen {
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
@@ -42,10 +42,6 @@ import static org.jetbrains.asm4.Opcodes.*;
|
|||||||
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.*;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public abstract class StackValue {
|
public abstract class StackValue {
|
||||||
@NotNull
|
@NotNull
|
||||||
public final Type type;
|
public final Type type;
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ package org.jetbrains.jet.codegen.binding;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.lang.resolve.BindingContext;
|
import org.jetbrains.jet.lang.resolve.BindingContext;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class BindingContextAware {
|
public class BindingContextAware {
|
||||||
@NotNull protected final BindingContext bindingContext;
|
@NotNull protected final BindingContext bindingContext;
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ package org.jetbrains.jet.codegen.binding;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.lang.resolve.BindingTrace;
|
import org.jetbrains.jet.lang.resolve.BindingTrace;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class BindingTraceAware extends BindingContextAware {
|
public class BindingTraceAware extends BindingContextAware {
|
||||||
@NotNull protected final BindingTrace bindingTrace;
|
@NotNull protected final BindingTrace bindingTrace;
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import org.jetbrains.jet.lang.psi.JetDelegatorToSuperCall;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public interface CalculatedClosure {
|
public interface CalculatedClosure {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ import static org.jetbrains.jet.codegen.CodegenUtil.peekFromStack;
|
|||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.*;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.*;
|
||||||
import static org.jetbrains.jet.lang.resolve.BindingContext.*;
|
import static org.jetbrains.jet.lang.resolve.BindingContext.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
class CodegenAnnotatingVisitor extends JetVisitorVoid {
|
class CodegenAnnotatingVisitor extends JetVisitorVoid {
|
||||||
private final Map<String, Integer> anonymousSubclassesCount = new HashMap<String, Integer>();
|
private final Map<String, Integer> anonymousSubclassesCount = new HashMap<String, Integer>();
|
||||||
|
|
||||||
|
|||||||
@@ -41,9 +41,6 @@ import static org.jetbrains.jet.codegen.CodegenUtil.isInterface;
|
|||||||
import static org.jetbrains.jet.lang.resolve.BindingContext.*;
|
import static org.jetbrains.jet.lang.resolve.BindingContext.*;
|
||||||
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.descriptorToDeclaration;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class CodegenBinding {
|
public class CodegenBinding {
|
||||||
public static final WritableSlice<ClassDescriptor, MutableClosure> CLOSURE = Slices.createSimpleSlice();
|
public static final WritableSlice<ClassDescriptor, MutableClosure> CLOSURE = Slices.createSimpleSlice();
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import org.jetbrains.jet.lang.psi.JetDelegatorToSuperCall;
|
|||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public final class MutableClosure implements CalculatedClosure {
|
public final class MutableClosure implements CalculatedClosure {
|
||||||
private final JetDelegatorToSuperCall superCall;
|
private final JetDelegatorToSuperCall superCall;
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class AnonymousClassContext extends CodegenContext {
|
public class AnonymousClassContext extends CodegenContext {
|
||||||
public AnonymousClassContext(
|
public AnonymousClassContext(
|
||||||
JetTypeMapper typeMapper,
|
JetTypeMapper typeMapper,
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ClassContext extends CodegenContext {
|
public class ClassContext extends CodegenContext {
|
||||||
public ClassContext(
|
public ClassContext(
|
||||||
JetTypeMapper typeMapper,
|
JetTypeMapper typeMapper,
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLOSURE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
class ClosureContext extends CodegenContext {
|
class ClosureContext extends CodegenContext {
|
||||||
private final ClassDescriptor classDescriptor;
|
private final ClassDescriptor classDescriptor;
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ import static org.jetbrains.jet.codegen.binding.CodegenBinding.CLASS_FOR_FUNCTIO
|
|||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.FQN;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.FQN;
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/*
|
|
||||||
* @author max
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public abstract class CodegenContext {
|
public abstract class CodegenContext {
|
||||||
|
|
||||||
public static final CodegenContext STATIC = new RootContext();
|
public static final CodegenContext STATIC = new RootContext();
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ import org.jetbrains.jet.lang.descriptors.ConstructorDescriptor;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ConstructorContext extends MethodContext {
|
public class ConstructorContext extends MethodContext {
|
||||||
private static final StackValue local1 = StackValue.local(1, OBJECT_TYPE);
|
private static final StackValue local1 = StackValue.local(1, OBJECT_TYPE);
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* @author max
|
|
||||||
*/
|
|
||||||
package org.jetbrains.jet.codegen.context;
|
package org.jetbrains.jet.codegen.context;
|
||||||
|
|
||||||
import org.jetbrains.asm4.Type;
|
import org.jetbrains.asm4.Type;
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ import static org.jetbrains.jet.codegen.binding.CodegenBinding.classNameForAnony
|
|||||||
import static org.jetbrains.jet.codegen.binding.CodegenBinding.isLocalNamedFun;
|
import static org.jetbrains.jet.codegen.binding.CodegenBinding.isLocalNamedFun;
|
||||||
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.callableDescriptorToDeclaration;
|
import static org.jetbrains.jet.lang.resolve.BindingContextUtils.callableDescriptorToDeclaration;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public interface LocalLookup {
|
public interface LocalLookup {
|
||||||
boolean lookupLocal(DeclarationDescriptor descriptor);
|
boolean lookupLocal(DeclarationDescriptor descriptor);
|
||||||
|
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor;
|
|||||||
import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
||||||
import org.jetbrains.jet.lang.descriptors.PropertyAccessorDescriptor;
|
import org.jetbrains.jet.lang.descriptors.PropertyAccessorDescriptor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class MethodContext extends CodegenContext {
|
public class MethodContext extends CodegenContext {
|
||||||
public MethodContext(
|
public MethodContext(
|
||||||
@NotNull FunctionDescriptor contextType,
|
@NotNull FunctionDescriptor contextType,
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.jet.codegen.OwnerKind;
|
import org.jetbrains.jet.codegen.OwnerKind;
|
||||||
import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor;
|
import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class NamespaceContext extends CodegenContext {
|
public class NamespaceContext extends CodegenContext {
|
||||||
public NamespaceContext(NamespaceDescriptor contextDescriptor, CodegenContext parent, @NotNull OwnerKind kind) {
|
public NamespaceContext(NamespaceDescriptor contextDescriptor, CodegenContext parent, @NotNull OwnerKind kind) {
|
||||||
super(contextDescriptor, kind, parent, null, null, null);
|
super(contextDescriptor, kind, parent, null, null, null);
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ import org.jetbrains.jet.lang.types.TypeSubstitutor;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
class RootContext extends CodegenContext {
|
class RootContext extends CodegenContext {
|
||||||
public RootContext() {
|
public RootContext() {
|
||||||
super(new FakeDescriptor(), OwnerKind.NAMESPACE, null, null, null, null);
|
super(new FakeDescriptor(), OwnerKind.NAMESPACE, null, null, null, null);
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ import org.jetbrains.jet.codegen.binding.MutableClosure;
|
|||||||
import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
|
import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
|
||||||
import org.jetbrains.jet.lang.descriptors.ScriptDescriptor;
|
import org.jetbrains.jet.lang.descriptors.ScriptDescriptor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ScriptContext extends CodegenContext {
|
public class ScriptContext extends CodegenContext {
|
||||||
@NotNull
|
@NotNull
|
||||||
private final ScriptDescriptor scriptDescriptor;
|
private final ScriptDescriptor scriptDescriptor;
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.correctElementType;
|
import static org.jetbrains.jet.codegen.AsmUtil.correctElementType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ArrayGet implements IntrinsicMethod {
|
public class ArrayGet implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ import org.jetbrains.jet.lang.types.lang.PrimitiveType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ArrayIterator implements IntrinsicMethod {
|
public class ArrayIterator implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.correctElementType;
|
import static org.jetbrains.jet.codegen.AsmUtil.correctElementType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ArraySet implements IntrinsicMethod {
|
public class ArraySet implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class ArraySize implements IntrinsicMethod {
|
public class ArraySize implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ import static org.jetbrains.asm4.Opcodes.*;
|
|||||||
import static org.jetbrains.jet.codegen.AsmUtil.boxType;
|
import static org.jetbrains.jet.codegen.AsmUtil.boxType;
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class BinaryOp implements IntrinsicMethod {
|
public class BinaryOp implements IntrinsicMethod {
|
||||||
private final int opcode;
|
private final int opcode;
|
||||||
|
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.comparisonOperandType;
|
import static org.jetbrains.jet.codegen.AsmUtil.comparisonOperandType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class CompareTo implements IntrinsicMethod {
|
public class CompareTo implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ import java.util.List;
|
|||||||
import static org.jetbrains.jet.codegen.AsmUtil.genInvokeAppendMethod;
|
import static org.jetbrains.jet.codegen.AsmUtil.genInvokeAppendMethod;
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.genStringBuilderConstructor;
|
import static org.jetbrains.jet.codegen.AsmUtil.genStringBuilderConstructor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class Concat implements IntrinsicMethod {
|
public class Concat implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,10 +30,6 @@ import org.jetbrains.jet.lang.types.lang.PrimitiveType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Evgeny Gerashchenko
|
|
||||||
* @since 08.08.12
|
|
||||||
*/
|
|
||||||
public class EmptyRange implements IntrinsicMethod {
|
public class EmptyRange implements IntrinsicMethod {
|
||||||
private final PrimitiveType elementType;
|
private final PrimitiveType elementType;
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ import org.jetbrains.jet.lang.types.JetType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class EnumValueOf implements IntrinsicMethod {
|
public class EnumValueOf implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -33,9 +33,6 @@ import org.jetbrains.jet.lang.types.JetType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class EnumValues implements IntrinsicMethod {
|
public class EnumValues implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.genEqualsForExpressionsOnStack;
|
import static org.jetbrains.jet.codegen.AsmUtil.genEqualsForExpressionsOnStack;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class Equals implements IntrinsicMethod {
|
public class Equals implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class HashCode implements IntrinsicMethod {
|
public class HashCode implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -32,9 +32,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.OBJECT_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class IdentityEquals implements IntrinsicMethod {
|
public class IdentityEquals implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
import static org.jetbrains.jet.codegen.AsmUtil.*;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class Increment implements IntrinsicMethod {
|
public class Increment implements IntrinsicMethod {
|
||||||
private final int myDelta;
|
private final int myDelta;
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public interface IntrinsicMethod extends Callable {
|
public interface IntrinsicMethod extends Callable {
|
||||||
StackValue generate(
|
StackValue generate(
|
||||||
ExpressionCodegen codegen, InstructionAdapter v, @NotNull Type expectedType, @Nullable PsiElement element,
|
ExpressionCodegen codegen, InstructionAdapter v, @NotNull Type expectedType, @Nullable PsiElement element,
|
||||||
|
|||||||
@@ -37,10 +37,6 @@ import java.util.Map;
|
|||||||
import static org.jetbrains.asm4.Opcodes.*;
|
import static org.jetbrains.asm4.Opcodes.*;
|
||||||
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.getClassObjectName;
|
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.getClassObjectName;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class IntrinsicMethods {
|
public class IntrinsicMethods {
|
||||||
private static final IntrinsicMethod UNARY_MINUS = new UnaryMinus();
|
private static final IntrinsicMethod UNARY_MINUS = new UnaryMinus();
|
||||||
private static final IntrinsicMethod UNARY_PLUS = new UnaryPlus();
|
private static final IntrinsicMethod UNARY_PLUS = new UnaryPlus();
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.resolve.name.Name;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
class IntrinsicsMap {
|
class IntrinsicsMap {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class Inv implements IntrinsicMethod {
|
public class Inv implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class IteratorIterator implements IntrinsicMethod {
|
public class IteratorIterator implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class IteratorNext implements IntrinsicMethod {
|
public class IteratorNext implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ import org.jetbrains.jet.lang.resolve.calls.model.VarargValueArgument;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class JavaClassArray implements IntrinsicMethod {
|
public class JavaClassArray implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ import org.jetbrains.jet.lang.types.JetType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class JavaClassFunction implements IntrinsicMethod {
|
public class JavaClassFunction implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import org.jetbrains.jet.lang.resolve.java.JvmPrimitiveType;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class JavaClassProperty implements IntrinsicMethod {
|
public class JavaClassProperty implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import org.jetbrains.jet.lang.resolve.BindingContext;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class NewArray implements IntrinsicMethod {
|
public class NewArray implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class Not implements IntrinsicMethod {
|
public class Not implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class NumberCast implements IntrinsicMethod {
|
public class NumberCast implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,10 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class RangeTo implements IntrinsicMethod {
|
public class RangeTo implements IntrinsicMethod {
|
||||||
|
|
||||||
public RangeTo() {
|
public RangeTo() {
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class StringGetChar implements IntrinsicMethod {
|
public class StringGetChar implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class StringLength implements IntrinsicMethod {
|
public class StringLength implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ import org.jetbrains.jet.lang.psi.JetExpression;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class StringPlus implements IntrinsicMethod {
|
public class StringPlus implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.genToString;
|
import static org.jetbrains.jet.codegen.AsmUtil.genToString;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class ToString implements IntrinsicMethod {
|
public class ToString implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
import static org.jetbrains.jet.codegen.AsmUtil.genNegate;
|
import static org.jetbrains.jet.codegen.AsmUtil.genNegate;
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author yole
|
|
||||||
*/
|
|
||||||
public class UnaryMinus implements IntrinsicMethod {
|
public class UnaryMinus implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
import static org.jetbrains.jet.codegen.AsmUtil.unboxType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public class UnaryPlus implements IntrinsicMethod {
|
public class UnaryPlus implements IntrinsicMethod {
|
||||||
@Override
|
@Override
|
||||||
public StackValue generate(
|
public StackValue generate(
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JET_TUPLE0_TYPE;
|
import static org.jetbrains.jet.lang.resolve.java.AsmTypeConstants.JET_TUPLE0_TYPE;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author abreslav
|
|
||||||
*/
|
|
||||||
public class UnitValue implements IntrinsicMethod {
|
public class UnitValue implements IntrinsicMethod {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public class BothSignatureWriter {
|
public class BothSignatureWriter {
|
||||||
|
|
||||||
private static final boolean DEBUG_SIGNATURE_WRITER = true;
|
private static final boolean DEBUG_SIGNATURE_WRITER = true;
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public class JvmClassSignature {
|
public class JvmClassSignature {
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String superclassName;
|
private final String superclassName;
|
||||||
|
|||||||
@@ -16,10 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.codegen.signature;
|
package org.jetbrains.jet.codegen.signature;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
* @author alex.tkachman
|
|
||||||
*/
|
|
||||||
public enum JvmMethodParameterKind {
|
public enum JvmMethodParameterKind {
|
||||||
VALUE,
|
VALUE,
|
||||||
THIS,
|
THIS,
|
||||||
|
|||||||
-3
@@ -19,9 +19,6 @@ package org.jetbrains.jet.codegen.signature;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.asm4.Type;
|
import org.jetbrains.asm4.Type;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Stepan Koltsov
|
|
||||||
*/
|
|
||||||
public class JvmMethodParameterSignature {
|
public class JvmMethodParameterSignature {
|
||||||
@NotNull
|
@NotNull
|
||||||
private final Type asmType;
|
private final Type asmType;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user