Java Code Examples for proguard.evaluation.value.Value#isCategory2()

The following examples show how to use proguard.evaluation.value.Value#isCategory2() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: java-n-IDE-for-Android   File: Stack.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Pushes the given Value onto the stack.
 */
public void push(Value value)
{
    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        values[currentSize++] = TOP_VALUE;
    }

    // Push the value.
    values[currentSize++] = value;

    // Update the maximum actual size;
    if (actualMaxSize < currentSize)
    {
        actualMaxSize = currentSize;
    }
}
 
Example 2
/**
 * Stores the given Value at the given variable index.
 */
public void store(int index, Value value)
{
    if (index < 0 ||
        index >= size)
    {
        throw new IndexOutOfBoundsException("Variable index ["+index+"] out of bounds ["+size+"]");
    }

    // Store the value.
    values[index] = value;

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        values[index + 1] = TOP_VALUE;
    }
}
 
Example 3
Source Project: java-n-IDE-for-Android   File: Stack.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Pops the top Value from the stack.
 */
public Value pop()
{
    Value value = values[--currentSize];

    values[currentSize] = null;

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        values[--currentSize] = null;
    }

    return value;
}
 
Example 4
public void push(Value value)
{
    super.push(value);

    producerPush();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPush();
    }
}
 
Example 5
public Value pop()
{
    Value value = super.pop();

    producerPop();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPop();
    }

    return value;
}
 
Example 6
public void store(int index, Value value)
{
    // Store the value itself in the variable.
    super.store(index, value);

    // Store the producer value in its producer variable.
    producerVariables.store(index, producerValue);

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerVariables.store(index+1, producerValue);
    }
}
 
Example 7
public void push(Value value)
{
    super.push(value);

    producerPush();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPush();
    }
}
 
Example 8
public Value pop()
{
    Value value = super.pop();

    producerPop();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPop();
    }

    return value;
}
 
Example 9
public void store(int index, Value value)
{
    // Store the value itself in the variable.
    super.store(index, value);

    // Store the producer value in its producer variable.
    producerVariables.store(index, producerValue);

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerVariables.store(index+1, producerValue);
    }
}
 
Example 10
Source Project: bazel   File: TracedStack.java    License: Apache License 2.0 5 votes vote down vote up
public void push(Value value)
{
    super.push(value);

    producerPush();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPush();
    }
}
 
Example 11
Source Project: bazel   File: TracedStack.java    License: Apache License 2.0 5 votes vote down vote up
public Value pop()
{
    Value value = super.pop();

    producerPop();

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerPop();
    }

    return value;
}
 
Example 12
Source Project: bazel   File: TracedVariables.java    License: Apache License 2.0 5 votes vote down vote up
public void store(int index, Value value)
{
    // Store the value itself in the variable.
    super.store(index, value);

    // Store the producer value in its producer variable.
    producerVariables.store(index, producerValue);

    // Account for the extra space required by Category 2 values.
    if (value.isCategory2())
    {
        producerVariables.store(index+1, producerValue);
    }
}