hotspot/src/share/vm/ci/ciArray.cpp
changeset 46630 75aa3e39d02c
parent 36330 37a0f096251b
equal deleted inserted replaced
46629:8eeacdc76bf2 46630:75aa3e39d02c
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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.
    64       oop elem = objary->obj_at(index);
    64       oop elem = objary->obj_at(index);
    65       ciEnv* env = CURRENT_ENV;
    65       ciEnv* env = CURRENT_ENV;
    66       ciObject* box = env->get_object(elem);
    66       ciObject* box = env->get_object(elem);
    67       return ciConstant(T_OBJECT, box);
    67       return ciConstant(T_OBJECT, box);
    68     }
    68     }
       
    69   default:
       
    70     break;
    69   }
    71   }
    70   assert(ary->is_typeArray(), "");
    72   assert(ary->is_typeArray(), "");
    71   typeArrayOop tary = (typeArrayOop) ary;
    73   typeArrayOop tary = (typeArrayOop) ary;
    72   jint value = 0;
    74   jint value = 0;
    73   switch (elembt) {
    75   switch (elembt) {