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