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

The following examples show how to use proguard.evaluation.value.Value#isCategory2() . 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 File: Stack.java    From java-n-IDE-for-Android with 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
Source File: Variables.java    From java-n-IDE-for-Android with Apache License 2.0 6 votes vote down vote up
/**
 * 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 File: Stack.java    From java-n-IDE-for-Android with 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
Source File: TracedStack.java    From java-n-IDE-for-Android with 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 5
Source File: TracedStack.java    From java-n-IDE-for-Android with 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 6
Source File: TracedVariables.java    From java-n-IDE-for-Android with 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);
    }
}
 
Example 7
Source File: TracedStack.java    From proguard with GNU General Public License v2.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 8
Source File: TracedStack.java    From proguard with GNU General Public License v2.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 9
Source File: TracedVariables.java    From proguard with GNU General Public License v2.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);
    }
}
 
Example 10
Source File: TracedStack.java    From bazel with 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 File: TracedStack.java    From bazel with 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 File: TracedVariables.java    From bazel with 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);
    }
}