Lines Matching defs:tos

2852 address BytecodeInterpreter::stack_slot(intptr_t *tos, int offset) {
2853 return (address) tos[Interpreter::expr_index_at(-offset)];
2856 jint BytecodeInterpreter::stack_int(intptr_t *tos, int offset) {
2857 return *((jint*) &tos[Interpreter::expr_index_at(-offset)]);
2860 jfloat BytecodeInterpreter::stack_float(intptr_t *tos, int offset) {
2861 return *((jfloat *) &tos[Interpreter::expr_index_at(-offset)]);
2864 oop BytecodeInterpreter::stack_object(intptr_t *tos, int offset) {
2865 return (oop)tos [Interpreter::expr_index_at(-offset)];
2868 jdouble BytecodeInterpreter::stack_double(intptr_t *tos, int offset) {
2869 return ((VMJavaVal64*) &tos[Interpreter::expr_index_at(-offset)])->d;
2872 jlong BytecodeInterpreter::stack_long(intptr_t *tos, int offset) {
2873 return ((VMJavaVal64 *) &tos[Interpreter::expr_index_at(-offset)])->l;
2877 void BytecodeInterpreter::set_stack_slot(intptr_t *tos, address value,
2879 *((address *)&tos[Interpreter::expr_index_at(-offset)]) = value;
2882 void BytecodeInterpreter::set_stack_int(intptr_t *tos, int value,
2884 *((jint *)&tos[Interpreter::expr_index_at(-offset)]) = value;
2887 void BytecodeInterpreter::set_stack_float(intptr_t *tos, jfloat value,
2889 *((jfloat *)&tos[Interpreter::expr_index_at(-offset)]) = value;
2892 void BytecodeInterpreter::set_stack_object(intptr_t *tos, oop value,
2894 *((oop *)&tos[Interpreter::expr_index_at(-offset)]) = value;
2898 void BytecodeInterpreter::set_stack_double(intptr_t *tos, jdouble value,
2900 ((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset)])->d = value;
2903 void BytecodeInterpreter::set_stack_double_from_addr(intptr_t *tos,
2905 (((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset)])->d =
2909 void BytecodeInterpreter::set_stack_long(intptr_t *tos, jlong value,
2911 ((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset+1)])->l = 0xdeedbeeb;
2912 ((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset)])->l = value;
2915 void BytecodeInterpreter::set_stack_long_from_addr(intptr_t *tos,
2917 ((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset+1)])->l = 0xdeedbeeb;
2918 ((VMJavaVal64*)&tos[Interpreter::expr_index_at(-offset)])->l =
2985 void BytecodeInterpreter::astore(intptr_t* tos, int stack_offset,
2987 intptr_t value = tos[Interpreter::expr_index_at(-stack_offset)];
2992 void BytecodeInterpreter::copy_stack_slot(intptr_t *tos, int from_offset,
2994 tos[Interpreter::expr_index_at(-to_offset)] =
2995 (intptr_t)tos[Interpreter::expr_index_at(-from_offset)];
2998 void BytecodeInterpreter::dup(intptr_t *tos) {
2999 copy_stack_slot(tos, -1, 0);
3001 void BytecodeInterpreter::dup2(intptr_t *tos) {
3002 copy_stack_slot(tos, -2, 0);
3003 copy_stack_slot(tos, -1, 1);
3006 void BytecodeInterpreter::dup_x1(intptr_t *tos) {
3008 copy_stack_slot(tos, -1, 0);
3009 copy_stack_slot(tos, -2, -1);
3010 copy_stack_slot(tos, 0, -2);
3013 void BytecodeInterpreter::dup_x2(intptr_t *tos) {
3015 copy_stack_slot(tos, -1, 0);
3016 copy_stack_slot(tos, -2, -1);
3017 copy_stack_slot(tos, -3, -2);
3018 copy_stack_slot(tos, 0, -3);
3020 void BytecodeInterpreter::dup2_x1(intptr_t *tos) {
3022 copy_stack_slot(tos, -1, 1);
3023 copy_stack_slot(tos, -2, 0);
3024 copy_stack_slot(tos, -3, -1);
3025 copy_stack_slot(tos, 1, -2);
3026 copy_stack_slot(tos, 0, -3);
3028 void BytecodeInterpreter::dup2_x2(intptr_t *tos) {
3030 copy_stack_slot(tos, -1, 1);
3031 copy_stack_slot(tos, -2, 0);
3032 copy_stack_slot(tos, -3, -1);
3033 copy_stack_slot(tos, -4, -2);
3034 copy_stack_slot(tos, 1, -3);
3035 copy_stack_slot(tos, 0, -4);
3039 void BytecodeInterpreter::swap(intptr_t *tos) {
3041 intptr_t val = tos[Interpreter::expr_index_at(1)];
3043 copy_stack_slot(tos, -2, -1);
3045 tos[Interpreter::expr_index_at(2)] = val;