;
; Исходный код среды исполнения ПВТ-ОО.
;
; Этот исходный код является частью проекта ПВТ-ОО.
;
; Copyright © 2021 Малик Разработчик
;
; Это свободная программа: вы можете перераспространять её и/или
; изменять её на условиях Меньшей Стандартной общественной лицензии GNU в том виде,
; в каком она была опубликована Фондом свободного программного обеспечения;
; либо версии 3 лицензии, либо (по вашему выбору) любой более поздней версии.
;
; Эта программа распространяется в надежде, что она может быть полезна,
; но БЕЗО ВСЯКИХ ГАРАНТИЙ; даже без неявной гарантии ТОВАРНОГО ВИДА
; или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЁННЫХ ЦЕЛЕЙ. Подробнее см. в Меньшей Стандартной
; общественной лицензии GNU.
;
; Вы должны были получить копию Меньшей Стандартной общественной лицензии GNU
; вместе с этой программой. Если это не так, см.
; <http://www.gnu.org/licenses/>.
;
; <fold float8[] (natives)
method float8.01d$getPointer$, \
this, float8.01d ; returns long <fold >
menter
lverify this, TAG_OBJECT
mov r1, [.this]
lea r0, [r1+$40]
add r0, [r1+float8.01d$fldOffset]
call inst$lpush
mleaveq
eleave
; </fold>
method float8.01d$getLength$, \
this, float8.01d ; returns long <fold >
menter
lverify this, TAG_OBJECT
mov r1, [.this]
movsxd r0, [r1+float8.01d$fldLength]
sal r0, $05
call inst$lpush
mleaveq
eleave
; </fold>
method float8.01d$clone$, \
this, float8.01d ; returns float8[] <fold >
loc length, int
loc result, float8.01d
; public float8[] clone() {
menter
; int length = fldLength;
rloadloc this
getfieldi float8.01d$fldLength
istoreloc length
; float8[] result = (float8[]) getClass().allocateArray(length);
rloadloc this
invokespecialr avt.lang.Object$getClass$
iloadloc length
invokespecialr avt.lang.Class$allocateArray$int$
rcast float8.01d
rstoreloc result
; Array.copy(this, 0, result, 0, length);
rloadloc this
bload $00
rloadloc result
bload $00
iloadloc length
invokestatic avt.lang.Array$copy$float8.01d$int$float8.01d$int$int$
; return result;
rloadloc result
; }
mleaver
eleave
; </fold>
method float8.01d$$awr$$int$float8$, \
this, float8.01d, \
index, int, \
value, float8 ; <fold >
; public void operator []=(int index, float8 value) {
menter
; this[index] = value;
rloadloc this
iloadloc index
f8loadloc value
setarrayelementf8
; }
mleave
eleave
; </fold>
method float8.01d$$ard$$int$, \
this, float8.01d, \
index, int ; returns float8 <fold >
; public float8 operator [](int index) {
menter
; return this[index];
rloadloc this
iloadloc index
getarrayelementf8
; }
mleavey
eleave
; </fold>
; </fold>