src/share/vm/runtime/deoptimization.cpp

changeset 8395
1442c833c50e
parent 7890
bf41eee321e5
child 8584
c48b303692bb
equal deleted inserted replaced
8392:a4e26f908dd9 8395:1442c833c50e
1 /* 1 /*
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
845 assert(value->type() == T_INT, "Agreement."); 845 assert(value->type() == T_INT, "Agreement.");
846 val = value->get_int(); 846 val = value->get_int();
847 _obj->int_field_put(offset, (jint)*((jint*)&val)); 847 _obj->int_field_put(offset, (jint)*((jint*)&val));
848 break; 848 break;
849 849
850 case T_SHORT: case T_CHAR: // 2 bytes 850 case T_SHORT:
851 assert(value->type() == T_INT, "Agreement."); 851 assert(value->type() == T_INT, "Agreement.");
852 val = value->get_int(); 852 val = value->get_int();
853 _obj->short_field_put(offset, (jshort)*((jint*)&val)); 853 _obj->short_field_put(offset, (jshort)*((jint*)&val));
854 break; 854 break;
855 855
856 case T_BOOLEAN: case T_BYTE: // 1 byte 856 case T_CHAR:
857 assert(value->type() == T_INT, "Agreement.");
858 val = value->get_int();
859 _obj->char_field_put(offset, (jchar)*((jint*)&val));
860 break;
861
862 case T_BYTE:
863 assert(value->type() == T_INT, "Agreement.");
864 val = value->get_int();
865 _obj->byte_field_put(offset, (jbyte)*((jint*)&val));
866 break;
867
868 case T_BOOLEAN:
857 assert(value->type() == T_INT, "Agreement."); 869 assert(value->type() == T_INT, "Agreement.");
858 val = value->get_int(); 870 val = value->get_int();
859 _obj->bool_field_put(offset, (jboolean)*((jint*)&val)); 871 _obj->bool_field_put(offset, (jboolean)*((jint*)&val));
860 break; 872 break;
861 873
897 assert(value->type() == T_INT, "Agreement."); 909 assert(value->type() == T_INT, "Agreement.");
898 val = value->get_int(); 910 val = value->get_int();
899 obj->int_at_put(index, (jint)*((jint*)&val)); 911 obj->int_at_put(index, (jint)*((jint*)&val));
900 break; 912 break;
901 913
902 case T_SHORT: case T_CHAR: // 2 bytes 914 case T_SHORT:
903 assert(value->type() == T_INT, "Agreement."); 915 assert(value->type() == T_INT, "Agreement.");
904 val = value->get_int(); 916 val = value->get_int();
905 obj->short_at_put(index, (jshort)*((jint*)&val)); 917 obj->short_at_put(index, (jshort)*((jint*)&val));
906 break; 918 break;
907 919
908 case T_BOOLEAN: case T_BYTE: // 1 byte 920 case T_CHAR:
921 assert(value->type() == T_INT, "Agreement.");
922 val = value->get_int();
923 obj->char_at_put(index, (jchar)*((jint*)&val));
924 break;
925
926 case T_BYTE:
927 assert(value->type() == T_INT, "Agreement.");
928 val = value->get_int();
929 obj->byte_at_put(index, (jbyte)*((jint*)&val));
930 break;
931
932 case T_BOOLEAN:
909 assert(value->type() == T_INT, "Agreement."); 933 assert(value->type() == T_INT, "Agreement.");
910 val = value->get_int(); 934 val = value->get_int();
911 obj->bool_at_put(index, (jboolean)*((jint*)&val)); 935 obj->bool_at_put(index, (jboolean)*((jint*)&val));
912 break; 936 break;
913 937

mercurial