equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019, 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. |
56 } |
56 } |
57 } |
57 } |
58 |
58 |
59 void ModRefBarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type, |
59 void ModRefBarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type, |
60 Register val, Address dst, Register tmp) { |
60 Register val, Address dst, Register tmp) { |
61 if (type == T_OBJECT || type == T_ARRAY) { |
61 if (is_reference_type(type)) { |
62 oop_store_at(masm, decorators, type, val, dst, tmp); |
62 oop_store_at(masm, decorators, type, val, dst, tmp); |
63 } else { |
63 } else { |
64 BarrierSetAssembler::store_at(masm, decorators, type, val, dst, tmp); |
64 BarrierSetAssembler::store_at(masm, decorators, type, val, dst, tmp); |
65 } |
65 } |
66 } |
66 } |