equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 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. |
1031 |
1031 |
1032 |
1032 |
1033 void LIRGenerator::do_NewMultiArray(NewMultiArray* x) { |
1033 void LIRGenerator::do_NewMultiArray(NewMultiArray* x) { |
1034 Values* dims = x->dims(); |
1034 Values* dims = x->dims(); |
1035 int i = dims->length(); |
1035 int i = dims->length(); |
1036 LIRItemList* items = new LIRItemList(dims->length(), NULL); |
1036 LIRItemList* items = new LIRItemList(i, i, NULL); |
1037 while (i-- > 0) { |
1037 while (i-- > 0) { |
1038 LIRItem* size = new LIRItem(dims->at(i), this); |
1038 LIRItem* size = new LIRItem(dims->at(i), this); |
1039 items->at_put(i, size); |
1039 items->at_put(i, size); |
1040 } |
1040 } |
1041 |
1041 |