max_stars_repo_path
stringlengths
4
261
max_stars_repo_name
stringlengths
6
106
max_stars_count
int64
0
38.8k
id
stringlengths
1
6
text
stringlengths
7
1.05M
alloy4fun_models/trashltl/models/11/b39ujwSWP87vaDiSw.als
Kaixi26/org.alloytools.alloy
0
3512
open main pred idb39ujwSWP87vaDiSw_prop12 { always all f:File | eventually f in Trash } pred __repair { idb39ujwSWP87vaDiSw_prop12 } check __repair { idb39ujwSWP87vaDiSw_prop12 <=> prop12o }
src/main/agda/trees.agda
hablapps/safeoptics
0
12722
module trees where data Tree (A : Set) : Set where empty : Tree A node : Tree A -> A -> Tree A -> Tree A open import Data.Nat #nodes : {A : Set} -> Tree A -> ℕ #nodes empty = 0 #nodes (node t x t₁) = (#nodes t) + (1 + (#nodes t₁)) #leafs : {A : Set} -> Tree A -> ℕ #leafs empty = zero -- #leafs (node empty x empty) = 1 #leafs (node t x t₁) with t | t₁ ... | empty | empty = 1 ... | _ | _ = (#leafs t) + (#leafs t₁)
1-base/lace/applet/demo/event/simple/lace_demo_events.ads
charlie5/lace
20
14632
<filename>1-base/lace/applet/demo/event/simple/lace_demo_events.ads with lace.Event; package lace_demo_Events -- -- Provides a simple derived lace 'event'. -- is pragma remote_Types; type keyboard_Event is new lace.Event.item with record Key : Character; end record; end lace_demo_Events;
programs/oeis/162/A162269.asm
karttu/loda
0
102604
; A162269: a(n) = ((5+sqrt(2))*(2+sqrt(2))^n + (5-sqrt(2))*(2-sqrt(2))^n)/2. ; 5,12,38,128,436,1488,5080,17344,59216,202176,690272,2356736,8046400,27472128,93795712,320238592,1093362944,3732974592,12745172480,43514740736,148568617984,507244990464,1731842725888,5912880922624,20187838238720,68925591109632,235326687961088,803455569625088,2743168902578176 mov $1,5 lpb $0,1 sub $0,1 add $2,$1 mov $3,$2 add $3,$1 sub $1,2 sub $3,1 add $1,$3 lpe
src/Dodo/Binary/Transitive.agda
sourcedennis/agda-dodo
0
2212
<gh_stars>0 {-# OPTIONS --without-K --safe #-} module Dodo.Binary.Transitive where -- Stdlib imports import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; _≢_; refl) open import Level using (Level; _⊔_) open import Function using (flip; _∘_) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product using (_,_; _×_; proj₁; proj₂; ∃-syntax) open import Relation.Unary using (Pred; _∈_) open import Relation.Binary using (Rel; REL) open import Relation.Binary using (Transitive) open import Relation.Binary.Construct.Closure.Transitive using (TransClosure; [_]; _∷_; _∷ʳ_; _++_) -- Local imports open import Dodo.Unary.Equality open import Dodo.Binary.Equality open import Dodo.Binary.Domain ⁺-flip : {a ℓ : Level} {A : Set a} → {R : Rel A ℓ} → {x y : A} → TransClosure R x y → TransClosure (flip R) y x ⁺-flip [ x∼y ] = [ x∼y ] ⁺-flip (x∼z ∷ z∼⁺y) = ⁺-flip z∼⁺y ∷ʳ x∼z ⁺-map : {a b ℓ₁ ℓ₂ : Level} {A : Set a} {B : Set b} → {R : Rel A ℓ₁} {Q : Rel B ℓ₂} → (f : A → B) → (map : ∀ {x y : A} → R x y → Q (f x) (f y)) → {x y : A} → TransClosure R x y → TransClosure Q (f x) (f y) ⁺-map _ map [ Rxy ] = [ map Rxy ] ⁺-map _ map ( Rxz ∷ R⁺zy ) = map Rxz ∷ ⁺-map _ map R⁺zy ⁺-dom : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} → {x y : A} → TransClosure R x y ------------------ → x ∈ dom R ⁺-dom {R = R} [ Rxy ] = take-dom R Rxy ⁺-dom {R = R} ( Rxz ∷ R⁺zy ) = take-dom R Rxz ⁺-codom : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} → {x y : A} → TransClosure R x y ------------------ → y ∈ codom R ⁺-codom {R = R} [ Rxy ] = take-codom R Rxy ⁺-codom {R = R} ( Rxz ∷ R⁺zy ) = ⁺-codom R⁺zy ⁺-udrˡ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} → {x y : A} → TransClosure R x y ------------------ → x ∈ udr R ⁺-udrˡ = inj₁ ∘ ⁺-dom ⁺-udrʳ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} → {x y : A} → TransClosure R x y ------------------ → y ∈ udr R ⁺-udrʳ = inj₂ ∘ ⁺-codom ⁺-predʳ : {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Pred A ℓ₁} {R : Rel A ℓ₂} → (f : ∀ {x y : A} → P x → R x y → P y) → {x y : A} → TransClosure R x y → P x → P y ⁺-predʳ f [ Rxy ] Px = f Px Rxy ⁺-predʳ f ( Rxz ∷ R⁺zy ) Px = ⁺-predʳ f R⁺zy (f Px Rxz) ⁺-predˡ : {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Pred A ℓ₁} {R : Rel A ℓ₂} → (f : ∀ {x y : A} → P y → R x y → P x) → {x y : A} → TransClosure R x y → P y → P x ⁺-predˡ f [ Rxy ] Px = f Px Rxy ⁺-predˡ f ( Rxz ∷ R⁺zy ) Px = f (⁺-predˡ f R⁺zy Px) Rxz ⁺-lift-predʳ : {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Pred A ℓ₁} {R : Rel A ℓ₂} → (f : ∀ {x y : A} → R x y → P y) → {x y : A} → TransClosure R x y → P y ⁺-lift-predʳ f [ Rxy ] = f Rxy ⁺-lift-predʳ f ( Rxz ∷ R⁺zy ) = ⁺-lift-predʳ f R⁺zy ⁺-lift-predˡ : {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Pred A ℓ₁} {R : Rel A ℓ₂} → (f : ∀ {x y : A} → R x y → P x) → {x y : A} → TransClosure R x y → P x ⁺-lift-predˡ f [ Rxy ] = f Rxy ⁺-lift-predˡ f ( Rxz ∷ R⁺zy ) = f Rxz module _ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} where ⁺-idem : TransClosure R ⇔₂ TransClosure (TransClosure R) ⁺-idem = ⇔: ⊆-proof ⊇-proof where ⊆-proof : TransClosure R ⊆₂' TransClosure (TransClosure R) ⊆-proof _ _ R⁺xy = [ R⁺xy ] ⊇-proof : TransClosure (TransClosure R) ⊆₂' TransClosure R ⊇-proof _ _ [ R⁺xy ] = R⁺xy ⊇-proof _ y ( _∷_ {_} {z} R⁺xz R⁺⁺zy ) = R⁺xz ++ ⊇-proof z y R⁺⁺zy ⁺-join : ∀ {x y : A} → TransClosure (TransClosure R) x y → TransClosure R x y ⁺-join = ⇔₂-apply-⊇₂ ⁺-idem module _ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} where ⁺-preserves-dom : dom R ⇔₁ dom (TransClosure R) ⁺-preserves-dom = ⇔: ⊆-proof ⊇-proof where ⊆-proof : dom R ⊆₁' dom (TransClosure R) ⊆-proof x (y , Rxy) = (y , [ Rxy ]) ⊇-proof : dom (TransClosure R) ⊆₁' dom R ⊇-proof x (y , R⁺xy) = ⁺-dom R⁺xy ⁺-preserves-codom : codom R ⇔₁ codom (TransClosure R) ⁺-preserves-codom = ⇔: ⊆-proof ⊇-proof where ⊆-proof : codom R ⊆₁' codom (TransClosure R) ⊆-proof y (x , Rxy) = (x , [ Rxy ]) ⊇-proof : codom (TransClosure R) ⊆₁' codom R ⊇-proof y (x , R⁺xy) = ⁺-codom R⁺xy ⁺-preserves-udr : udr R ⇔₁ udr (TransClosure R) ⁺-preserves-udr = ⇔: ⊆-proof ⊇-proof where ⊆-proof : udr R ⊆₁' udr (TransClosure R) ⊆-proof _ (inj₁ x∈dom) = inj₁ (⇔₁-apply-⊆₁ ⁺-preserves-dom x∈dom) ⊆-proof _ (inj₂ x∈codom) = inj₂ (⇔₁-apply-⊆₁ ⁺-preserves-codom x∈codom) ⊇-proof : udr (TransClosure R) ⊆₁' udr R ⊇-proof _ (inj₁ x∈dom) = inj₁ (⇔₁-apply-⊇₁ ⁺-preserves-dom x∈dom) ⊇-proof _ (inj₂ x∈codom) = inj₂ (⇔₁-apply-⊇₁ ⁺-preserves-codom x∈codom) module _ {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Rel A ℓ₁} {Q : Rel A ℓ₂} where ⁺-preserves-⊆₂ : P ⊆₂ Q → TransClosure P ⊆₂ TransClosure Q ⁺-preserves-⊆₂ P⊆Q = ⊆: lemma where lemma : TransClosure P ⊆₂' TransClosure Q lemma _ _ [ Pxy ] = [ ⊆₂-apply P⊆Q Pxy ] lemma _ y ( _∷_ {_} {z} Pxz P⁺zy ) = ⊆₂-apply P⊆Q Pxz ∷ lemma z y P⁺zy module _ {a ℓ₁ ℓ₂ : Level} {A : Set a} {P : Rel A ℓ₁} {Q : Rel A ℓ₂} where ⁺-preserves-⇔₂ : P ⇔₂ Q → TransClosure P ⇔₂ TransClosure Q ⁺-preserves-⇔₂ = ⇔₂-compose ⁺-preserves-⊆₂ ⁺-preserves-⊆₂ module _ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} where ⁺-trans-⇔₂ : Transitive R → R ⇔₂ TransClosure R ⁺-trans-⇔₂ transR = ⇔: ⊆-proof ⊇-proof where ⊆-proof : R ⊆₂' TransClosure R ⊆-proof _ _ = [_] ⊇-proof : TransClosure R ⊆₂' R ⊇-proof _ _ [ Rxy ] = Rxy ⊇-proof _ y (_∷_ {_} {w} Rxw R⁺wy) = transR Rxw (⊇-proof w y R⁺wy) ⁺-trans-⊆₂ : Transitive R → TransClosure R ⊆₂ R ⁺-trans-⊆₂ transR = ⇔₂-to-⊇₂ (⁺-trans-⇔₂ transR) ⁺-join-trans : Transitive R → {x y : A} → TransClosure R x y → R x y ⁺-join-trans = ⊆₂-apply ∘ ⁺-trans-⊆₂ ⁺-unconsʳ : {x y : A} → TransClosure R x y → R x y ⊎ ∃[ z ] (TransClosure R x z × R z y) ⁺-unconsʳ [ Rxy ] = inj₁ Rxy ⁺-unconsʳ ( Rxz ∷ R⁺zy ) with ⁺-unconsʳ R⁺zy ... | inj₁ Rzy = inj₂ (_ , [ Rxz ] , Rzy) ... | inj₂ (v , R⁺zv , Rvy) = inj₂ (v , Rxz ∷ R⁺zv , Rvy)
oeis/067/A067056.asm
neoneye/loda-programs
11
172495
; A067056: a(n) = (1)*(2 + 3 + 4 + ... + n) + (1 + 2)*(3 + 4 + 5 + ... + n) + (1 + 2 + 3)*(4 + 5 + 6 + ... + n) + ... + (1 + 2 + 3 + ... + n-1)*n. ; Submitted by <NAME> ; 1,2,14,54,154,364,756,1428,2508,4158,6578,10010,14742,21112,29512,40392,54264,71706,93366,119966,152306,191268,237820,293020,358020,434070,522522,624834,742574,877424,1031184,1205776,1403248,1625778,1875678,2155398,2467530,2814812,3200132,3626532,4097212,4615534,5185026,5809386,6492486,7238376,8051288,8935640,9896040,10937290,12064390,13282542,14597154,16013844,17538444,19177004,20935796,22821318,24840298,26999698,29306718,31768800,34393632,37189152,40163552,43325282,46683054,50245846,54022906 sub $0,1 mov $1,$0 mul $0,2 add $0,5 mul $0,2 mov $2,$1 add $2,4 bin $2,$1 mul $0,$2 sub $0,4 div $0,5 add $0,1
oeis/331/A331656.asm
neoneye/loda-programs
11
80232
<reponame>neoneye/loda-programs ; A331656: a(n) = Sum_{k=0..n} binomial(n,k) * binomial(n+k,k) * n^k. ; Submitted by <NAME> ; 1,3,37,847,28401,1256651,69125869,4548342975,348434664769,30463322582899,2993348092318101,326572612514776079,39170287549040392369,5123157953193993402171,725662909285939100555101,110662236267661479984580351,18077209893508013563092846849,3149291681699737549420566354275,582850372010419084520406195906949,114200735801939256602970688445323599,23616423483397065268759954056708284401,5140374525496088636428540146598467928363,1174706082333728507984039906270047466832717 mov $4,$0 add $0,2 lpb $0 sub $0,1 mov $2,$1 add $2,$0 max $0,1 pow $2,$1 mov $3,$4 bin $3,$1 add $1,1 pow $3,2 mul $3,$2 mul $5,$4 add $5,$3 lpe mov $0,$5
source/tasking/a-stcoed.adb
ytomino/drake
33
1818
with System.Synchronous_Objects.Abortable; with System.Tasks; package body Ada.Synchronous_Task_Control.EDF is procedure Suspend_Until_True_And_Set_Deadline ( S : in out Suspension_Object; TS : Real_Time.Time_Span) is Dummy : Boolean; begin Suspend_Until_True_And_Set_Deadline (S, TS, Dummy); end Suspend_Until_True_And_Set_Deadline; procedure Suspend_Until_True_And_Set_Deadline ( S : in out Suspension_Object; TS : Real_Time.Time_Span; State : out Boolean) is Aborted : Boolean; begin System.Tasks.Enable_Abort; System.Synchronous_Objects.Abortable.Wait ( S.Object, Real_Time.To_Duration (TS), State, Aborted => Aborted); System.Tasks.Disable_Abort (Aborted); end Suspend_Until_True_And_Set_Deadline; end Ada.Synchronous_Task_Control.EDF;
programs/oeis/103/A103205.asm
karttu/loda
0
80297
; A103205: Write numbers in decimal under each other, then read diagonals in upward direction. ; 0,1,2,3,4,5,6,7,8,19,10,11,12,13,14,15,16,17,18,29,20,21,22,23,24,25,26,27,28,39,30,31,32,33,34,35,36,37,38,49,40,41,42,43,44,45,46,47,48,59,50,51,52,53,54,55,56,57,58,69,60,61,62,63,64,65,66,67,68,79,70,71,72,73,74,75,76,77,78,89,80,81,82,83,84,85,86,87,88 mov $2,$0 add $0,1 mod $0,10 mov $1,10 lpb $0,1 div $0,4 mov $1,0 lpe add $1,$2
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1506.asm
ljhsiun2/medusa
9
161643
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1bf11, %rsi nop nop nop nop sub $50915, %rcx vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r10 nop and $36686, %r12 lea addresses_D_ht+0x1b711, %rbx and %rdi, %rdi movb $0x61, (%rbx) add $4086, %rcx lea addresses_D_ht+0x4329, %r10 clflush (%r10) nop nop nop inc %rdi movb $0x61, (%r10) nop nop nop nop nop cmp $27596, %r14 lea addresses_WT_ht+0x18511, %rsi lea addresses_D_ht+0x25c9, %rdi nop nop nop nop inc %r15 mov $108, %rcx rep movsq nop nop nop nop nop inc %r15 lea addresses_A_ht+0x1c801, %rsi lea addresses_D_ht+0x18d61, %rdi nop nop nop nop add %r10, %r10 mov $120, %rcx rep movsw dec %rcx lea addresses_WT_ht+0x14651, %rsi lea addresses_normal_ht+0xaa11, %rdi nop nop nop and %r14, %r14 mov $89, %rcx rep movsq xor %r12, %r12 lea addresses_WC_ht+0xe4b1, %rsi lea addresses_UC_ht+0x3301, %rdi nop cmp %r10, %r10 mov $124, %rcx rep movsq nop nop sub $26172, %r15 lea addresses_D_ht+0x25d1, %rsi lea addresses_D_ht+0x1ebb1, %rdi clflush (%rsi) nop nop sub $4327, %r12 mov $125, %rcx rep movsq nop and %rdi, %rdi lea addresses_WT_ht+0x14711, %r12 nop and %r14, %r14 movb $0x61, (%r12) nop nop dec %rcx lea addresses_WC_ht+0x12571, %r10 nop nop cmp $55774, %rdi movb $0x61, (%r10) lfence lea addresses_WC_ht+0xeeb1, %rdi nop xor $14416, %rbx vmovups (%rdi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r14 nop nop nop nop inc %r15 lea addresses_UC_ht+0x1ad27, %r10 nop and $52203, %rbx mov $0x6162636465666768, %rdi movq %rdi, (%r10) nop add $56024, %r14 lea addresses_A_ht+0x13cfd, %rsi lea addresses_A_ht+0x1885, %rdi nop cmp $64383, %rbx mov $31, %rcx rep movsw nop nop nop nop and $27666, %rcx lea addresses_normal_ht+0x39d1, %r14 nop nop nop nop nop cmp %rdi, %rdi mov $0x6162636465666768, %r10 movq %r10, (%r14) nop nop nop inc %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WC+0xf711, %r13 nop cmp %rax, %rax movw $0x5152, (%r13) nop nop nop nop sub $51110, %r13 // Load lea addresses_A+0x16a11, %rax nop nop nop sub $2988, %rsi mov (%rax), %rdi nop nop nop nop nop add $57171, %rsi // Load lea addresses_D+0x1ad11, %rax nop nop nop inc %r13 movb (%rax), %dl nop nop sub %r15, %r15 // Store lea addresses_A+0x1c091, %rdi nop nop nop cmp $60812, %r13 movw $0x5152, (%rdi) nop dec %rsi // Store lea addresses_WT+0xf651, %rdx nop nop nop nop nop cmp $17777, %r13 movb $0x51, (%rdx) nop inc %rax // REPMOV lea addresses_WC+0x1b0fb, %rsi lea addresses_PSE+0xef11, %rdi nop add $28731, %rdx mov $18, %rcx rep movsl nop xor $64861, %r10 // Store lea addresses_UC+0xea11, %rcx nop nop sub %rdi, %rdi mov $0x5152535455565758, %rax movq %rax, (%rcx) nop nop nop nop nop and %rcx, %rcx // Faulty Load lea addresses_UC+0x16f11, %rcx clflush (%rcx) nop nop nop xor $40265, %r10 mov (%rcx), %r13 lea oracles, %rsi and $0xff, %r13 shlq $12, %r13 mov (%rsi,%r13,1), %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_WC', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_PSE', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
programs/oeis/166/A166496.asm
neoneye/loda
22
15844
<reponame>neoneye/loda ; A166496: Prime plus the next composite. ; 6,7,11,15,23,27,35,39,47,59,63,75,83,87,95,107,119,123,135,143,147,159,167,179,195,203,207,215,219,227,255,263,275,279,299,303,315,327,335,347,359,363,383,387,395,399,423,447,455,459,467,479,483,503,515,527 seq $0,6005 ; The odd prime numbers together with 1. mul $0,2 max $0,5 add $0,1
oeis/028/A028140.asm
neoneye/loda-programs
11
86401
; A028140: Expansion of 1/((1-4x)(1-6x)(1-9x)(1-11x)). ; Submitted by <NAME> ; 1,30,577,9090,128053,1682430,21103129,256309050,3041879005,35492692950,408887138881,4665046178130,52827593605957,594751348348590,6665329755603433,74427620033028330,828693209595614509 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,19488 ; Expansion of 1/((1-4*x)*(1-6*x)*(1-11*x)). sub $0,$1 mul $1,10 add $1,$0 lpe mov $0,$1
Light/Library/Data/Either.agda
zamfofex/lightlib
1
5037
<gh_stars>1-10 {-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-} module Light.Library.Data.Either where open import Light.Level using (Level ; Setω ; _⊔_) open import Light.Variable.Sets open import Light.Variable.Levels record Dependencies : Setω where record Library (dependencies : Dependencies) : Setω where field ℓf : Level → Level → Level Either : Set aℓ → Set bℓ → Set (ℓf aℓ bℓ) left : 𝕒 → Either 𝕒 𝕓 right : 𝕓 → Either 𝕒 𝕓 open Library ⦃ ... ⦄ public
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1172.asm
ljhsiun2/medusa
9
820
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rbx push %rcx lea addresses_D_ht+0x1927a, %r8 nop xor $31662, %rcx movl $0x61626364, (%r8) nop mfence lea addresses_normal_ht+0x16c03, %rbx nop nop nop nop nop xor %r13, %r13 movw $0x6162, (%rbx) sub %r13, %r13 pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_A+0x15daa, %rsi nop dec %r11 mov $0x5152535455565758, %rbx movq %rbx, (%rsi) nop nop nop inc %r11 // Store lea addresses_WC+0x81ba, %rcx nop nop nop nop nop inc %r12 movb $0x51, (%rcx) nop cmp $2359, %r11 // Store lea addresses_A+0xcc1a, %rax nop nop nop nop add %r12, %r12 movw $0x5152, (%rax) nop nop nop nop nop cmp %rax, %rax // REPMOV lea addresses_D+0x473a, %rsi lea addresses_A+0xc7fa, %rdi nop nop nop nop and %rax, %rax mov $31, %rcx rep movsl nop nop sub $58214, %r11 // Faulty Load lea addresses_UC+0x14d3a, %r12 nop nop nop and $6739, %rbx mov (%r12), %r13w lea oracles, %rax and $0xff, %r13 shlq $12, %r13 mov (%rax,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_D'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2001.asm
ljhsiun2/medusa
9
87817
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x39ba, %rdx nop nop inc %rax movw $0x6162, (%rdx) add $38761, %rcx lea addresses_D_ht+0xf77a, %rsi lea addresses_A_ht+0x2a3a, %rdi nop and $3032, %r11 mov $25, %rcx rep movsb nop nop xor %rax, %rax lea addresses_A_ht+0x33fa, %rsi lea addresses_WT_ht+0x10faa, %rdi nop nop nop nop nop sub $9271, %rbx mov $14, %rcx rep movsw and $41108, %rsi lea addresses_normal_ht+0x53b8, %r13 nop nop nop and %rax, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm7 vmovups %ymm7, (%r13) nop nop nop nop and %rsi, %rsi lea addresses_UC_ht+0x8e3a, %rax add %r11, %r11 movups (%rax), %xmm1 vpextrq $0, %xmm1, %r13 dec %r13 lea addresses_WC_ht+0xefba, %rcx nop nop nop nop nop xor %rax, %rax mov (%rcx), %bx nop nop nop nop nop inc %r11 lea addresses_UC_ht+0x15dba, %rsi lea addresses_normal_ht+0x141ba, %rdi nop nop xor $32965, %r13 mov $20, %rcx rep movsw nop add %rsi, %rsi lea addresses_A_ht+0x64c6, %rsi lea addresses_WC_ht+0xe8ba, %rdi nop nop nop add $39639, %rax mov $51, %rcx rep movsq nop nop nop and $42305, %rax lea addresses_normal_ht+0x187ba, %rcx nop nop nop add $25856, %rsi and $0xffffffffffffffc0, %rcx movntdqa (%rcx), %xmm7 vpextrq $0, %xmm7, %rax nop nop nop dec %rdx lea addresses_D_ht+0x1a43a, %rcx nop add $42585, %rdi movups (%rcx), %xmm3 vpextrq $0, %xmm3, %r11 nop cmp $33010, %rbx lea addresses_D_ht+0x1538a, %rdi nop nop nop nop nop cmp $35714, %rbx mov $0x6162636465666768, %rcx movq %rcx, %xmm2 and $0xffffffffffffffc0, %rdi movaps %xmm2, (%rdi) nop nop nop sub %rcx, %rcx lea addresses_WT_ht+0x141ba, %rsi lea addresses_D_ht+0x19e2, %rdi nop nop nop inc %rbx mov $43, %rcx rep movsw nop lfence lea addresses_WC_ht+0xe0ba, %rsi lea addresses_WT_ht+0xc62a, %rdi nop nop sub %r13, %r13 mov $46, %rcx rep movsq nop nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0xfe3a, %rsi lea addresses_A_ht+0x2bba, %rdi nop nop and $6455, %rdx mov $106, %rcx rep movsq nop nop nop nop nop xor $59308, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r8 push %rbx push %rcx push %rdi // Store mov $0x32a8e80000000fee, %rbx nop nop inc %r15 mov $0x5152535455565758, %r10 movq %r10, %xmm7 vmovups %ymm7, (%rbx) nop nop nop nop nop xor $498, %r10 // Store lea addresses_D+0x9b1c, %rbx nop nop inc %r8 movb $0x51, (%rbx) nop nop nop nop nop cmp %rbx, %rbx // Store lea addresses_normal+0x43f2, %r10 nop and %r15, %r15 movb $0x51, (%r10) and $44443, %rbx // Store lea addresses_RW+0x31ba, %rbx nop nop nop nop add %r15, %r15 movw $0x5152, (%rbx) nop nop nop and %r10, %r10 // Store lea addresses_WT+0x15dba, %r10 nop nop nop nop cmp %r8, %r8 movb $0x51, (%r10) nop nop nop and %r15, %r15 // Faulty Load lea addresses_RW+0x31ba, %r10 dec %rcx movb (%r10), %bl lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'52': 21829} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
Experiment/Zero.agda
rei1024/agda-misc
3
821
<gh_stars>1-10 {-# OPTIONS --without-K --safe #-} module Experiment.Zero where open import Level using (_⊔_) -- Empty type data ⊥ : Set where -- Unit type record ⊤ : Set where constructor tt -- Boolean data Bool : Set where true false : Bool -- Natural number data ℕ : Set where zero : ℕ suc : ℕ → ℕ -- Propositional Equality data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x -- Sum type data _⊎_ {a} {b} (A : Set a) (B : Set b) : Set (a ⊔ b) where inj₁ : A → A ⊎ B inj₂ : B → A ⊎ B -- Dependent Product type record Σ {a} {b} (A : Set a) (B : A → Set b) : Set (a ⊔ b) where constructor _,_ field fst : A snd : B fst -- Induction ⊤-ind : ∀ {p} {P : ⊤ → Set p} → P tt → ∀ x → P x ⊤-ind P⊤ tt = P⊤ ⊥-ind : ∀ {p} {P : ⊥ → Set p} → ∀ x → P x ⊥-ind () Bool-ind : ∀ {p} {P : Bool → Set p} → P true → P false → ∀ x → P x Bool-ind t e true = t Bool-ind t e false = e ℕ-ind : ∀ {p} {P : ℕ → Set p} → P zero → (∀ m → P m → P (suc m)) → ∀ n → P n ℕ-ind P0 Ps zero = P0 ℕ-ind P0 Ps (suc n) = Ps n (ℕ-ind P0 Ps n) ≡-ind : ∀ {a p} {A : Set a} (P : (x y : A) → x ≡ y → Set p) → (∀ x → P x x refl) → ∀ x y (eq : x ≡ y) → P x y eq ≡-ind P Pr x .x refl = Pr x ⊎-ind : ∀ {a b p} {A : Set a} {B : Set b} {P : A ⊎ B → Set p} → (∀ x → P (inj₁ x)) → (∀ y → P (inj₂ y)) → ∀ s → P s ⊎-ind i1 i2 (inj₁ x) = i1 x ⊎-ind i1 i2 (inj₂ y) = i2 y Σ-ind : ∀ {a b p} {A : Set a} {B : A → Set b} {P : Σ A B → Set p} → (∀ x y → P (x , y)) → ∀ p → P p Σ-ind f (x , y) = f x y
Assembly/moldorm.asm
CaitSith2/Enemizer
2
179155
Moldorm_UpdateOamPosition: { PHX LDA !MOLDORM_EYES_FLAG : TAX .more_eyes LDA $90 : CLC : ADC.w #$0004 : STA $90 LDA $92 : CLC : ADC.w #$0001 : STA $92 DEX : BPL .more_eyes ; X >= 0 PLX RTL }
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_ix/esx_m_tapeout_info_callee.asm
jpoikela/z88dk
640
11634
; unsigned char esx_m_tapeout_info(uint8_t *drive,unsigned char *filename) SECTION code_esxdos PUBLIC _esx_m_tapeout_info_callee PUBLIC l0_esx_m_tapeout_info_callee EXTERN asm_esx_m_tapeout_info _esx_m_tapeout_info_callee: pop hl pop de ex (sp),hl l0_esx_m_tapeout_info_callee: push ix call asm_esx_m_tapeout_info pop ix ret
src/ada/src/route_aggregator_common.adb
pat-rogers/OpenUxAS
0
30259
package body Route_Aggregator_Common is ------------------- -- Append_To_Msg -- ------------------- procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : String) is begin Append (Msg, Tail); end Append_To_Msg; end Route_Aggregator_Common;
Sources/Graphics/graphics_opengl.adb
ForYouEyesOnly/Space-Convoy
1
16991
-- -- Jan & <NAME>, Australia, July 2011 -- with Ada.Numerics; use Ada.Numerics; with GL; -- with GL.Materials; with GLOBE_3D; with GLOBE_3D.Math; use GLOBE_3D.Math; with GLOBE_3D.Stars_sky; pragma Elaborate_All (GLOBE_3D.Stars_sky); with GLU; with GLUT; with GLUT_2D; with Graphics_Configuration; use Graphics_Configuration; with Graphics_Setup; use Graphics_Setup; with Vectors_2D_N; use Vectors_2D_N; package body Graphics_OpenGL is use Real_Elementary_Functions; package Stars is new GLOBE_3D.Stars_sky (No_of_Stars => Number_Of_Stars, far_side => Distance_of_Stars); --------------------------- -- To GL Rotation Matrix -- --------------------------- function To_GL_Rotation (Quat_Rotation : Quaternion_Rotation) return GLOBE_3D.Matrix_33 is Rotation_Matrix : constant Matrix_3D := To_Matrix_3D_OpenGL (Roll (Quat_Rotation), Pitch (Quat_Rotation), Yaw (Quat_Rotation)); GL_Matrix : GLOBE_3D.Matrix_33; begin for Column in 1 .. 3 loop for Row in 1 .. 3 loop GL_Matrix (Column, Row) := GL.Double (Rotation_Matrix (Column, Row)); end loop; end loop; return GL_Matrix; end To_GL_Rotation; ----------------------- -- To GL Vector Type -- ----------------------- function To_GL_Vector (In_Vector : Vector_3D) return GLOBE_3D.Vector_3D is (0 => GL.Double (In_Vector (x)), 1 => GL.Double (In_Vector (y)), 2 => GL.Double (In_Vector (z))); -- -- -- function To_GL_Material_Float_vector (Colour : RGBA_Colour) return GL.Material_Float_vector is (0 => GL.C_Float (Colour (Red)), 1 => GL.C_Float (Colour (Green)), 2 => GL.C_Float (Colour (Blue)), 3 => GL.C_Float (Colour (Alpha))); -- procedure Set_Material (Material : Materials) is begin GL.Disable (GL.COLOR_MATERIAL); GL.Material (GL.FRONT_AND_BACK, GL.AMBIENT, To_GL_Material_Float_vector (Material.Ambient)); GL.Material (GL.FRONT_AND_BACK, GL.DIFFUSE, To_GL_Material_Float_vector (Material.Diffuse)); GL.Material (GL.FRONT_AND_BACK, GL.SPECULAR, To_GL_Material_Float_vector (Material.Specular)); GL.Material (GL.FRONT_AND_BACK, GL.EMISSION, To_GL_Material_Float_vector (Material.Emission)); GL.Material (GL.FRONT_AND_BACK, GL.SHININESS, GL.C_Float (Material.Shininess)); end Set_Material; procedure Set_Colour (Colour : RGB_Colour) is begin null; end Set_Colour; procedure Set_Colour (Colour : RGBA_Colour) is begin GL.Disable (GL.LIGHTING); GL.Enable (GL.COLOR_MATERIAL); GL.ColorMaterial (GL.FRONT_AND_BACK, GL.AMBIENT_AND_DIFFUSE); GL.Color (red => GL.Double (Colour (Red)), green => GL.Double (Colour (Green)), blue => GL.Double (Colour (Blue)), alpha => GL.Double (Colour (Alpha))); end Set_Colour; ---------------- -- Set_Camera -- ---------------- procedure Position_Camera (Cam_Position : GLOBE_3D.Vector_3D; Cam_Rotation : GLOBE_3D.Matrix_33; Cam_Offset : GLOBE_3D.Vector_3D) is begin GL.Clear (GL.DEPTH_BUFFER_BIT); GL.Clear (GL.COLOR_BUFFER_BIT); GL.Disable (GL.LIGHTING); GL.Enable (GL.DEPTH_TEST); GL.MatrixMode (GL.MODELVIEW); GL.LoadIdentity; GL.Translate (-Cam_Offset); Multiply_GL_Matrix (Cam_Rotation); GL.Translate (-Cam_Position); Stars.Display (Cam_Rotation); GL.Enable (GL.LIGHTING); GL.Enable (GL.CULL_FACE); GL.CullFace (GL.BACK); end Position_Camera; -- -- procedure Position_Camera (Cam_Position : Vector_3D; -- Cam_Rotation : Quaternion_Rotation; -- Cam_Offset : Vector_3D := Zero_Vector) is -- -- begin -- Position_Camera (To_GL_Vector (Cam_Position), -- To_GL_Rotation (Cam_Rotation), -- To_GL_Vector (Cam_Offset)); -- end Position_Camera; -- procedure Position_Camera (C : Camera := Cam) is begin Position_Camera (To_GL_Vector (C.Position + C.Scene_Offset), To_GL_Rotation (C.Rotation), To_GL_Vector (C.Object_Offset)); end Position_Camera; -- ---------- -- Draw -- ---------- procedure Draw (Draw_Object : GLOBE_3D.p_Object_3D) is begin GL.PushMatrix; GLOBE_3D.Display (Draw_Object.all, Eye.Clipper); GL.PopMatrix; end Draw; ------------------------------------ -- Alternative Draw Input Options -- ------------------------------------ procedure Draw (Draw_Object : GLOBE_3D.p_Object_3D; In_Object_Position : GLOBE_3D.Vector_3D; In_Object_Rotation : GLOBE_3D.Matrix_33) is begin Draw_Object.all.Centre := In_Object_Position; Draw_Object.all.rotation := In_Object_Rotation; Draw (Draw_Object); end Draw; procedure Draw (Draw_Object : GLOBE_3D.p_Object_3D; In_Object_Position : Vector_3D; In_Object_Rotation : Quaternion_Rotation) is begin Draw (Draw_Object, To_GL_Vector (In_Object_Position), To_GL_Rotation (In_Object_Rotation)); end Draw; -- -- -- procedure Draw_Lines (Points : Points_3D) is begin GL.GL_Begin (GL.LINES); GL.Vertex (To_GL_Vector (Points (Points'First))); for i in Points'First + 1 .. Points'Last loop GL.Vertex (To_GL_Vector (Points (i))); end loop; GL.GL_End; end Draw_Lines; procedure Draw_Line (Line : Line_3D; Line_Radius : Real) is Cyl_Slices : constant GL.Int := 10; Cyl_Stacks : constant GL.Int := 1; Rad_to_Deg : constant Real := 360.0 / (2.0 * Pi); Cylinder : constant Vector_3D := (0.0, 0.0, 1.0); Line_Vector : constant Vector_3D := Line (Line'Last) - Line (Line'First); Radius : constant Vector_3D := Cylinder * Line_Vector; Tilt_Angle : constant Real := Rad_to_Deg * Angle_Between (Cylinder, Line_Vector); Quadratic : constant GLU.GLUquadricObjPtr := GLU.NewQuadric; begin GL.PushMatrix; GL.Translate (To_GL_Vector (Line (Line'First))); GL.Rotate (GL.Double (Tilt_Angle), GL.Double (Radius (x)), GL.Double (Radius (y)), GL.Double (Radius (z))); GLU.QuadricOrientation (Quadratic, GLU.GLU_OUTSIDE); GLU.Cylinder (Quadratic, GL.Double (Line_Radius), GL.Double (Line_Radius), GL.Double (abs (Line_Vector)), Cyl_Slices, Cyl_Stacks); GLU.QuadricOrientation (Quadratic, GLU.GLU_INSIDE); GLU.Disk (Quadratic, 0.0, GL.Double (Line_Radius), Cyl_Slices, Cyl_Stacks); GL.Translate (To_GL_Vector (Line_Vector)); GLU.QuadricOrientation (Quadratic, GLU.GLU_OUTSIDE); GLU.Disk (Quadratic, 0.0, GL.Double (Line_Radius), Cyl_Slices, Cyl_Stacks); GL.PopMatrix; GLU.DeleteQuadric (Quadratic); end Draw_Line; -- function Scale_RGB (In_Colour : RGBA_Colour; Scale : Colour_Component_Range) return RGBA_Colour is (Red => In_Colour (Red) * Scale, Green => In_Colour (Green) * Scale, Blue => In_Colour (Blue) * Scale, Alpha => In_Colour (Alpha)); -- procedure Draw_Laser (Line_Start, Line_End : Vector_3D; Beam_Radius, Aura_Radius : Real; Beam_Colour : RGBA_Colour) is Rendering_Steps : constant Positive := 5; Max_Alpha : constant Colour_Component_Range := 1.0; Min_Alpha : constant Colour_Component_Range := 0.1; Laser_Material : constant Materials := (Ambient => (Red => 0.00, Green => 0.00, Blue => 0.00, Alpha => 1.00), Diffuse => (Red => 0.59, Green => 0.67, Blue => 0.73, Alpha => 1.00), Specular => (Red => 0.90, Green => 0.90, Blue => 0.90, Alpha => 1.00), Emission => Beam_Colour, Shininess => 100.0); Beam_Material : Materials := Laser_Material; Radius : Real := Beam_Radius; Beam_Alpha : Colour_Component_Range := 1.0; begin for Steps in 0 .. Rendering_Steps loop Beam_Alpha := Max_Alpha - (Real (Steps) / Real (Rendering_Steps)) ** (1.0 / 2.0) * (Max_Alpha - Min_Alpha); Radius := Beam_Radius + (Real (Steps) / Real (Rendering_Steps)) * (Aura_Radius - Beam_Radius); Beam_Material.Diffuse := (Scale_RGB (Laser_Material.Diffuse, Beam_Alpha)); Beam_Material.Specular := (Scale_RGB (Laser_Material.Specular, Beam_Alpha)); Beam_Material.Emission := (Scale_RGB (Laser_Material.Emission, Beam_Alpha)); Beam_Material.Ambient (Alpha) := Beam_Alpha; Beam_Material.Diffuse (Alpha) := Beam_Alpha; Beam_Material.Specular (Alpha) := Beam_Alpha; Beam_Material.Emission (Alpha) := Beam_Alpha; Set_Material (Beam_Material); Draw_Line ((Line_Start, Line_End), Radius); end loop; end Draw_Laser; -- package body Cursor_Management is function Cursor return Point_2D is (Cursor_Pos); -- procedure Home is begin Cursor_Pos := Home_Pos; end Home; -- procedure Line_Feed is begin Cursor_Pos := (x => Home_Pos (x), y => Cursor_Pos (y) + Leading); end Line_Feed; -- procedure Paragraph_Feed is begin Cursor_Pos := (x => Home_Pos (x), y => Cursor_Pos (y) + Paragraph_Spacing); end Paragraph_Feed; -- procedure Indend (Set_x : Natural) is begin Cursor_Pos (x) := Set_x; end Indend; end Cursor_Management; procedure Text_2D (S : String; C : Point_2D := Cursor_Management.Cursor) is begin GLUT_2D.Text_output (GL.Int (C (x)), GL.Int (C (y)), GL.Sizei (GLUT.Get (GLUT.WINDOW_WIDTH)), GL.Sizei (GLUT.Get (GLUT.WINDOW_HEIGHT)), S, Screen_Font); end Text_2D; -- procedure Text_3D (S : String; P : Vector_3D) is begin GLUT_2D.Text_output (To_GL_Vector (P), S, Screen_Font); end Text_3D; ------------------ -- Show Drawing -- ------------------ procedure Show_Drawing is begin GLUT.SwapBuffers; end Show_Drawing; ------------------- -- Resize Window -- ------------------- procedure Resize_Window (Size : Size_2D) is begin GLUT.ReshapeWindow (Width => Size (x), Height => Size (y)); Window_Resize (Size (x), Size (y)); end Resize_Window; ----------------- -- Move Window -- ----------------- procedure Move_Window (Position : Point_2D) is begin GLUT.PositionWindow (Position (x), Position (y)); end Move_Window; ----------------- -- Full Screen -- ----------------- package body Full_Screen_Mode is procedure Change_Full_Screen is begin case Full_Screen_State is when False => Memoried_Viewer_Size := ((x => GLUT.Get (GLUT.WINDOW_WIDTH), y => GLUT.Get (GLUT.WINDOW_HEIGHT))); Memoried_Viewer_Position := ((x => GLUT.Get (GLUT.WINDOW_X), y => GLUT.Get (GLUT.WINDOW_Y))); GLUT.FullScreen; Window_Resize (Size_x => GLUT.Get (GLUT.WINDOW_WIDTH), Size_y => GLUT.Get (GLUT.WINDOW_HEIGHT)); GLUT.SetCursor (GLUT.CURSOR_NONE); when True => Resize_Window (Memoried_Viewer_Size); Move_Window (Memoried_Viewer_Position); GLUT.SetCursor (GLUT.CURSOR_INHERIT); end case; Full_Screen_State := not Full_Screen_State; end Change_Full_Screen; end Full_Screen_Mode; end Graphics_OpenGL;
src/c64/fileio.asm
puzzud/retroleague
4
166823
; c64 fileio.asm .export _LoadFile .autoimport on .importzp sp, sreg, regsave, regbank .importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4 .macpack longbranch .include "c64.asm" .segment "ZEROPAGE" ; Reserve kernal zeropage RAM. ; TODO: This block could probably be reduced, ; given some investigation. .org $90 .res $fb-$90+1 .reloc .segment "BSS" .org $314 .res $0332-$0314+2 .reloc FileNameCache: .res 16 .segment "CODE" ; _LoadFile ; Loads a file by name to a specific address. ; ; inputs: ; - fileName: (sp[3],sp[2]), Pointer to a file name string. ; - address: (x,a), Pointer to a location to load file data. _LoadFile: jsr pushax ; (ptr1)=fileName ldy #3 jsr ldaxysp sta ptr1 stx ptr1+1 ; (ptr2)=address jsr ldax0sp sta ptr2 stx ptr2+1 ; (ptr3)=FileNameCache lda #<FileNameCache sta ptr3 lda #>FileNameCache sta ptr3+1 ldy #$ff @getFileNameLength: iny lda (ptr1),y sta (ptr3),y bne @getFileNameLength iny lda #0 sta (ptr3),y dey sei lda VIC_IMR pha and #%11111110 sta VIC_IMR lda LORAM pha ora #%00000010 sta LORAM cli lda #0 jsr $ff90 ;lda #$7f ;suppress any irq&nmi ;sta $dc0d ;to disallow abort load by R/S ;sta $dc0e ;jsr $ff8a ; Set (fileName, A = string length) tya ldx #<FileNameCache ldy #>FileNameCache jsr $ffbd ; call SETNAM ; Device (number). lda #1 ; file number ldx $ba ; last used device number bne @skipDefaultDeviceNumber ldx #8 ; default to device 8 @skipDefaultDeviceNumber: ldy #0 ; 0 means: load to new address jsr $ffba ; call SETLFS ; Load (address). ; TODO: Figure out why the write address needs to be incremented by 2. clc lda ptr2 adc #2 tax lda #0 adc ptr2+1 tay lda #0 ; 0 means: load to memory (not verify) jsr $ffd5 ; call LOAD bcs @error ; if carry set, a load error has happened bcc @endLoadFile @error: ; Accumulator contains BASIC error code ; most likely errors: ; A = $05 (DEVICE NOT PRESENT) ; A = $04 (FILE NOT FOUND) ; A = $1D (LOAD ERROR) ; A = $00 (BREAK, RUN/STOP has been pressed during loading) sta VIC_BG_COLOR0 @endLoadFile: lda #1 ; file number jsr $ffc3 ; call CLOSE sei pla sta LORAM pla sta VIC_IMR cli jmp incsp4
programs/oeis/157/A157442.asm
neoneye/loda
22
177665
<gh_stars>10-100 ; A157442: a(n) = 14641*n^2 - 24684*n + 10405. ; 362,19601,68122,145925,253010,389377,555026,749957,974170,1227665,1510442,1822501,2163842,2534465,2934370,3363557,3822026,4309777,4826810,5373125,5948722,6553601,7187762,7851205,8543930,9265937,10017226,10797797,11607650,12446785,13315202,14212901,15139882,16096145,17081690,18096517,19140626,20214017,21316690,22448645,23609882,24800401,26020202,27269285,28547650,29855297,31192226,32558437,33953930,35378705,36832762,38316101,39828722,41370625,42941810,44542277,46172026,47831057,49519370,51236965,52983842,54760001,56565442,58400165,60264170,62157457,64080026,66031877,68013010,70023425,72063122,74132101,76230362,78357905,80514730,82700837,84916226,87160897,89434850,91738085,94070602,96432401,98823482,101243845,103693490,106172417,108680626,111218117,113784890,116380945,119006282,121660901,124344802,127057985,129800450,132572197,135373226,138203537,141063130,143952005 seq $0,157441 ; a(n) = 1331*n - 1122. add $1,$0 mul $1,$0 div $1,121 add $1,1 mov $0,$1
netcore/src/Koralium.SqlParser.ANTLR/ANTLR/KoraliumParser.g4
rs-swc/Koralium
0
4309
parser grammar KoraliumParser; options { tokenVocab = KoraliumLexer; } parse: (statements_list)* EOF; statements_list: ';'* sql_statement (';'+ sql_statement)* ';'*; sql_statement : set_variable_statement | select_statement ; set_variable_statement: SET variable_reference '=' (b64=BASE64_LITERAL | scalar_expression); select_statement: ( SELECT (DISTINCT)? select_expression (',' select_expression)* // START FROM (FROM from_clause (WHERE where_clause)? (GROUP BY groupby_clause)? (HAVING having_clause)? )? //END FROM (ORDER BY order_by_clause)? (LIMIT limit=scalar_expression)? (OFFSET offset=scalar_expression)? ); order_by_clause: order_by_element (',' order_by_element)*; order_by_element: (scalar=scalar_expression | query=orderby_subquery) order=(ASC | DESC)?; having_clause: boolean_expression; from_clause: table_name (AS? table_alias)? | subquery; table_name: any_name; subquery: '(' select_statement ')' ( AS? table_alias)?; orderby_subquery: '(' select_statement ')'; group_subquery: '(' select_statement ')'; variable_reference : variableName=VARIABLE_ID | identifier=IDENTIFIER ; select_expression : '*' | NULL | tableAlias=table_name '.' '*' | scalar_expression ( AS? column_alias)? ; where_clause: boolean_expression; groupby_clause : groupby_element ( ',' groupby_element)* ; groupby_element : scalar_expression | group_subquery ; boolean_expression : '!' exclamationexpr=boolean_expression | NOT notexpr=boolean_expression | '(' inner=boolean_expression ')' | left=boolean_expression boolean_binary_type right=boolean_expression | scalar_expression | predicate IS NOT isValue=(TRUE | FALSE) | predicate ; predicate : between_expression | boolean_comparison_expression | search_expression | function_call | in_expression | like_expression | is_null_predicate ; is_null_predicate: scalar_expression IS NOT? NULL; search_expression: CONTAINS '(' (wildcard='*' | '(' column_reference (',' column_reference)* ')' | column_reference) ',' scalar_expression ')'; in_expression: element=in_left_scalar NOT? IN '(' scalar_expression (',' scalar_expression)* ')'; like_expression: element=in_left_scalar NOT? LIKE right=scalar_expression; in_left_scalar: scalar_expression; between_expression: ref=scalar_expression BETWEEN left=scalar_expression AND right=scalar_expression; boolean_comparison_expression: ( left=scalar_expression boolean_comparison_type right=scalar_expression ); boolean_comparison_type: ( '=' | '>' | '<' | '>=' | '<=' | '!=' | '<>' | '!<' | '!>' ); boolean_binary_type: ( AND | OR ); column_alias: IDENTIFIER; scalar_expression2: | column_reference | literal_value | left=scalar_expression binary_operation_type right=scalar_expression | function_call | variable_reference ; scalar_expression : CAST '(' casted=scalar_expression AS castedidentifier=IDENTIFIER ')' | '(' inner=scalar_expression ')' | literal_value | column_reference | left=scalar_expression binary_operation_type right=scalar_expression | function_call | variable_reference ; error: ; binary_expression: scalar_expression binary_operation_type scalar_expression; binary_operation_type: '+' | '-' | '*' | '/' | '%' | '&' | '|' | '^' ; lambda_parameter : parameter=IDENTIFIER | '(' parameter=IDENTIFIER ( ',' parameter=IDENTIFIER)* ')' ; lambda_function : parameter=lambda_parameter '->' (scalar=scalar_expression | boolexpr=boolean_expression) ; function_parameter : lambda=lambda_function | scalar=scalar_expression ; function_call : function_name '(' ((function_parameter ( ',' function_parameter)*) | '*')? ')' ; column_reference: column_name ('.' column_name)*; literal_value: NUMERIC_LITERAL | STRING_LITERAL | NULL | TRUE | FALSE; column_name: IDENTIFIER; function_name: IDENTIFIER; table_alias: any_name; any_name: IDENTIFIER | STRING_LITERAL | '(' any_name ')';
grammar/src/main/antlr/dev/ssch/minijava/grammar/MiniJava.g4
stefanschoeberl/MiniJava-Compiler
0
4584
grammar MiniJava; @header { package dev.ssch.minijava.grammar; } // https://docs.oracle.com/javase/specs/jls/se8/html/jls-19.html minijava: (javaclass)*; javaclass: 'class' name=IDENT '{' (fields+=field | methods+=method | constructors+=constructor)* '}'; field: type=typeDefinition name=IDENT ';'; method: (publicmodifier+='public' | nativemodifier+='native' | staticmodifier+='static')* returntype=typeDefinition name=IDENT '(' (parameters+=formalParameter (',' parameters+=formalParameter)*)? ')' (block='{' (statements+=statement)* '}' | semicolon=';'); constructor: name=IDENT '(' (parameters+=formalParameter (',' parameters+=formalParameter)*)? ')' block='{' (statements+=statement)* '}'; formalParameter: type=typeDefinition name=IDENT; statement: completeStatement | incompleteIfStatement ; completeStatement: 'if' '(' condition=expr ')' thenbranch=completeStatement 'else' elsebranch=completeStatement # CompleteIfElseStmt | 'while' '(' condition=expr ')' body=statement # WhileLoopStmt | '{' (statements+=statement)* '}' # BlockStmt | type=typeDefinition name=IDENT '=' expr ';' # VardeclassignStmt | type=typeDefinition name=IDENT ';' # VardeclStmt | left=expr '=' right=expr ';' # VarassignStmt | expr ';' # ExpressionStmt | 'return' value=expr ';' # ReturnStmt ; incompleteIfStatement: 'if' '(' condition=expr ')' thenbranch=statement # IncompleteIfStmt | 'if' '(' condition=expr ')' thenbranch=completeStatement 'else' elsebranch=incompleteIfStatement # IncompleteIfElseStmt ; typeDefinition: IDENT # SimpleType | IDENT '[' ']' # ArrayType; // https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html expr: array=expr '[' index=expr ']' # ArrayAccessExpr | left=expr '.' right=IDENT # MemberExpr | target=expr '(' (parameters+=expr (',' parameters+=expr)*)? ')' # CallExpr | '-' expr # MinusExpr | '(' type=typeDefinition ')' expr # CastExpr | left=expr op=(MUL|DIV) right=expr # MulDivExpr | left=expr op=(ADD|SUB) right=expr # AddSubExpr | left=expr op=(LT|LE|GT|GE) right=expr # RelationalExpr | left=expr op=(EQ|NEQ) right=expr # EqNeqExpr | left=expr op=AND right=expr # AndExpr | left=expr op=OR right=expr # OrExpr | IDENT # IdExpr | INT # IntExpr | FLOAT # FloatExpr | NULL # NullExpr | THIS # ThisExpr | CHAR # CharExpr | STRING # StringExpr | value=(TRUE|FALSE) # BoolExpr | '(' expr ')' # ParensExpr | 'new' type=IDENT '(' (parameters+=expr (',' parameters+=expr)*)? ')' # ClassInstanceCreationExpr | 'new' type=IDENT '[' size=expr ']' # ArrayCreationExpr ; EQ: '=='; NEQ: '!='; LT: '<'; LE: '<='; GT: '>'; GE: '>='; AND: '&&'; OR: '||'; ADD: '+'; SUB: '-'; MUL: '*'; DIV: '/'; TRUE: 'true'; FALSE: 'false'; NULL: 'null'; THIS: 'this'; IDENT: [_a-zA-Z][_a-zA-Z0-9]*; FLOAT: [0-9]+ ('.' [0-9]*)? 'f'; INT: [0-9]+; CHAR: '\'' . '\''; STRING: '"' .*? '"'; WS: [ \t\r\n]+ -> skip; SINGLE_LINE_COMMENT: '//' .*? [\r\n]+ -> skip; MULTI_LINE_COMMENT: '/*' .*? '*/' -> skip;
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1775.asm
ljhsiun2/medusa
9
11690
<filename>Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1775.asm .global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x6d5, %rsi lea addresses_A_ht+0x10ed5, %rdi clflush (%rsi) nop nop nop add $835, %r15 mov $78, %rcx rep movsq nop nop nop nop xor %rsi, %rsi lea addresses_UC_ht+0x1ea95, %rsi lea addresses_normal_ht+0x62b1, %rdi nop nop add $11262, %rdx mov $89, %rcx rep movsb nop nop nop cmp $18422, %rsi lea addresses_D_ht+0x1e4d5, %r15 nop add %rcx, %rcx movups (%r15), %xmm2 vpextrq $0, %xmm2, %rdi sub %rdx, %rdx lea addresses_A_ht+0x126b5, %r13 nop mfence mov (%r13), %rdx nop nop xor $27441, %r8 lea addresses_normal_ht+0x10ed5, %rdx nop and $38351, %r15 movw $0x6162, (%rdx) nop nop nop nop add %r13, %r13 lea addresses_WT_ht+0x1b1b5, %r8 nop nop nop nop nop sub %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm3 vmovups %ymm3, (%r8) nop add $44360, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rax push %rbp push %rdi push %rdx push %rsi // Store mov $0x5df, %rbp nop xor $56237, %r15 mov $0x5152535455565758, %rdx movq %rdx, %xmm7 movups %xmm7, (%rbp) add %r15, %r15 // Load lea addresses_UC+0x1dcd5, %r15 xor %rax, %rax mov (%r15), %r10w nop nop sub %rsi, %rsi // Load mov $0x30ba60000000cd5, %r10 nop nop nop nop nop inc %rbp mov (%r10), %dx nop nop nop nop nop sub %rbp, %rbp // Faulty Load lea addresses_WC+0x16cd5, %rdi nop nop nop xor $58664, %rax mov (%rdi), %edx lea oracles, %rsi and $0xff, %rdx shlq $12, %rdx mov (%rsi,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rbp pop %rax pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
libsrc/math/daimath32/c/asm/___dai32_xsqrt.asm
ahjelm/z88dk
640
177875
SECTION code_fp_dai32 PUBLIC ___dai32_xsqrt EXTERN xsqrt defc ___dai32_xsqrt = xsqrt
lib/Quaternions.agda
UlrikBuchholtz/HoTT-Agda
0
10679
<reponame>UlrikBuchholtz/HoTT-Agda {-# OPTIONS --without-K #-} open import HoTT module lib.Quaternions where data Sign : Type₀ where plus : Sign minus : Sign opposite : Sign → Sign opposite plus = minus opposite minus = plus _·_ : Sign → Sign → Sign plus · x = x minus · x = opposite x ·unitr : (x : Sign) → x · plus == x ·unitr plus = idp ·unitr minus = idp ·assoc : (x y z : Sign) → (x · y) · z == x · (y · z) ·assoc plus y z = idp ·assoc minus plus z = idp ·assoc minus minus plus = idp ·assoc minus minus minus = idp ·cohl : {x y : Sign} → x == y → (z : Sign) → x · z == y · z ·cohl idp z = idp ·cohr : (x : Sign) → {y z : Sign} → y == z → x · y == x · z ·cohr x idp = idp ·comm : (x y : Sign) → x · y == y · x ·comm plus plus = idp ·comm plus minus = idp ·comm minus plus = idp ·comm minus minus = idp data Dir : Type₀ where i : Dir j : Dir k : Dir shift : Dir → Dir shift i = j shift j = k shift k = i data QU : Type₀ where one : QU dir : Dir → QU Q : Type₀ Q = Σ Sign λ _ → QU multWithSign : Dir → Dir → Q multWithSign i i = minus , one multWithSign i j = plus , dir k multWithSign i k = minus , dir j multWithSign j i = minus , dir k multWithSign j j = minus , one multWithSign j k = plus , dir i multWithSign k i = plus , dir j multWithSign k j = minus , dir i multWithSign k k = minus , one _⊙_ : Q → Q → Q (s , one) ⊙ (t , u) = s · t , u (s , dir d) ⊙ (t , one) = s · t , dir d (s , dir d) ⊙ (t , dir e) with multWithSign d e ... | (x , u) = (s · t) · x , u inv : Q → Q inv (x , one) = x , one inv (x , dir d) = opposite x , dir d unitl : (a : Q) → (plus , one) ⊙ a == a unitl (x , u) = idp unitr : (a : Q) → a ⊙ (plus , one) == a unitr (x , one) = pair×= (·unitr x) idp unitr (x , dir d) = pair×= (·unitr x) idp assoc : (a b c : Q) → (a ⊙ b) ⊙ c == a ⊙ (b ⊙ c) assoc (x , one) (y , one) (z , w) = pair×= (·assoc x y z) idp assoc (x , one) (y , dir d) (z , one) = pair×= (·assoc x y z) idp assoc (x , one) (y , dir d) (z , dir e) with multWithSign d e ... | (w , u) = pair×= lemma idp where lemma : ((x · y) · z) · w == x · ((y · z) · w) lemma = ((x · y) · z) · w =⟨ ·assoc (x · y) z w ⟩ (x · y) · (z · w) =⟨ ·assoc x y (z · w) ⟩ x · (y · (z · w)) =⟨ ·cohr x (! (·assoc y z w)) ⟩ x · ((y · z) · w) ∎ assoc (x , dir d) (y , one) (z , one) = pair×= (·assoc x y z) idp assoc (x , dir d) (y , one) (z , dir f) with multWithSign d f ... | (w , u) = pair×= lemma idp where lemma : ((x · y) · z) · w == (x · (y · z)) · w lemma = ((x · y) · z) · w =⟨ ·cohl (·assoc x y z) w ⟩ (x · (y · z)) · w ∎ assoc (x , dir d) (y , dir e) (z , one) with multWithSign d e assoc (x , dir d) (y , dir e) (z , one) | (w , one) = pair×= lemma idp where lemma : ((x · y) · w) · z == (x · (y · z)) · w lemma = ((x · y) · w) · z =⟨ ·assoc (x · y) w z ⟩ (x · y) · (w · z) =⟨ ·cohr (x · y) (·comm w z) ⟩ (x · y) · (z · w) =⟨ ! (·assoc (x · y) z w) ⟩ ((x · y) · z) · w =⟨ ·cohl (·assoc x y z) w ⟩ (x · (y · z)) · w ∎ assoc (x , dir d) (y , dir e) (z , one) | (w , dir g) = pair×= lemma idp where lemma : ((x · y) · w) · z == (x · (y · z)) · w lemma = ((x · y) · w) · z =⟨ ·assoc (x · y) w z ⟩ (x · y) · (w · z) =⟨ ·cohr (x · y) (·comm w z) ⟩ (x · y) · (z · w) =⟨ ! (·assoc (x · y) z w) ⟩ ((x · y) · z) · w =⟨ ·cohl (·assoc x y z) w ⟩ (x · (y · z)) · w ∎ assoc (x , dir d) (y , dir e) (z , dir f) with multWithSign d e | multWithSign e f assoc (x , dir d) (y , dir e) (z , dir f) | a , one | b , v = {!!} assoc (x₁ , dir d) (y , dir e) (z , dir f) | a , dir x | b , v = {!!}
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/llround.asm
jpoikela/z88dk
640
20421
SECTION code_clib SECTION code_fp_math48 PUBLIC llround EXTERN cm48_sccz80_llround defc llround = cm48_sccz80_llround
src/xpf_core/windows/kpcr64.asm
assqingt/NoirVisor
1
1104
; NoirVisor - Hardware-Accelerated Hypervisor solution ; ; Copyright 2018-2019, <NAME>. All rights reserved. ; ; This file saves processor states for 64-bit processors. ; ; This program is distributed in the hope that it will be successful, but ; without any warranty (no matter implied warranty of merchantability or ; fitness for a particular purpose, etc.). ; ; File location: ./xpf_core/windows/kpcr64.asm .code noir_get_segment_attributes proc and rdx,0fffffffffffffff8h add rcx,rdx mov ax,word ptr[rcx+5] and ax,0f0ffh ret noir_get_segment_attributes endp noir_save_processor_state proc ; Function start. Initialize shadow space on stack. sub rsp,20h push rbx mov rbx,rcx ; Initialize the Structure with zero. push rdi cld mov rdi,rcx mov rcx,2ch xor rax,rax rep stosq pop rdi ; Save cs,ds,es,fs,gs,ss Selectors mov word ptr[rbx],cs mov word ptr[rbx+10h],ds mov word ptr[rbx+20h],es mov word ptr[rbx+30h],fs mov word ptr[rbx+40h],gs mov word ptr[rbx+50h],ss ; Save cs,ds,es,fs,gs,ss Limits lsl eax,word ptr[rbx] mov dword ptr[rbx+04h],eax lsl eax,word ptr[rbx+10h] mov dword ptr[rbx+14h],eax lsl eax,word ptr[rbx+20h] mov dword ptr[rbx+24h],eax lsl eax,word ptr[rbx+30h] mov dword ptr[rbx+34h],eax lsl eax,word ptr[rbx+40h] mov dword ptr[rbx+44h],eax lsl eax,word ptr[rbx+50h] mov dword ptr[rbx+54h],eax ; Save Task Register State str word ptr[rbx+60h] lsl eax,word ptr[rbx+60h] mov dword ptr[rbx+64h],eax mov rax,qword ptr gs:[8h] mov qword ptr[rbx+68h],rax ; Save Global Descriptor Table Register sgdt fword ptr[rbx+76h] shr dword ptr[rbx+74h],16 ; Save Interrupt Descriptor Table Register sidt fword ptr[rbx+86h] shr dword ptr[rbx+84h],16 ; Save Segment Attributes - CS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx] call noir_get_segment_attributes mov word ptr[rbx+2h],ax ; Save Segment Attributes - DS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+10h] call noir_get_segment_attributes mov word ptr[rbx+12h],ax ; Save Segment Attributes - ES mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+20h] call noir_get_segment_attributes mov word ptr[rbx+22h],ax ; Save Segment Attributes - FS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+30h] call noir_get_segment_attributes mov word ptr[rbx+32h],ax ; Save Segment Attributes - GS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+40h] call noir_get_segment_attributes mov word ptr[rbx+42h],ax ; Save Segment Attributes - SS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+50h] call noir_get_segment_attributes mov word ptr[rbx+52h],ax ; Save Segment Attributes - TR mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+60h] call noir_get_segment_attributes mov word ptr[rbx+62h],ax ; Save LDT Register Selector sldt word ptr[rbx+90h] ; Save Control Registers mov rax,cr0 mov qword ptr[rbx+0a0h],rax mov rax,cr2 mov qword ptr[rbx+0a8h],rax mov rax,cr3 mov qword ptr[rbx+0b0h],rax mov rax,cr4 mov qword ptr[rbx+0b8h],rax mov rax,cr8 mov qword ptr[rbx+0c0h],rax ; Save Debug Registers mov rax,dr0 mov qword ptr[rbx+0c8h],rax mov rax,dr1 mov qword ptr[rbx+0d0h],rax mov rax,dr2 mov qword ptr[rbx+0d8h],rax mov rax,dr3 mov qword ptr[rbx+0e0h],rax mov rax,dr6 mov qword ptr[rbx+0e8h],rax mov rax,dr7 mov qword ptr[rbx+0f0h],rax ; Save Model Specific Registers ; Save SysEnter_CS mov ecx,174h rdmsr mov dword ptr[rbx+0f8h],eax mov dword ptr[rbx+0fch],edx ; Save SysEnter_ESP inc ecx rdmsr mov dword ptr[rbx+100h],eax mov dword ptr[rbx+104h],edx ; Save SysEnter_EIP inc ecx rdmsr mov dword ptr[rbx+108h],eax mov dword ptr[rbx+10ch],edx ; Save Debug Control MSR mov ecx,1d9h rdmsr mov dword ptr[rbx+110h],eax mov dword ptr[rbx+114h],edx ; Save PAT mov ecx,277h rdmsr mov dword ptr[rbx+118h],eax mov dword ptr[rbx+11ch],edx ; Save EFER mov ecx,0c0000080h rdmsr mov dword ptr[rbx+120h],eax mov dword ptr[rbx+124h],edx ; Save STAR inc ecx rdmsr mov dword ptr[rbx+128h],eax mov dword ptr[rbx+12ch],edx ; Save LSTAR inc ecx rdmsr mov dword ptr[rbx+130h],eax mov dword ptr[rbx+134h],edx ; Save CSTAR inc ecx rdmsr mov dword ptr[rbx+138h],eax mov dword ptr[rbx+13ch],edx ; Save SFMASK inc ecx rdmsr mov dword ptr[rbx+144h],edx mov dword ptr[rbx+140h],eax ; Save FS Base mov ecx,0c0000100h rdmsr shl rdx,32 or rdx,rax mov qword ptr[rbx+148h],rdx ; Save to MSR-State Area mov qword ptr[rbx+38h],rdx ; Save to Segment State Area ; Save GS Base inc ecx rdmsr shl rdx,32 or rdx,rax mov qword ptr[rbx+150h],rdx ; Save to MSR-State Area mov qword ptr[rbx+48h],rdx ; Save to Segment State Area ; Save GS Swap inc ecx rdmsr mov dword ptr[rbx+158h],eax mov dword ptr[rbx+15ch],edx ; MSR Saving is Over pop rbx ; Function end. Finalize shadow space on stack. add rsp,20h ret noir_save_processor_state endp end
Menu.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
0
103533
.model small .stack 120h .data MenuC1 DB 06d ;blue MenuC2 byte 15d ;yellow MenuC3 byte 04d ;red MenuC4 byte 02d ;green playerName db 127 DUP("$") promptName db "Enter your Name : ",'$' .code main proc mov AX, @data mov DS, AX mov AX, 0 mov ah, 0 mov al, 13H int 10h mov CX, 160d mov DX, 100d push CX mov ah, 0ch ;row 1 mov al,MenuC1 ;S int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC2 ;U int 10h inc CX int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,MenuC3 ;P int 10h add CX,5 mov al,MenuC4 ;E int 10h inc CX int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,MenuC2 ;R int 10h add CX,3 int 10h ;row 2 pop CX push CX dec DX add CX,3 mov al,MenuC1 ;S int 10h add CX,2 mov al,MenuC2 ;U int 10h inc CX add CX,2 int 10h add CX,2 mov al,MenuC3 ;P int 10h add CX,5 mov al,MenuC4 ;E int 10h add CX,5 mov al,MenuC2 ;R int 10h add CX,2 int 10h ;row 3 pop CX push CX dec DX add CX,1 mov al,MenuC1 ;S int 10h inc CX int 10h add CX,3 mov al,MenuC2 ;U int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;P int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC4 ;E int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC2 ;R int 10h inc CX int 10h inc CX int 10h ;ROW 4 pop CX push CX dec DX mov al,MenuC1 ;S int 10h add CX,5 mov al,MenuC2 ;U int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;P int 10h add CX,3 int 10h add CX,2 mov al,MenuC4 ;E int 10h add CX,5 mov al,MenuC2 ;R int 10h add CX,3 int 10h ;ROW 5 pop CX push CX dec DX inc CX mov al,MenuC1 ;S int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,MenuC2 ;U int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;P int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC4 ;E int 10h inc CX int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,MenuC2 ;R int 10h inc CX int 10h inc CX int 10h ;For Mario pop CX push CX add DX,11 mov al,MenuC1 ;M int 10h add CX,4 int 10h add CX,2 mov al,MenuC2 ;A int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;R int 10h add CX,3 int 10h add CX,2 mov al,MenuC4 ;I int 10h add CX,3 mov al,MenuC2 ;O int 10h inc CX int 10h inc CX int 10h ;row 2 pop CX push CX dec DX mov al,MenuC1 ;M int 10h add CX,4 int 10h add CX,2 mov al,MenuC2 ;A int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;R int 10h add CX,2 int 10h add CX,3 mov al,MenuC4 ;I int 10h add CX,2 mov al,MenuC2 ;O int 10h add CX,4 int 10h ;row 3 pop CX push CX dec DX mov al,MenuC1 ;M int 10h add CX,2 int 10h add CX,2 int 10h add CX,2 mov al,MenuC2 ;A int 10h inc CX int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,MenuC3 ;R int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC4 ;I int 10h add CX,2 mov al,MenuC2 ;O int 10h add CX,4 int 10h ;row 4 pop CX push CX dec DX mov al,MenuC1 ;M int 10h inc CX int 10h add CX,2 int 10h inc CX int 10h add CX,2 mov al,MenuC2 ;A int 10h add CX,3 int 10h add CX,2 mov al,MenuC3 ;R int 10h add CX,3 int 10h mov al,MenuC4 ;I add CX,2 int 10h add CX,2 mov al,MenuC2 ;O int 10h add CX,4 int 10h ;ROW 5 pop CX push CX dec DX mov al,MenuC1 ;M int 10h add CX,4 int 10h add CX,3 mov al,MenuC2 ;A int 10h inc CX int 10h add CX,3 mov al,MenuC3 ;R int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,MenuC4 ;I int 10h add CX,3 mov al,MenuC2 ;O int 10h inc CX int 10h inc CX int 10h ;INPUT ;cursor position MOV AH,02H MOV BH,0 MOV DH,20 MOV DL,0 INT 10H ;Display Input String mov ah,09 mov dx, offset promptName int 21h ;input mov dx, OFFSET playerName mov ah, 3Fh INT 21h Exit: mov ah, 04ch int 21h main endp end
programs/oeis/074/A074816.asm
neoneye/loda
22
174532
; A074816: a(n) = 3^A001221(n) = 3^omega(n). ; 1,3,3,3,3,9,3,3,3,9,3,9,3,9,9,3,3,9,3,9,9,9,3,9,3,9,3,9,3,27,3,3,9,9,9,9,3,9,9,9,3,27,3,9,9,9,3,9,3,9,9,9,3,9,9,9,9,9,3,27,3,9,9,3,9,27,3,9,9,27,3,9,3,9,9,9,9,27,3,9,3,9,3,27,9,9,9,9,3,27,9,9,9,9,9,9,3,9,9,9 seq $0,1221 ; Number of distinct primes dividing n (also called omega(n)). mov $1,3 pow $1,$0 mov $0,$1
generated/natools-static_maps-web-list_templates.ads
faelys/natools-web
1
21858
<reponame>faelys/natools-web -- Generated at 2015-08-01 13:43:50 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-list_templates-maps.sx package Natools.Static_Maps.Web.List_Templates is pragma Pure; type Command is (Unknown_Command, Backward, Ellipses_Are_Items, Ellipses_Are_Not_Items, Ellipsis_Prefix, Ellipsis_Suffix, Forward, If_Empty, Length_Limit, Prefix, Separator, Show_Beginning, Show_Ending, Suffix, Template); function To_Command (Key : String) return Command; private Map_1_Key_0 : aliased constant String := "backward"; Map_1_Key_1 : aliased constant String := "backwards"; Map_1_Key_2 : aliased constant String := "reverse"; Map_1_Key_3 : aliased constant String := "ellipses-are-items"; Map_1_Key_4 : aliased constant String := "item-ellipses"; Map_1_Key_5 : aliased constant String := "ellipses-are-not-items"; Map_1_Key_6 : aliased constant String := "external-ellipses"; Map_1_Key_7 : aliased constant String := "ellipsis-prefix"; Map_1_Key_8 : aliased constant String := "ellipsis-suffix"; Map_1_Key_9 : aliased constant String := "ellipsis"; Map_1_Key_10 : aliased constant String := "forward"; Map_1_Key_11 : aliased constant String := "forwards"; Map_1_Key_12 : aliased constant String := "if-empty"; Map_1_Key_13 : aliased constant String := "length-limit"; Map_1_Key_14 : aliased constant String := "limit"; Map_1_Key_15 : aliased constant String := "max"; Map_1_Key_16 : aliased constant String := "maximum"; Map_1_Key_17 : aliased constant String := "prefix"; Map_1_Key_18 : aliased constant String := "separator"; Map_1_Key_19 : aliased constant String := "show-beginning"; Map_1_Key_20 : aliased constant String := "beginning"; Map_1_Key_21 : aliased constant String := "show-firsts"; Map_1_Key_22 : aliased constant String := "show-ending"; Map_1_Key_23 : aliased constant String := "ending"; Map_1_Key_24 : aliased constant String := "show-lasts"; Map_1_Key_25 : aliased constant String := "suffix"; Map_1_Key_26 : aliased constant String := "template"; Map_1_Key_27 : aliased constant String := "render"; Map_1_Keys : constant array (0 .. 27) of access constant String := (Map_1_Key_0'Access, Map_1_Key_1'Access, Map_1_Key_2'Access, Map_1_Key_3'Access, Map_1_Key_4'Access, Map_1_Key_5'Access, Map_1_Key_6'Access, Map_1_Key_7'Access, Map_1_Key_8'Access, Map_1_Key_9'Access, Map_1_Key_10'Access, Map_1_Key_11'Access, Map_1_Key_12'Access, Map_1_Key_13'Access, Map_1_Key_14'Access, Map_1_Key_15'Access, Map_1_Key_16'Access, Map_1_Key_17'Access, Map_1_Key_18'Access, Map_1_Key_19'Access, Map_1_Key_20'Access, Map_1_Key_21'Access, Map_1_Key_22'Access, Map_1_Key_23'Access, Map_1_Key_24'Access, Map_1_Key_25'Access, Map_1_Key_26'Access, Map_1_Key_27'Access); Map_1_Elements : constant array (0 .. 27) of Command := (Backward, Backward, Backward, Ellipses_Are_Items, Ellipses_Are_Items, Ellipses_Are_Not_Items, Ellipses_Are_Not_Items, Ellipsis_Prefix, Ellipsis_Suffix, Ellipsis_Suffix, Forward, Forward, If_Empty, Length_Limit, Length_Limit, Length_Limit, Length_Limit, Prefix, Separator, Show_Beginning, Show_Beginning, Show_Beginning, Show_Ending, Show_Ending, Show_Ending, Suffix, Template, Template); end Natools.Static_Maps.Web.List_Templates;
data/maps/objects/Colosseum.asm
opiter09/ASM-Machina
1
241154
Colosseum_Object: db $e ; border block def_warps def_signs def_objects object SPRITE_RED, 2, 2, STAY, 0, 1 ; person def_warps_to COLOSSEUM
programs/oeis/314/A314674.asm
jmorken/loda
1
25535
<filename>programs/oeis/314/A314674.asm<gh_stars>1-10 ; A314674: Coordination sequence Gal.4.58.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,9,13,17,21,25,30,35,39,43,47,51,55,60,65,69,73,77,81,85,90,95,99,103,107,111,115,120,125,129,133,137,141,145,150,155,159,163,167,171,175,180,185,189,193,197,201,205,210 mov $4,$0 trn $0,4 add $0,4 lpb $0 trn $0,6 sub $2,$2 add $2,$0 sub $0,1 add $3,2 add $2,$3 lpe mov $1,$2 lpb $4 add $1,4 sub $4,1 lpe sub $1,1
libsrc/_DEVELOPMENT/arch/zx/esxdos/c/sdcc_ix/esxdos_f_opendir_p3_fastcall.asm
jpoikela/z88dk
640
179373
<reponame>jpoikela/z88dk ; uchar esxdos_f_opendir_p3(char *path) INCLUDE "config_private.inc" SECTION code_clib SECTION code_esxdos PUBLIC _esxdos_f_opendir_p3_fastcall EXTERN asm_esxdos_f_opendir _esxdos_f_opendir_p3_fastcall: ld a,__ESXDOS_DRIVE_CURRENT ld b,__ESXDOS_MODE_USE_HEADER push ix push iy call asm_esxdos_f_opendir pop iy pop ix ret
SymbolsGenerator/Sources/SymbolsGenerator/Resources/as_is_symbols_generator.applescript
coda1997/SFSafeSymbols
1
3413
<reponame>coda1997/SFSafeSymbols<filename>SymbolsGenerator/Sources/SymbolsGenerator/Resources/as_is_symbols_generator.applescript activate application "SF Symbols" tell application "System Events" tell process "SF Symbols" -- Click the "list" radio button. click radio button 2 of radio group 1 of group 3 of toolbar 1 of window 0 tell outline 1 of scroll area 1 of splitter group 1 of window 0 -- Change for each category name. (it will be very slow if we loop on "All") select (row 1 where value of static text 1 of UI element 1 starts with "Multicolor") end tell set myResult to "" set rowCounter to (1 as integer) repeat with tableRow in rows of table 0 of scroll area 2 of splitter group 1 of window 0 log rowCounter set sfSymbolName to value of static text 1 of UI element 2 of tableRow as string log sfSymbolName set btnCount to (0 as integer) repeat with btn in buttons of UI element 2 of tableRow set btnCount to btnCount + (1 as integer) end repeat if btnCount > 0 then select tableRow set allViewsInRightPane to entire contents of scroll area 3 of splitter group 1 of window 0 as list set textIndex to (count allViewsInRightPane) - 1 as integer set thisText to item textIndex of allViewsInRightPane set reasonText to value of thisText as string set myResult to myResult & "\"" & sfSymbolName & "\" = \"" & reasonText & "\"; " end if set rowCounter to rowCounter + (1 as integer) end repeat log myResult set the clipboard to {text:(myResult as string), Unicode text:myResult} end tell end tell
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_16.asm
ljhsiun2/medusa
9
91857
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x12c06, %rax nop add %rdi, %rdi mov $0x6162636465666768, %rbp movq %rbp, %xmm0 and $0xffffffffffffffc0, %rax vmovntdq %ymm0, (%rax) nop nop nop nop dec %r11 lea addresses_D_ht+0x88e6, %rdi nop nop and $48278, %rcx movw $0x6162, (%rdi) nop nop nop nop nop dec %rcx lea addresses_A_ht+0xace6, %rsi lea addresses_UC_ht+0x1b6e6, %rdi nop nop nop nop nop xor $54482, %rax mov $24, %rcx rep movsb nop nop xor %rbp, %rbp lea addresses_D_ht+0xe026, %rsi clflush (%rsi) nop nop xor $17416, %rax mov $0x6162636465666768, %rdi movq %rdi, (%rsi) xor $26534, %rsi lea addresses_A_ht+0x180e6, %rcx nop nop nop xor $34928, %rsi movb $0x61, (%rcx) nop nop nop xor $62391, %rsi lea addresses_A_ht+0x450e, %r11 nop xor %rbx, %rbx mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%r11) nop nop nop nop sub $26816, %rdi lea addresses_D_ht+0x90e6, %rbp nop nop nop and %rcx, %rcx mov (%rbp), %edi nop nop nop nop nop add $46358, %rcx lea addresses_A_ht+0xcb26, %rax nop nop and $21088, %r11 mov $0x6162636465666768, %rbx movq %rbx, (%rax) nop nop inc %rsi lea addresses_WT_ht+0x160e6, %rbx nop add $37572, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm4 and $0xffffffffffffffc0, %rbx movntdq %xmm4, (%rbx) nop nop nop nop nop and $40598, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r11 ret .global s_faulty_load s_faulty_load: push %r9 push %rax push %rbp push %rbx push %rdi push %rdx // Store lea addresses_WC+0x190c6, %rdi clflush (%rdi) nop nop nop nop nop dec %r9 movl $0x51525354, (%rdi) nop xor %rax, %rax // Load lea addresses_WC+0x1371e, %rbx nop nop nop dec %rbp mov (%rbx), %r9w nop nop dec %r9 // Store lea addresses_RW+0x196e6, %rbx nop nop add $63086, %rax mov $0x5152535455565758, %r9 movq %r9, %xmm0 movups %xmm0, (%rbx) nop nop nop sub %r9, %r9 // Store lea addresses_PSE+0x19ce6, %rax nop inc %rbp mov $0x5152535455565758, %rdi movq %rdi, (%rax) nop nop nop nop and %rbx, %rbx // Faulty Load lea addresses_UC+0x188e6, %rax nop nop nop add $9109, %rdx mov (%rax), %bp lea oracles, %rdx and $0xff, %rbp shlq $12, %rbp mov (%rdx,%rbp,1), %rbp pop %rdx pop %rdi pop %rbx pop %rbp pop %rax pop %r9 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_A_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
agda-stdlib-0.9/src/Data/Product/N-ary.agda
qwe2/try-agda
1
8160
<reponame>qwe2/try-agda ------------------------------------------------------------------------ -- The Agda standard library -- -- N-ary products ------------------------------------------------------------------------ -- Vectors (as in Data.Vec) also represent n-ary products, so what is -- the point of this module? The n-ary products below are intended to -- be used with a fixed n, in which case the nil constructor can be -- avoided: pairs are represented as pairs (x , y), not as triples -- (x , y , unit). module Data.Product.N-ary where open import Data.Nat open import Data.Product open import Data.Unit open import Data.Vec open import Function.Inverse open import Level using (Lift; lift) open import Relation.Binary.PropositionalEquality as P using (_≡_) -- N-ary product. infix 8 _^_ _^_ : ∀ {ℓ} → Set ℓ → ℕ → Set ℓ A ^ 0 = Lift ⊤ A ^ 1 = A A ^ suc (suc n) = A × A ^ suc n -- Conversions. ↔Vec : ∀ {a} {A : Set a} n → A ^ n ↔ Vec A n ↔Vec n = record { to = P.→-to-⟶ (toVec n) ; from = P.→-to-⟶ fromVec ; inverse-of = record { left-inverse-of = fromVec∘toVec n ; right-inverse-of = toVec∘fromVec } } where toVec : ∀ {a} {A : Set a} n → A ^ n → Vec A n toVec 0 (lift tt) = [] toVec 1 x = [ x ] toVec (suc (suc n)) (x , xs) = x ∷ toVec _ xs fromVec : ∀ {a} {A : Set a} {n} → Vec A n → A ^ n fromVec [] = lift tt fromVec (x ∷ []) = x fromVec (x ∷ y ∷ xs) = (x , fromVec (y ∷ xs)) fromVec∘toVec : ∀ {a} {A : Set a} n (xs : A ^ n) → fromVec (toVec n xs) ≡ xs fromVec∘toVec 0 (lift tt) = P.refl fromVec∘toVec 1 x = P.refl fromVec∘toVec 2 (x , y) = P.refl fromVec∘toVec (suc (suc (suc n))) (x , y , xs) = P.cong (_,_ x) (fromVec∘toVec (suc (suc n)) (y , xs)) toVec∘fromVec : ∀ {a} {A : Set a} {n} (xs : Vec A n) → toVec n (fromVec xs) ≡ xs toVec∘fromVec [] = P.refl toVec∘fromVec (x ∷ []) = P.refl toVec∘fromVec (x ∷ y ∷ xs) = P.cong (_∷_ x) (toVec∘fromVec (y ∷ xs))
examples/outdated-and-incorrect/Alonzo/TestNat.agda
shlevy/agda
1,989
16020
module TestNat where import PreludeNatType import AlonzoPrelude import PreludeNat import PreludeString import PreludeShow import RTP import PreludeList open AlonzoPrelude open PreludeShow open PreludeNatType open PreludeString open PreludeNat open PreludeList hiding(_++_) one = suc zero two = suc one lines : (List String) -> String lines [] = "" lines (l :: []) = l lines (l :: ls) = l ++ "\n" ++ (lines ls) mainS = (id ○ lines) ((showNat 42) :: (showBool (2007 == 2007)) :: [])
Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript
bubudrc/NetNewsWire
3,016
857
<gh_stars>1000+ property uparrowKeyCode : 126 property downarrowKeyCode : 125 property rightarrowKeyCode : 124 property leftarrowKeyCode : 123 to activateNetNewsWire() tell application "NetNewsWire" activate end tell end activateNetNewsWire to multipleKeyCodes(keycode, numberOfKeys) tell application "System Events" tell process "NetNewsWire" repeat numberOfKeys times key code keycode end repeat end tell end tell end multipleKeyCodes to establishMainWindowStartingState() activateNetNewsWire() multipleKeyCodes(downarrowKeyCode, 2) multipleKeyCodes(rightarrowKeyCode, 2) multipleKeyCodes(leftarrowKeyCode, 2) multipleKeyCodes(uparrowKeyCode, 50) end establishMainWindowStartingState try establishMainWindowStartingState() -- hit the down arrow a few times to get into the feeds on error message return {test_result:false, script_result:message} end try return {test_result:true, script_result:"established starting state"}
oeis/130/A130818.asm
neoneye/loda-programs
22
88362
; A130818: Decimal expansion of number whose Engel expansion is the sequence of squares, that is, 1, 4, 9, 16,... ; 1,2,7,9,5,8,5,3,0,2,3,3,6,0,6,7,2,6,7,4,3,7,2,0,4,4,4,0,8,1,1,5,3,3,3,5,3,2,8,5,8,4,1,1,0,2,7,8,5,4,5,9,0,5,4,0,7,0,8,3,9,7,5,1,6,6,4,3,0,5,3,4,3,2,3,2,6,7,6,3,4,2,7,2,9,5,1,7,0,8,8,5,5,6,4,8,5,8,9,8 mov $2,2 mov $3,$0 mul $3,5 lpb $3 mul $2,$3 add $1,$2 mov $5,$0 div $5,3 max $5,1 div $1,$5 div $2,$5 sub $3,1 mov $4,$3 cmp $4,0 add $3,$4 div $1,$3 lpe mov $6,10 pow $6,$0 div $2,$6 div $1,$2 add $1,$6 mod $1,10 mov $0,$1
Categories/Category/Construction/Graphs.agda
Taneb/agda-categories
0
7733
<filename>Categories/Category/Construction/Graphs.agda {-# OPTIONS --without-K --safe #-} module Categories.Category.Construction.Graphs where -- The "Underlying Graph" <-> "Free Category on a Graph" Adjunction. -- Lots of surprises here, of various level of surprisingness -- 1. The Free Category rises universe levels of arrows (and equivalences); the Underlying Graph does not -- (due to the Transitive Closure "Star" construction) -- 2. As a consequence of (1), the eventual Adjunction will be for all Levels being the same -- 3. If you want a Functor Categories Graph, then the object/hom levels are straightforward, -- but if you use "Categories" with NaturalIsomorphism, then the 2-point Groupoid is contractible -- (thus equivalent to the 1-point Category), and yet those two Graphs shouldn't be considered to -- be the same! So _≡F_ must be used so that we have no wiggle room when mapping Graphs around. -- Interestingly, this only shows up when trying to prove that the Underlying Functor respects -- _≈_, which is not traditionally a requirement of a Functor! This requirement is usually left -- implicit. If we were to allow Functor to not respect _≈_, things would be fine. But of course -- we couldn't do any reasonable equational reasoning anymore. Of course, if _≈_ were the global -- _≡_, this isn't an issue, but that is definitely not wanted here. -- 4. A lot of weird little lemmas about _≡_ and subst/transport are needed, because we're in a mixed -- reasoning situation with both ≡ and ≈ present. These could probably be generalized and factored -- into a separate module (or into the standard library). open import Level open import Function using (_$_; flip) renaming (id to idFun; _∘_ to _⊚_) open import Relation.Binary hiding (_⇒_) open import Relation.Binary.PropositionalEquality as ≡ using (_≡_) import Relation.Binary.EqReasoning as EqR open import Relation.Binary.Construct.Closure.ReflexiveTransitive open import Relation.Binary.Construct.Closure.ReflexiveTransitive.Properties hiding (trans) open import Data.Product using (proj₁; proj₂; _,_) open import Categories.Category open import Categories.Functor using (Functor) open import Categories.Functor.Equivalence open import Categories.Category.Instance.StrictCats open import Categories.Utils.EqReasoning open import Categories.NaturalTransformation hiding (id) open import Categories.NaturalTransformation.NaturalIsomorphism hiding (refl; sym; trans; isEquivalence) open import Categories.Adjoint import Categories.Morphism.HeterogeneousIdentity as HId -- a graph has vertices Obj and edges _⇒_, where edges form a setoid over _≈_. record Graph o ℓ e : Set (suc (o ⊔ ℓ ⊔ e)) where infix 4 _≈_ _⇒_ field Obj : Set o _⇒_ : Rel Obj ℓ _≈_ : ∀ {A B} → Rel (A ⇒ B) e equiv : ∀ {A B} → IsEquivalence (_≈_ {A} {B}) setoid : {A B : Obj} → Setoid _ _ setoid {A} {B} = record { Carrier = A ⇒ B ; _≈_ = _≈_ ; isEquivalence = equiv } module Equiv {A} {B} = IsEquivalence (equiv {A} {B}) module EdgeReasoning {A B : Obj} = EqR (setoid {A} {B}) private variable o o′ ℓ ℓ′ e e′ : Level -- This doesn't belong here... but will do for now module PathEquiv {o ℓ e : Level} {Obj : Set o} {_⇒_ : Obj → Obj → Set ℓ} (_≈_ : {A B : Obj} → Rel (A ⇒ B) e) (equiv : {A B : Obj} → IsEquivalence ( _≈_ {A} {B})) where private module E {A} {B} = IsEquivalence (equiv {A} {B}) open E renaming (refl to ≈refl; sym to ≈sym; trans to ≈trans) infix 4 _≈*_ data _≈*_ : {A B : Obj} (p q : Star _⇒_ A B) → Set (o ⊔ ℓ ⊔ e) where ε : {A : Obj} → _≈*_ {A} ε ε _◅_ : {A B C : Obj} {x y : A ⇒ B} {p q : Star _⇒_ B C} (x≈y : x ≈ y) (p≈q : p ≈* q) → x ◅ p ≈* y ◅ q refl : {A B : Obj} {p : Star _⇒_ A B} → p ≈* p refl {p = ε} = ε refl {p = x ◅ p} = ≈refl ◅ refl sym : {A B : Obj} {p q : Star _⇒_ A B} → p ≈* q → q ≈* p sym ε = ε sym (x≈y ◅ eq) = ≈sym x≈y ◅ sym eq ≡⇒≈* : {A B : Obj} {p q : Star _⇒_ A B} → p ≡ q → p ≈* q ≡⇒≈* ≡.refl = refl ≡⇒≈ : {A B : Obj} → {p q : A ⇒ B} → p ≡ q → p ≈ q ≡⇒≈ ≡.refl = ≈refl trans : {A B : Obj} {p q r : Star _⇒_ A B} → p ≈* q → q ≈* r → p ≈* r trans ε ε = ε trans (x≈y ◅ ss) (y≈z ◅ tt) = ≈trans x≈y y≈z ◅ trans ss tt isEquivalence : {A B : Obj} → IsEquivalence (λ (p q : Star _⇒_ A B) → p ≈* q) isEquivalence = record { refl = refl ; sym = sym ; trans = trans } setoid : Obj → Obj → Setoid (o ⊔ ℓ) (o ⊔ ℓ ⊔ e) setoid A B = record { _≈_ = _≈*_ ; isEquivalence = isEquivalence {A} {B} } -- convenient to define here -- -- FIXME: this should go into the standard library at -- Relation.Binary.Construct.Closure.ReflexiveTransitive.Properties ◅◅-identityʳ : {A B : Obj} → (f : Star _⇒_ A B) → f ◅◅ ε ≈* f ◅◅-identityʳ ε = ε ◅◅-identityʳ (x ◅ f) = ≈refl ◅ ◅◅-identityʳ f module PathEqualityReasoning {A B} where open EqR (setoid A B) public module _ (G : Graph o ℓ e) where open Graph G private module P = PathEquiv {o} {ℓ} {e} {Obj} {_⇒_} _≈_ equiv open P Free : Category o (o ⊔ ℓ) (o ⊔ ℓ ⊔ e) Free = record { Obj = Obj ; _⇒_ = Star _⇒_ ; _≈_ = _≈*_ ; id = ε ; _∘_ = _▻▻_ ; assoc = λ {_ _ _ _} {f g h} → sym $ ≡⇒≈* $ ◅◅-assoc f g h ; sym-assoc = λ {_ _ _ _} {f g h} → ≡⇒≈* $ ◅◅-assoc f g h ; identityˡ = λ {_ _ f} → ◅◅-identityʳ f ; identityʳ = refl ; identity² = refl ; equiv = isEquivalence ; ∘-resp-≈ = resp } where resp : ∀ {A B C} {f h : Star _⇒_ B C} {g i : Star _⇒_ A B} → f ≈* h → g ≈* i → (f ▻▻ g) ≈* (h ▻▻ i) resp eq ε = eq resp eq (eq₁ ◅ eq₂) = eq₁ ◅ (resp eq eq₂) open P public renaming (_≈*_ to [_]_≈*_) record GraphMorphism (G : Graph o ℓ e) (G′ : Graph o′ ℓ′ e′) : Set (o ⊔ ℓ ⊔ e ⊔ o′ ⊔ ℓ′ ⊔ e′) where private module G = Graph G module G′ = Graph G′ field M₀ : G.Obj → G′.Obj M₁ : ∀ {A B} → A G.⇒ B → M₀ A G′.⇒ M₀ B M-resp-≈ : ∀ {A B} {f g : A G.⇒ B} → f G.≈ g → M₁ f G′.≈ M₁ g idGHom : {G : Graph o ℓ e} → GraphMorphism G G idGHom = record { M₀ = idFun ; M₁ = idFun ; M-resp-≈ = idFun } _∘GM_ : {G₁ G₂ G₃ : Graph o ℓ e} (m₁ : GraphMorphism G₂ G₃) (m₂ : GraphMorphism G₁ G₂) → GraphMorphism G₁ G₃ m₁ ∘GM m₂ = record { M₀ = M₀ m₁ ⊚ M₀ m₂ ; M₁ = M₁ m₁ ⊚ M₁ m₂ ; M-resp-≈ = M-resp-≈ m₁ ⊚ M-resp-≈ m₂ } where open GraphMorphism module Trsp (G : Graph o ℓ e) where open Graph G -- Two shorthands that will be useful for the definition of morphism -- equality: transport the domain or codomain of an edge along an -- equality. infixr 9 _◂_ infixl 9 _▸_ _◂_ : ∀ {A B C} → A ≡ B → B ⇒ C → A ⇒ C p ◂ f = ≡.subst (_⇒ _) (≡.sym p) f _▸_ : ∀ {A B C} → A ⇒ B → B ≡ C → A ⇒ C f ▸ p = ≡.subst (_ ⇒_) p f -- Some simple properties of transports ◂-▸-comm : ∀ {A B C D} (p : A ≡ B) (f : B ⇒ C) (q : C ≡ D) → p ◂ (f ▸ q) ≡ (p ◂ f) ▸ q ◂-▸-comm ≡.refl f ≡.refl = ≡.refl ◂-trans : ∀ {A B C D} (p : A ≡ B) (q : B ≡ C) (f : C ⇒ D) → p ◂ q ◂ f ≡ (≡.trans p q) ◂ f ◂-trans ≡.refl ≡.refl f = ≡.refl ▸-trans : ∀ {A B C D} (f : A ⇒ B) (p : B ≡ C) (q : C ≡ D) → f ▸ p ▸ q ≡ f ▸ ≡.trans p q ▸-trans f ≡.refl ≡.refl = ≡.refl ◂-resp-≈ : ∀ {A B C} (p : A ≡ B) {f g : B ⇒ C} → f ≈ g → p ◂ f ≈ p ◂ g ◂-resp-≈ ≡.refl f≈g = f≈g ▸-resp-≈ : ∀ {A B C} {f g : A ⇒ B} → f ≈ g → (p : B ≡ C) → f ▸ p ≈ g ▸ p ▸-resp-≈ f≈g ≡.refl = f≈g module TrspGM {G : Graph o ℓ e} {H : Graph o′ ℓ′ e′} (m : GraphMorphism G H) where module G = Graph G module H = Graph H open GraphMorphism m open Trsp G open Trsp H using () renaming (_◂_ to _◃_; _▸_ to _▹_) M-resp-▸ : ∀ {A B C} (f : A G.⇒ B) (p : B ≡ C) → M₁ (f ▸ p) ≡ M₁ f ▹ ≡.cong M₀ p M-resp-▸ f ≡.refl = ≡.refl M-resp-◂ : ∀ {A B C} (p : A ≡ B) (f : B G.⇒ C) → M₁ (p ◂ f) ≡ ≡.cong M₀ p ◃ M₁ f M-resp-◂ ≡.refl f = ≡.refl record GraphMorphism≈ {G : Graph o ℓ e} {G′ : Graph o′ ℓ′ e′} (M M′ : GraphMorphism G G′) : Set (o ⊔ ℓ ⊔ e ⊔ o′ ⊔ ℓ′ ⊔ e′) where private module G = Graph G module G′ = Graph G′ module M = GraphMorphism M module M′ = GraphMorphism M′ open Trsp G′ -- Pick a presentation of equivalence for graph morphisms that works -- well with functor equality. field M₀≡ : ∀ {X} → M.M₀ X ≡ M′.M₀ X M₁≡ : ∀ {A B} {f : A G.⇒ B} → M.M₁ f ▸ M₀≡ G′.≈ M₀≡ ◂ M′.M₁ f Graphs : ∀ o ℓ e → Category (suc (o ⊔ ℓ ⊔ e)) (o ⊔ ℓ ⊔ e) (o ⊔ ℓ ⊔ e) Graphs o ℓ e = record { Obj = Graph o ℓ e ; _⇒_ = GraphMorphism ; _≈_ = GraphMorphism≈ ; id = idGHom ; _∘_ = _∘GM_ ; assoc = λ {_ _ _ G} → record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; sym-assoc = λ {_ _ _ G} → record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; identityˡ = λ {_ G} → record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; identityʳ = λ {_ G} → record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; identity² = λ {G} → record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; equiv = λ {_ G} → record { refl = record { M₀≡ = ≡.refl ; M₁≡ = Equiv.refl G } ; sym = λ {i j} eq → record { M₀≡ = ≡.sym (M₀≡ eq) ; M₁≡ = λ {_ _ f} → let open EdgeReasoning G open Trsp G in begin M₁ j f ▸ ≡.sym (M₀≡ eq) ≡˘⟨ ≡.cong (_◂ (M₁ j f ▸ _)) (≡.trans-symˡ (M₀≡ eq)) ⟩ ≡.trans (≡.sym $ M₀≡ eq) (M₀≡ eq) ◂ (M₁ j f ▸ ≡.sym (M₀≡ eq)) ≡˘⟨ ◂-trans (≡.sym $ M₀≡ eq) (M₀≡ eq) _ ⟩ ≡.sym (M₀≡ eq) ◂ M₀≡ eq ◂ (M₁ j f ▸ ≡.sym (M₀≡ eq)) ≡⟨ ≡.cong (≡.sym (M₀≡ eq) ◂_) (◂-▸-comm (M₀≡ eq) (M₁ j f) (≡.sym $ M₀≡ eq)) ⟩ ≡.sym (M₀≡ eq) ◂ ((M₀≡ eq ◂ M₁ j f) ▸ ≡.sym (M₀≡ eq)) ≈˘⟨ ◂-resp-≈ (≡.sym (M₀≡ eq)) (▸-resp-≈ (M₁≡ eq) (≡.sym (M₀≡ eq))) ⟩ ≡.sym (M₀≡ eq) ◂ (M₁ i f ▸ M₀≡ eq ▸ ≡.sym (M₀≡ eq)) ≡⟨ ≡.cong (≡.sym (M₀≡ eq) ◂_) (▸-trans (M₁ i f) (M₀≡ eq) (≡.sym (M₀≡ eq))) ⟩ ≡.sym (M₀≡ eq) ◂ (M₁ i f ▸ ≡.trans (M₀≡ eq) (≡.sym (M₀≡ eq))) ≡⟨ ≡.cong (λ p → ≡.sym (M₀≡ eq) ◂ (M₁ i f ▸ p)) (≡.trans-symʳ (M₀≡ eq)) ⟩ ≡.sym (M₀≡ eq) ◂ M₁ i f ∎ } ; trans = λ {i j k} eq eq′ → record { M₀≡ = ≡.trans (M₀≡ eq) (M₀≡ eq′) ; M₁≡ = λ {_ _ f} → let open EdgeReasoning G open Trsp G in begin M₁ i f ▸ ≡.trans (M₀≡ eq) (M₀≡ eq′) ≡˘⟨ ▸-trans (M₁ i f) (M₀≡ eq) (M₀≡ eq′) ⟩ (M₁ i f ▸ M₀≡ eq) ▸ M₀≡ eq′ ≈⟨ ▸-resp-≈ (M₁≡ eq) (M₀≡ eq′) ⟩ (M₀≡ eq ◂ M₁ j f) ▸ M₀≡ eq′ ≡˘⟨ ◂-▸-comm (M₀≡ eq) (M₁ j f) (M₀≡ eq′) ⟩ M₀≡ eq ◂ (M₁ j f ▸ M₀≡ eq′) ≈⟨ ◂-resp-≈ (M₀≡ eq) (M₁≡ eq′) ⟩ M₀≡ eq ◂ (M₀≡ eq′ ◂ M₁ k f) ≡⟨ ◂-trans (M₀≡ eq) (M₀≡ eq′) (M₁ k f) ⟩ ≡.trans (M₀≡ eq) (M₀≡ eq′) ◂ M₁ k f ∎ } } ; ∘-resp-≈ = λ {_ G H} {f g h i} eq eq′ → record { M₀≡ = ≡.trans (≡.cong (M₀ f) (M₀≡ eq′)) (M₀≡ eq) ; M₁≡ = λ {_ _ j} → let open EdgeReasoning H open Trsp H open Trsp G using () renaming (_▸_ to _▹_; _◂_ to _◃_) open TrspGM in begin M₁ (f ∘GM h) j ▸ ≡.trans (≡.cong (M₀ f) (M₀≡ eq′)) (M₀≡ eq) ≡˘⟨ ▸-trans (M₁ f (M₁ h j)) (≡.cong (M₀ f) (M₀≡ eq′)) (M₀≡ eq) ⟩ M₁ f (M₁ h j) ▸ ≡.cong (M₀ f) (M₀≡ eq′) ▸ M₀≡ eq ≡˘⟨ ≡.cong (_▸ M₀≡ eq) (M-resp-▸ f (M₁ h j) (M₀≡ eq′)) ⟩ M₁ f (M₁ h j ▹ M₀≡ eq′) ▸ M₀≡ eq ≈⟨ M₁≡ eq ⟩ M₀≡ eq ◂ M₁ g (M₁ h j ▹ M₀≡ eq′) ≈⟨ ◂-resp-≈ (M₀≡ eq) (M-resp-≈ g (M₁≡ eq′)) ⟩ M₀≡ eq ◂ M₁ g (M₀≡ eq′ ◃ M₁ i j) ≡⟨ ≡.cong (M₀≡ eq ◂_) (M-resp-◂ g (M₀≡ eq′) (M₁ i j)) ⟩ M₀≡ eq ◂ ≡.cong (M₀ g) (M₀≡ eq′) ◂ M₁ g (M₁ i j) ≡⟨ ◂-trans (M₀≡ eq) (≡.cong (M₀ g) (M₀≡ eq′)) (M₁ g (M₁ i j)) ⟩ ≡.trans (M₀≡ eq) (≡.cong (M₀ g) (M₀≡ eq′)) ◂ M₁ g (M₁ i j) ≡˘⟨ ≡.cong (_◂ M₁ g (M₁ i j)) (≡.naturality (λ _ → M₀≡ eq)) ⟩ ≡.trans (≡.cong (M₀ f) (M₀≡ eq′)) (M₀≡ eq) ◂ M₁ g (M₁ i j) ∎ } } where open Graph open GraphMorphism open GraphMorphism≈ open _≡F_ -- Put the rest of the Graph stuff here too: Underlying₀ : Category o ℓ e → Graph o ℓ e Underlying₀ C = record { Obj = C.Obj ; _⇒_ = C._⇒_ ; _≈_ = C._≈_ ; equiv = C.equiv } where module C = Category C Underlying₁ : {C : Category o ℓ e} {D : Category o′ ℓ′ e′} → Functor C D → GraphMorphism (Underlying₀ C) (Underlying₀ D) Underlying₁ F = record { M₀ = F.F₀ ; M₁ = F.F₁ ; M-resp-≈ = F.F-resp-≈ } where module F = Functor F Underlying : Functor (Cats o ℓ e) (Graphs o ℓ e) Underlying = record { F₀ = Underlying₀ ; F₁ = Underlying₁ ; identity = λ {A} → record { M₀≡ = ≡.refl ; M₁≡ = Category.Equiv.refl A } ; homomorphism = λ where {Z = Z} → record { M₀≡ = ≡.refl ; M₁≡ = Category.Equiv.refl Z } ; F-resp-≈ = λ {A} {B} {F} {G} F≈G → record { M₀≡ = λ {X} → eq₀ F≈G X ; M₁≡ = λ {x} {y} {f} → let open Category B open HId B open Trsp (Underlying₀ B) open Functor open Graph.EdgeReasoning (Underlying₀ B) in begin F₁ F f ▸ eq₀ F≈G y ≈⟨ hid-subst-cod (F₁ F f) (eq₀ F≈G y) ⟩ hid (eq₀ F≈G y) ∘ F₁ F f ≈⟨ eq₁ F≈G f ⟩ F₁ G f ∘ hid (eq₀ F≈G x) ≈˘⟨ hid-subst-dom (eq₀ F≈G x) (F₁ G f) ⟩ eq₀ F≈G x ◂ F₁ G f ∎ } } where open NaturalTransformation open NaturalIsomorphism -- Transports on paths module TrspStar (G : Graph o ℓ e) where open Graph G open Trsp (Underlying₀ (Free G)) public using () renaming ( _◂_ to _◂*_ ; _▸_ to _▸*_ ) open Trsp G -- Lemmas relating transports to path operations. ◂*-▸*-ε : ∀ {A B : Obj} (p : A ≡ B) → ε ▸* p ≡ p ◂* ε ◂*-▸*-ε ≡.refl = ≡.refl ◂*-◅ : ∀ {A B C D : Obj} (p : A ≡ B) (f : B ⇒ C) (fs : Star _⇒_ C D) → p ◂* (f ◅ fs) ≡ (p ◂ f) ◅ fs ◂*-◅ ≡.refl f fs = ≡.refl ◅-▸* : ∀ {A B C D : Obj} (f : A ⇒ B) (fs : Star _⇒_ B C) (p : C ≡ D) → (f ◅ fs) ▸* p ≡ f ◅ (fs ▸* p) ◅-▸* f fs ≡.refl = ≡.refl ◅-◂*-▸ : ∀ {A B C D : Obj} (f : A ⇒ B) (p : B ≡ C) (fs : Star _⇒_ C D) → _≡_ {_} {Star _⇒_ A D} (f ◅ (p ◂* fs)) ((f ▸ p) ◅ fs) ◅-◂*-▸ f ≡.refl fs = ≡.refl -- define these ahead of time module _ {G₁ G₂ : Graph o ℓ e} (G⇒ : GraphMorphism G₁ G₂) where open Graph G₁ renaming (_⇒_ to _⇒₁_; Obj to Obj₁) open Graph G₂ renaming (_⇒_ to _⇒₂_; Obj to Obj₂; module Equiv to Equiv₂) open GraphMorphism G⇒ mapGraph : {A B : Obj₁} → Star _⇒₁_ A B → Star _⇒₂_ (M₀ A) (M₀ B) mapGraph ε = ε mapGraph (x ◅ y) = M₁ x ◅ mapGraph y map-hom : {X Y Z : Graph.Obj G₁} (f : Star _⇒₁_ X Y) {g : Star _⇒₁_ Y Z} → [ G₂ ] mapGraph (f ◅◅ g) ≈* (mapGraph f ◅◅ mapGraph g) map-hom ε {g} = refl G₂ map-hom (x ◅ f) {g} = Equiv₂.refl ◅ map-hom f map-resp : {A B : Obj₁} (f : Star _⇒₁_ A B) {g : Star _⇒₁_ A B} → [ G₁ ] f ≈* g → [ G₂ ] mapGraph f ≈* mapGraph g map-resp ε ε = ε map-resp (x ◅ f) (f≈* ◅ eq) = M-resp-≈ f≈* ◅ map-resp f eq -- don't want a single global GraphMorphism module _ {G : Graph o ℓ e} where open Graph G map-id : {A B : Obj} (f : Star _⇒_ A B) → [ G ] mapGraph (idGHom {G = G}) f ≈* f map-id ε = ε map-id (fs ◅ f) = Equiv.refl ◅ map-id f module _ {X Y Z : Graph o ℓ e} {G₁ : GraphMorphism X Y} {G₂ : GraphMorphism Y Z} where open Graph X map-∘ : {A B : Obj} (f : Star _⇒_ A B) → [ Z ] (mapGraph (G₂ ∘GM G₁) f) ≈* mapGraph G₂ (mapGraph G₁ f) map-∘ ε = ε map-∘ (fs ◅ f) = Graph.Equiv.refl Z ◅ map-∘ f module _ {G H : Graph o ℓ e} {f g : GraphMorphism G H} (f≈g : GraphMorphism≈ f g) where open Graph G open GraphMorphism open GraphMorphism≈ f≈g open TrspStar H open Trsp H map-M₁≡ : {A B : Obj} (hs : Star _⇒_ A B) → [ H ] mapGraph f hs ▸* M₀≡ ≈* M₀≡ ◂* mapGraph g hs map-M₁≡ ε = ≡⇒≈* H (◂*-▸*-ε M₀≡) map-M₁≡ (hs ◅ h) = begin (M₁ f hs ◅ mapGraph f h) ▸* M₀≡ ≡⟨ ◅-▸* (M₁ f hs) _ M₀≡ ⟩ M₁ f hs ◅ (mapGraph f h ▸* M₀≡) ≈⟨ Graph.Equiv.refl H ◅ map-M₁≡ h ⟩ M₁ f hs ◅ (M₀≡ ◂* mapGraph g h) ≡⟨ ◅-◂*-▸ (M₁ f hs) M₀≡ _ ⟩ (M₁ f hs ▸ M₀≡) ◅ mapGraph g h ≈⟨ M₁≡ ◅ (refl H) ⟩ (M₀≡ ◂ M₁ g hs) ◅ mapGraph g h ≡˘⟨ ◂*-◅ M₀≡ (M₁ g hs) _ ⟩ M₀≡ ◂* (M₁ g hs ◅ mapGraph g h) ∎ where open PathEqualityReasoning H module _ (C : Category o ℓ e) where open Category C open HomReasoning -- A helper that should probably go into Categories.Morphism.Reasoning... toSquare : ∀ {A B} {f g : A ⇒ B} → f ≈ g → CommutativeSquare f id id g toSquare {_} {_} {f} {g} f≈g = begin id ∘ f ≈⟨ identityˡ ⟩ f ≈⟨ f≈g ⟩ g ≈˘⟨ identityʳ ⟩ g ∘ id ∎ CatF : Functor (Graphs o ℓ e) (Cats o (o ⊔ ℓ) (o ⊔ ℓ ⊔ e)) CatF = record { F₀ = Free ; F₁ = λ {G₁} {G₂} G⇒ → record { F₀ = M₀ G⇒ ; F₁ = mapGraph G⇒ ; identity = refl G₂ ; homomorphism = λ {_} {_} {_} {f} → map-hom G⇒ f ; F-resp-≈ = λ { {f = f} → map-resp G⇒ f} } ; identity = λ {G} → record { eq₀ = λ _ → ≡.refl ; eq₁ = λ f → toSquare (Free G) (map-id f) } ; homomorphism = λ {_} {_} {G} → record { eq₀ = λ _ → ≡.refl ; eq₁ = λ h → toSquare (Free G) (map-∘ h) } ; F-resp-≈ = λ {_} {G} {f} {g} f≈g → record { eq₀ = λ _ → M₀≡ f≈g ; eq₁ = λ h → let open Category (Free G) open HId (Free G) open TrspStar G open HomReasoning in begin mapGraph f h ◅◅ (hid $ M₀≡ f≈g) ≈˘⟨ hid-subst-cod (mapGraph f h) (M₀≡ f≈g) ⟩ mapGraph f h ▸* M₀≡ f≈g ≈⟨ map-M₁≡ f≈g h ⟩ M₀≡ f≈g ◂* mapGraph g h ≈⟨ hid-subst-dom (M₀≡ f≈g) (mapGraph g h) ⟩ (hid $ M₀≡ f≈g) ◅◅ mapGraph g h ∎ } } where open GraphMorphism open GraphMorphism≈ -- Because of the Level changes in CatF, sizes must all be same: CatF-is-Free : (o : Level) → Adjoint (CatF {o} {o} {o}) (Underlying) CatF-is-Free o = record { unit = ntHelper record { η = GM ; commute = λ {X} {Y} f → record { M₀≡ = ≡.refl ; M₁≡ = Graph.Equiv.refl Y ◅ ε } } ; counit = ntHelper record { η = λ X → record { F₀ = idFun ; F₁ = unwind X ; identity = Category.Equiv.refl X ; homomorphism = λ { {f = f} {g} → unwind-◅◅ X {f = f} {g} } ; F-resp-≈ = unwind-resp-≈ X } ; commute = λ {_} {Y} F → record { eq₀ = λ _ → ≡.refl ; eq₁ = λ f → toSquare Y (comm F f) } } ; zig = λ {G} → record { eq₀ = λ _ → ≡.refl ; eq₁ = λ f → toSquare (Free G) (zig′ G f) } ; zag = λ {B} → record { M₀≡ = ≡.refl ; M₁≡ = Category.identityˡ B } } where GM : (X : Graph o o o) → GraphMorphism X (Underlying₀ (Free X)) GM _ = record { M₀ = idFun ; M₁ = return ; M-resp-≈ = λ f≈g → f≈g ◅ ε } module _ (X : Category o o o) where open Category X open HomReasoning unwind : {A B : Obj} → Star _⇒_ A B → A ⇒ B unwind = fold _⇒_ (flip _∘_) id unwind-◅◅ : {A B C : Obj} {f : Star _⇒_ A B} {g : Star _⇒_ B C} → unwind (f ◅◅ g) ≈ (unwind g) ∘ (unwind f) unwind-◅◅ {f = ε} {g} = Equiv.sym identityʳ unwind-◅◅ {f = x ◅ f} {g} = ∘-resp-≈ˡ (unwind-◅◅ {f = f} {g}) ○ assoc unwind-resp-≈ : {A B : Obj} {f g : Star _⇒_ A B} → [ Underlying₀ X ] f ≈* g → unwind f ≈ unwind g unwind-resp-≈ ε = Equiv.refl unwind-resp-≈ (x ◅ eq) = ∘-resp-≈ (unwind-resp-≈ eq) x zig′ : (X : Graph o o o) → {A B : Graph.Obj X} → (f : Star (Graph._⇒_ X) A B) → let Y = Free X in [ X ] (unwind Y) (mapGraph (GM X) f) ≈* f zig′ A ε = ε zig′ A (fs ◅ f) = Graph.Equiv.refl A ◅ zig′ A f module _ {X Y : Category o o o} (F : Functor X Y) where open Category X renaming (Obj to Obj₁; _⇒_ to _⇒₁_) open Category Y renaming (_≈_ to _≈₂_; module Equiv to EY) open Category.HomReasoning Y open Functor F comm : {A B : Obj₁} (f : Star _⇒₁_ A B) → unwind Y (mapGraph (Underlying₁ F) f) ≈₂ F₁ (unwind X f) comm ε = EY.sym identity comm (x ◅ f) = EY.sym (homomorphism ○ Category.∘-resp-≈ˡ Y (EY.sym (comm f)))
test/Fail/Issue3932.agda
cruhland/agda
1,989
17027
<reponame>cruhland/agda -- Andreas, 2019-07-23, issue #3932 -- -- Mutual blocks are not supported in mutual blocks module _ where module M where mutual A : Set1 A = Set mutual B : Set1 B = A module N where mutual A : Set1 A = Set mutual A = Set module O where mutual A : Set1 mutual A = Set -- WAS: internal errors -- EXPECTED ERRORS: -- -- * mutual blocks in mutual blocks are not supported -- -- * The following names are declared but not accompanied by a definition: A -- when scope checking the declaration -- module O where
src/swagger-credentials-oauth.ads
jquorning/swagger-ada
17
24072
<reponame>jquorning/swagger-ada<gh_stars>10-100 ----------------------------------------------------------------------- -- swagger-credentials-oauth -- OAuth2 client credentials -- Copyright (C) 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Http.Clients; with Security.OAuth.Clients; package Swagger.Credentials.OAuth is type OAuth2_Credential_Type is new Security.OAuth.Clients.Application and Credential_Type with private; -- Set the credendials on the HTTP client request before doing the call. overriding procedure Set_Credentials (Credential : in OAuth2_Credential_Type; Into : in out Util.Http.Clients.Client'Class); -- Request a OAuth token with username and password credential. -- Upon successful completion, the credential contains an access token that -- can be used to authorize REST operations. procedure Request_Token (Credential : in out OAuth2_Credential_Type; Username : in String; Password : in String; Scope : in String); -- Refresh the OAuth access token with the refresh token. procedure Refresh_Token (Credential : in out OAuth2_Credential_Type); private type OAuth2_Credential_Type is new Security.OAuth.Clients.Application and Credential_Type with record Token : Security.OAuth.Clients.Grant_Type; Scope : Ada.Strings.Unbounded.Unbounded_String; end record; end Swagger.Credentials.OAuth;
Library/SpecUI/CommonUI/CComp/copenContent.asm
steakknife/pcgeos
504
164089
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/COpen (common code for several specific UIs) FLE: copenContent.asm ROUTINES: Name Description ---- ----------- GLB OLContentClass GenContent object REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 9/89 Initial version Doug 11/90 Moved from cviewContent.asm to this file DESCRIPTION: $Id: copenContent.asm,v 1.1 97/04/07 10:53:59 newdeal Exp $ -------------------------------------------------------------------------------@ CommonUIClassStructures segment resource OLContentClass mask CLASSF_DISCARD_ON_SAVE or \ mask CLASSF_NEVER_SAVED method VisCallParentEnsureStack, OLContentClass, MSG_OL_VUP_MAKE_APPLYABLE ; ; NATIVE method handlers (those implemented in this file) ; method VupCreateGState, OLContentClass, MSG_VIS_VUP_CREATE_GSTATE CommonUIClassStructures ends ;--------------------------------------------------- ViewBuild segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLContentInitialize -- MSG_META_INITIALIZE for OLContentClass DESCRIPTION: Initializes a content object. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_INITIALIZE RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 8/31/89 Initial version ------------------------------------------------------------------------------@ OLContentInitialize method OLContentClass, MSG_META_INITIALIZE push di mov di, ds:[si] add di, ds:[di].Gen_offset mov cl, ds:[di].GCI_attrs ;get attrs the cheating way pop di mov ds:[di].VCNI_attrs, cl ;store in VisContent mov di, offset OLContentClass CallSuper MSG_META_INITIALIZE ; ; Mark geometry as invalid ; mov cl, mask VOF_GEOMETRY_INVALID or mask VOF_WINDOW_INVALID clr ch mov dl, VUM_MANUAL call VisMarkInvalid ret OLContentInitialize endp COMMENT @---------------------------------------------------------------------- METHOD: OLContentSpecBuild -- MSG_SPEC_BUILD for OLContentClass DESCRIPTION: Visibly build an OLContent object. There is nothing really to be done, since our VisContent object from which we are subclassed will build a visual link to the view when it is opened. However, we can finish setting behavior flags for the content based on specific UI needs here. PASS: *ds:si - instance data es - segment of OLContentClass ax - MSG_SPEC_BUILD bp - SpecBuildFlags RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 9/89 Initial version ------------------------------------------------------------------------------@ OLContentSpecBuild method OLContentClass, MSG_SPEC_BUILD ; Just in case the link hasn't already been set up, set it up ; now, since VIS BUILD routines may need it. ; ; FETCH view to use ; mov di, ds:[si] ;point to instance add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance mov cx, ds:[di].VCNI_view.handle mov dx, ds:[di].VCNI_view.chunk EC < tst cx > EC < ERROR_Z OL_ERROR > ; ; Set visual upward-only link. DO NOT add as a visual child, just ; set up a parent link only. ; or dx, 1 ;make it a parent link! mov ds:[di].VI_link.LP_next.handle, cx mov ds:[di].VI_link.LP_next.chunk, dx ; ; Initialize geometry. ; FALL_THRU OLContentScanGeometryHints OLContentSpecBuild endm COMMENT @---------------------------------------------------------------------- METHOD: OLContentScanGeometryHints -- MSG_SPEC_SCAN_GEOMETRY_HINTS for OLContentClass DESCRIPTION: Scans for geometry hints. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_SPEC_SCAN_GEOMETRY_HINTS RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 2/ 5/92 Initial Version ------------------------------------------------------------------------------@ OLContentScanGeometryHints method static OLContentClass, \ MSG_SPEC_SCAN_GEOMETRY_HINTS uses bx, di, es ; To comply w/static call requirements .enter ; that bx, si, di, & es are preserved. ; NOTE that es is NOT segment of class mov di, ds:[si] ;must dereference for static add di, ds:[di].Vis_offset ; method! ; ; Make content objects be expand-to-fit. (I don't think I want this. ; text objects, for instance, try to keep to keep their width, but ; the view stays large anyway because of this) ; or ds:[di].VCI_geoDimensionAttrs, \ mask VCGDA_EXPAND_WIDTH_TO_FIT_PARENT or \ mask VCGDA_EXPAND_HEIGHT_TO_FIT_PARENT ; ; We will always be using normal geometry, so we don't need to ; invalidate anything but our margins. ; or ds:[di].VCI_geoAttrs, mask VCGA_ONLY_DRAWS_IN_MARGINS .leave ret OLContentScanGeometryHints endm COMMENT @---------------------------------------------------------------------- METHOD: OLContentSetView -- MSG_META_CONTENT_SET_VIEW for OLContentClass DESCRIPTION: Sets the view for the content object. Otherwise, we don't know what view we are the contents of. PASS: *ds:si - instance data es - segment of VisContentClass ax - MSG_META_CONTENT_SET_VIEW cx:dx - View that this object sits under RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 11/89 Initial version ------------------------------------------------------------------------------@ OLContentSetView method OLContentClass, MSG_META_CONTENT_SET_VIEW mov di, ds:[si] ;point to instance add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance mov ds:[di].GCI_genView.handle, cx ;set new generic view mov ds:[di].GCI_genView.chunk, dx ;set new generic view call ObjMarkDirty ;make sure this happens ; Then, take generic View which we are associated with, & ; give ourselves a one-way link upward to it, so that GUP queries ; get across (unless we already have a generic parent) ; mov di, ds:[si] add di, ds:[di].Gen_offset tst ds:[di].GI_link.LP_next.handle jnz haveParent call GenSetUpwardLink haveParent: ; ; Call superclass, to set View ; mov ax, MSG_META_CONTENT_SET_VIEW mov di, offset OLContentClass CallSuper MSG_META_CONTENT_SET_VIEW ret OLContentSetView endm ViewBuild ends ;---------------- ViewUncommon segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLContentGupQuery -- MSG_SPEC_GUP_QUERY for OLContentClass DESCRIPTION: Respond to a query traveling up the generic composite tree PASS: *ds:si - instance data es - segment of OLContentClass ax - MSG_SPEC_GUP_QUERY cx - Query type (GenQueryType or SpecGenQueryType) dx -? bp - OLBuildFlags RETURN: carry - set if query acknowledged, clear if not bp - OLBuildFlags cx:dx - vis parent DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: WARNING: see OLMapGroup for up-to-date details if (query = SGQT_BUILD_INFO) { visParent = this object; } else { send query to superclass (will send to generic parent) } KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 7/89 Initial version ------------------------------------------------------------------------------@ OLContentGupQuery method OLContentClass, MSG_SPEC_GUP_QUERY cmp cx, SGQT_BUILD_INFO ;can we answer this query? je OLContentGUQ_answer ;skip if so... if _DUI cmp cx, SGQT_SET_KEYBOARD_TYPE je setKeyboardType endif ;we can't answer this query: call super class to handle mov di, offset OLContentClass GOTO ObjCallSuperNoLock OLContentGUQ_answer: mov cx, ds:[LMBH_handle] ; Just return THIS object mov dx, si stc ;return query acknowledged ret if _DUI setKeyboardType: ; ; pass query this from GenContent to GenView ; call VisCallParent ; return answer from parent ret endif OLContentGupQuery endm COMMENT @---------------------------------------------------------------------- METHOD: OLContentTrackScrolling -- MSG_META_CONTENT_TRACK_SCROLLING for OLContentClass DESCRIPTION: Content, for lack of anything better to do, punts the normalize to the first child. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_CONTENT_TRACK_SCROLLING RETURN: nothing DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/25/90 Initial version ------------------------------------------------------------------------------@ OLContentTrackScrolling method OLContentClass, MSG_META_CONTENT_TRACK_SCROLLING ; First, see if there is a target object. If so, send events there. ; This a reasonable thing to do for TRACK_SCROLLING, as this would be ; the object that the user currently working with. ; LARGE mouse events arriving here are implied mouse events in a ; LARGE vis tree, in which case the target is normally the active ; layer -- also reasonable default behavior mov bx, ds:[di].VCNI_targetExcl.FTVMC_OD.handle tst bx jz noTarget mov si, ds:[di].VCNI_targetExcl.FTVMC_OD.chunk jmp common noTarget: ; If not, send to first child so that things will work in simple, ; one-child generic object models ; mov di, ds:[si] add di, ds:[di].Gen_offset mov bx, ds:[di].GI_comp.CP_firstChild.handle tst_clc bx jz callSuper mov si, ds:[di].GI_comp.CP_firstChild.chunk common: mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage stc ret callSuper: mov di, offset OLContentClass GOTO ObjCallSuperNoLock OLContentTrackScrolling endm ViewUncommon ends KbdNavigation segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: OLContentFupKbdChar - MSG_META_FUP_KBD_CHAR handler for OLContentClass DESCRIPTION: This method is sent by child which 1) is the focused object and 2) has received a MSG_META_KBD_CHAR or MSG_META_FUP_KBD_CHAR which is does not care about. Since we also don't care about the character, we forward this method up to the parent in the focus hierarchy. At this class level, the parent in the focus hierarchy is either the generic parent (if this is a Display) or GenApplication object. PASS: *ds:si = instance data for object cx = character value dl = CharFlags dh = ShiftState (ModBits) bp low = ToggleState bp high = scan code RETURN: nothing DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 2/90 initial version ------------------------------------------------------------------------------@ OLContentFupKbdChar method dynamic OLContentClass, MSG_META_FUP_KBD_CHAR ;Don't handle state keys (shift, ctrl, etc). test dl, mask CF_STATE_KEY or mask CF_TEMP_ACCENT jnz sendUpFocusHierarchy ;let application deal with these test dl, mask CF_FIRST_PRESS or mask CF_REPEAT_PRESS jz sendUpFocusHierarchy ;skip if not press event... if _KBD_NAVIGATION ;------------------------------------------------------ push es ;set es:di = table of shortcuts ;and matching methods mov di, cs mov es, di mov di, offset cs:OLContentKbdBindings call ConvertKeyToMethod pop es jc sendMethod ;skip if found... endif ;---------------------------------------------------------------------- sendUpFocusHierarchy: ;we don't care about this keyboard event. Forward it up the ;focus hierarchy. mov ax, MSG_META_FUP_KBD_CHAR call VisCallParent ;must match what OLContent does ret sendMethod: ;found a shortcut: send method to self. call ObjCallInstanceNoLock done: ret OLContentFupKbdChar endm if _KBD_NAVIGATION ;------------------------------------------------------ ;Keyboard shortcut bindings for OLContentClass (do not separate tables) OLContentKbdBindings label word word length OLICShortcutList ;P C S C ;h A t h S h ;y l r f e a ;s t l t t r if DBCS_PCGEOS OLICShortcutList KeyboardShortcut \ <0, 0, 0, 0, C_SYS_TAB and mask KS_CHAR>, ;NEXT FIELD <0, 0, 0, 1, C_SYS_TAB and mask KS_CHAR>, ;PREVIOUS FIELD <0, 0, 1, 0, C_SYS_TAB and mask KS_CHAR>, ;NEXT FIELD <0, 0, 1, 1, C_SYS_TAB and mask KS_CHAR>, ;PREVIOUS FIELD <0, 0, 0, 0, C_SYS_DOWN and mask KS_CHAR>, <0, 0, 0, 0, C_SYS_UP and mask KS_CHAR>, ;PREVIOUS FIELD <0, 0, 0, 0, C_SYS_RIGHT and mask KS_CHAR>, ;NEXT FIELD <0, 0, 0, 0, C_SYS_LEFT and mask KS_CHAR> ;PREVIOUS FIELD else OLICShortcutList KeyboardShortcut \ <0, 0, 0, 0, 0xf, VC_TAB>, ;NEXT FIELD <0, 0, 0, 1, 0xf, VC_TAB>, ;PREVIOUS FIELD <0, 0, 1, 0, 0xf, VC_TAB>, ;NEXT FIELD <0, 0, 1, 1, 0xf, VC_TAB>, ;PREVIOUS FIELD <0, 0, 0, 0, 0xf, VC_DOWN>, ;NEXT FIELD <0, 0, 0, 0, 0xf, VC_UP>, ;PREVIOUS FIELD <0, 0, 0, 0, 0xf, VC_RIGHT>, ;NEXT FIELD <0, 0, 0, 0, 0xf, VC_LEFT> ;PREVIOUS FIELD endif ;OLICMethodList label word word MSG_GEN_NAVIGATE_TO_NEXT_FIELD word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD word MSG_GEN_NAVIGATE_TO_NEXT_FIELD word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD word MSG_GEN_NAVIGATE_TO_NEXT_FIELD word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD word MSG_GEN_NAVIGATE_TO_NEXT_FIELD word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD endif ;KBD_NAVIGATION ------------------------------------------------------- KbdNavigation ends ViewCommon segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLContentApplyDefaultFocus -- MSG_META_CONTENT_APPLY_DEFAULT_FOCUS for OLContentClass DESCRIPTION: Applies the default focus to the last object with HINT_DEFAULT_ FOCUS in the visible tree under the content. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_CONTENT_APPLY_DEFAULT_FOCUS RETURN: ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 11/13/91 Initial Version ------------------------------------------------------------------------------@ OLContentApplyDefaultFocus method dynamic OLContentClass, \ MSG_META_CONTENT_APPLY_DEFAULT_FOCUS mov di, ds:[si] ;someone has focus, exit add di, ds:[di].Vis_offset tst ds:[di].VCNI_focusExcl.FTVMC_OD.handle jnz exit mov ax, MSG_GEN_START_BROADCAST_FOR_DEFAULT_FOCUS call ObjCallInstanceNoLock ;will reset cx, dx, bp before searching tst cx ;did we find a hint? jz 10$ ;skip if not answered... ;there is an object which has the HINT_DEFAULT_FOCUS. Store its ;OD and info about it (i.e. windowed or not) mov bp, mask MAEF_GRAB or mask MAEF_FOCUS mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL call ObjCallInstanceNoLock jmp short exit 10$: ;there is no such object: must assign focus to first child in ;navigation circuit (even if this specific UI does not support ;"TABBING" navigation, it may support auto-navigation between text ;objects, so find first text object) ; mov ax, MSG_GEN_NAVIGATE_TO_NEXT_FIELD ; call ObjCallInstanceNoLock ;we can't use this because if nothing in the content wants the focus, this will ;send up the MSG_GEN_NAVIGATE_TO_NEXT_FIELD to the VisParent, screwing up ;the focus in the parent window - brianc 5/20/92 clr bp ;forward navigation call OLContentNavigateCommon ;if nothing within content gets it, ; just give up exit: ret OLContentApplyDefaultFocus endm ViewCommon ends ;---------------------- ViewUncommon segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: OLContentStartBroadcastForDefaultFocus -- MSG_SPEC_START_BROADCAST_FOR_DEFAULT_FOCUS DESCRIPTION: The generic version of this method is sent when the specific UI opens a window, and wants to know if an object within the window has HINT_DEFAULT_FOCUS{_WIN}. PASS: *ds:si = instance data for object RETURN: ^lcx:dx = object with hint (0:0 if none) bp = info on that object (HGF_IS_WINDOW, etc) DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 3/90 initial version Eric 5/90 rewritten to use broadcast which scans entire window. ------------------------------------------------------------------------------@ OLContentStartBroadcastForDefaultFocus method dynamic OLContentClass, \ MSG_SPEC_START_BROADCAST_FOR_DEFAULT_FOCUS ;initialize view to nil, since we do not yet know of a default focus obj. clr cx clr dx clr bp ;send MSG_SPEC_BROADCAST_FOR_DEFAULT_FOCUS to all visible ;children which are FULLY_ENABLED. Returns last object in visible ;tree which has HINT_DEFAULT_FOCUS{_WIN}. mov ax, MSG_SPEC_BROADCAST_FOR_DEFAULT_FOCUS mov bx, offset OLBroadcastForDefaultFocus_callBack ;pass offset to callback routine, ;in Resident resource GOTO OLResidentProcessVisChildren OLContentStartBroadcastForDefaultFocus endm COMMENT @---------------------------------------------------------------------- FUNCTION: OLContentNavigate - MSG_SPEC_NAVIGATION_QUERY handler for OLContentClass DESCRIPTION: This method is used to implement the keyboard navigation within-a-window mechanism. See method declaration for full details. CALLED BY: utility PASS: *ds:si = instance data for object ^lcx:dx = object which originated the navigation method bp = NavigationFlags RETURN: ds, si = same ^lcx:dx = replying object bp = NavigationFlags (in reply) carry set if found the next/previous object we were seeking ax - destroyed DESTROYED: ax, bx, es, di PSEUDO CODE/STRATEGY: OLContentClass handler: Since we have received this method at this class level, we know that if this object is subclassed by something in the specific UI, it is something that is never focused, and so is excluded from navigation (a GenInteraction which becomes an OLCtrlClass for example). So all we need to do is forward this method to the to first visible child, or next sibling (hints may affect how next sibling is reached.) REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 2/90 initial version ------------------------------------------------------------------------------@ ;SAVE BYTES: VisClass handler could return ContentOSITE flag by looking ;at VisTypeFlags (they line up... trust me!) OLContentNavigate method dynamic OLContentClass, MSG_SPEC_NAVIGATION_QUERY ; ; Rudy doesn't allow navigating out of contents to other gadgets ; that are siblings of the view -- the spec doesn't call for it ; and it allows us to correctly handle stopping navigation at the ; top or bottom of a content, rather than wrapping around. -cbh ; test bp, mask NF_BACKTRACK_AFTER_TRAVELING jnz navigate ;if going backwards, do normal navigate ; for now, we'll check for stuff ; after calling VisNavigateCommon test bp, mask NF_SKIP_NODE jnz answerQuery ;skipping node, the last visible child ; must be sending the query back up ; to us, we'll answer the query ; and later send it up to the view. navigate: mov bl, mask NCF_IS_COMPOSITE or mask NCF_IS_ROOT_NODE ;pass flags: is composite, is ; root node, not focusable. mov di, si ;if this object has generic part, ;ok to scan it for hints. call VisNavigateCommon mov al, 0ffh ;return is focusable jmp short exit answerQuery: mov cx, ds:[LMBH_handle] ;answer the query mov dx, si stc exit: ret OLContentNavigate endm ViewUncommon ends KbdNavigation segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLContentInitialNavigate -- MSG_META_CONTENT_NAVIGATION_QUERY for OLContentClass DESCRIPTION: The view just got the focus, we'll figure out something to give the focus to. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_CONTENT_NAVIGATION_QUERY ^lcx:dx = object which originated this query bp = NavigateFlags RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 11/ 7/91 Initial Version ------------------------------------------------------------------------------@ OLContentInitialNavigate method dynamic OLContentClass, \ MSG_META_CONTENT_NAVIGATION_QUERY ;this window does not yet have a focused object. Find the first ;object in the visible tree and place the focus on it. ;(If the application wanted the navigation to start on some specific ;object, the object would have HINT_MAKE_FOCUS.) Since this method ;will be passed downwards by composite objects, turn off the SKIP flag. mov cx, ds:[LMBH_handle] mov dx, si ANDNF bp, not (mask NF_SKIP_NODE) ORNF bp, mask NF_INITIATE_QUERY ;start a navigation query around the window.. It will loop ;around the navigation circuit (visible tree) if necessary, ;to find the NEXT/PREVIOUS object we are seeking. push si mov ax, MSG_SPEC_NAVIGATE call ObjCallInstanceNoLock pop si ;If the content answers, it means we need make the view navigate ;backwards or forwards. Otherwise, give the focus to the object ;that answered. (Changed 12/ 9/92 cbh to just give up if no ;navigation answered, to avoid infinite navigation in the view's ;parent window if no other object wants the focus.) ; jnc makeViewNavigate ;nothing there, go upstairs ; tst cx ; jz makeViewNavigate jnc done ;nothing there, give up tst cx jz done cmp cx, ds:[LMBH_handle] jne giveFocusToObject cmp dx, si je short done ; jne giveFocusToObject ; ;makeViewNavigate: ; ;for some reason, the query wasn't handled. We'll make the assumption ; ;that the we were trying to navigate forwards or backwards and tell ; ;the view to try navigating forwards or backwards again. (Changed ; ;12/ 9/92 cbh to just give up if no navigation answered.) ; ; mov ax, MSG_GEN_NAVIGATE_TO_NEXT_FIELD ; test bp, mask NF_BACKTRACK_AFTER_TRAVELING ; jz 10$ ; mov ax, MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD ;10$: ; GOTO VisCallParent giveFocusToObject: mov bp, mask MAEF_GRAB or mask MAEF_FOCUS mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL call ObjCallInstanceNoLock if (0) ; We'll deal with HINT_CONTENT_KEEP_FOCUS_VISIBLE in ; OLContentMupAlterFTVMCExcl. - Joon (9/18/95) ; ; Scroll, if necessary, to get the object onscreen. -cbh 12/16/92 ; Only if HINT_CONTENT_KEEP_FOCUS_VISIBLE set. -cbh 1/31/93 ; ; load real focus, not the one we ; tried to set - brianc 12/30/92 mov ax, HINT_CONTENT_KEEP_FOCUS_VISIBLE call ObjVarFindData jnc 20$ mov di, ds:[si] add di, ds:[di].Vis_offset mov cx, ds:[di].VCNI_focusExcl.FTVMC_OD.handle mov dx, ds:[di].VCNI_focusExcl.FTVMC_OD.chunk call EnsureObjectOnscreen 20$: ; ; Tell our view's parent window that we've been successful searching ; for a content object to give the focus to. If the OLWin encounters ; another navigation query, it's probably new navigation, rather than ; a problem with the content finding a focusable object. -6/23/92 cbh ; (Let's not implement this yet.) ; ; mov ax, MSG_OL_WIN_FOUND_FOCUSABLE_CONTENT_OBJECT ; call SwapLockOLWin endif done: ret OLContentInitialNavigate endm KbdNavigation ends ViewUncommon segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: OLContentNavigateToNext - MSG_SPEC_NAVIGATE_TO_NEXT OLContentNavigateToPrevious - MSG_SPEC_NAVIGATE_TO_PREVIOUS DESCRIPTION: This method is used to implement the keyboard navigation within-a-window mechanism. See method declaration for full details. CALLED BY: utility PASS: *ds:si = instance data for object RETURN: ds, si = same DESTROYED: ax, bx, cx, dx, bp, es, di PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 2/90 initial version ------------------------------------------------------------------------------@ OLContentNavigateToNextField method dynamic OLContentClass, \ MSG_SPEC_NAVIGATE_TO_NEXT_FIELD clr bp ;pass flags: navigate forwards ;pass ds:di = VisSpec instance data GOTO DoNavigate OLContentNavigateToNextField endm OLContentNavigateToPreviousField method dynamic OLContentClass, \ MSG_SPEC_NAVIGATE_TO_PREVIOUS_FIELD mov bp, mask NF_TRAVEL_CIRCUIT or mask NF_BACKTRACK_AFTER_TRAVELING ;pass flags: we are trying to navigate ;backards. ;pass ds:di = VisSpec instance data DoNavigate label far push ax call OLContentNavigateCommon pop ax jc exit call VisCallParent ;try parent view exit: ret OLContentNavigateToPreviousField endm COMMENT @---------------------------------------------------------------------- FUNCTION: OLContentNavigateCommon DESCRIPTION: This procedure is used by MSG_SPEC_NAVIGATE_TO_NEXT_FIELD and MSG_SPEC_NAVIGATE_TO_PREVIOUS_FIELD handlers. CALLED BY: OLContentNavigateToNextField OLContentNavigateToPreviousField PASS: *ds:si = instance data for object ds:di = VisSpec instance data bp = NavigationFlags, to indicate whether navigating backwards or forwards, and whether navigating through menu bar or controls in window. RETURN: carry set if someone has the focus DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 11/91 initial version ------------------------------------------------------------------------------@ OLContentNavigateCommon proc far ;get focused object within this window push bp ;save forward/backward info call OLContent_Deref_Load_FocusExcl_CXDX ORNF bp, mask NF_SKIP_NODE or mask NF_INITIATE_QUERY ;pass flag: skip focused node, ;find next focusable node mov ax, cx ;is there a focused object? or ax, dx jnz sendNavQueryToOD ;skip if so... ;this window does not yet have a focused object. Find the first ;object in the visible tree and place the focus on it. ;(If the application wanted the navigation to start on some specific ;object, the object would have HINT_MAKE_FOCUS.) Since this method ;will be passed downwards by composite objects, turn off the SKIP flag. mov dx, si mov cx, ds:[LMBH_handle] ANDNF bp, not (mask NF_SKIP_NODE) sendNavQueryToOD: ;send a navigation query to the specified object. It will forward ;the method around the navigation circuit (visible tree) if necessary, ;to find the NEXT/PREVIOUS object we are seeking. push si mov ax, MSG_SPEC_NAVIGATE mov bx, cx ;pass ^lcx:dx = object which will mov si, dx ;start the navigation query. mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage pop si ;NOW finish up with specific checks according to the navigation ;direction. If not handled at all, we'll release the focus and ;call the view. pop ax jnc releaseFocus ;nothing there, release tst cx jz releaseFocus answered: ;If the content answered the query, it means we need to make the view ;navigate forwards or backwards. Release the current focus and ;return carry clear. cmp cx, ds:[LMBH_handle] jne grabFocusExclIfNeeded cmp dx, si jne grabFocusExclIfNeeded releaseFocus: call OLContent_Deref_Load_FocusExcl_CXDX tst cx clc jz done ;no previous focus, exit (carry clear) mov bp, mask MAEF_FOCUS jmp short alterFocusBelowThisNode grabFocusExclIfNeeded: ; ; See if object that answered query hasn't changed. Don't do anything ; if so. Otherwise, grab the focus for the object. ; mov di, ds:[si] add di, ds:[di].Vis_offset cmp cx, ds:[di].VCNI_focusExcl.FTVMC_OD.handle jne grabFocusExcl cmp dx, ds:[di].VCNI_focusExcl.FTVMC_OD.chunk stc je done ;done (carry set) grabFocusExcl: mov bp, mask MAEF_GRAB or mask MAEF_FOCUS stc alterFocusBelowThisNode: pushf push bp mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL call ObjCallInstanceNoLock pop bp if (0) ; We'll deal with ensuring is onscreen in OLContentMupAlterFTVMCExcl. ; - Joon (9/18/95) ; ; Scroll, if necessary, to get the object onscreen. -cbh 12/16/92 ; (Not yet) ; test bp, mask MAEF_GRAB jz noEnsure ; not if release - brianc 12/30/92 ; load real focus, not the one we ; tried to set - brianc 12/30/92 call OLContent_Deref_Load_FocusExcl_CXDX call EnsureObjectOnscreen noEnsure: endif popf done: ret OLContentNavigateCommon endp COMMENT @---------------------------------------------------------------------- ROUTINE: EnsureObjectOnscreen SYNOPSIS: Ensures that an object is onscreen. CALLED BY: OLContentInitialNavigate PASS: *ds:si -- content ^lcx:dx -- object RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/16/92 Initial version ------------------------------------------------------------------------------@ EnsureObjectOnscreen proc far uses si .enter tst dx ;nothing here, exit LONG jz exit push si movdw bxsi, cxdx mov ax, MSG_VIS_GET_ATTRS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ;returns attrs in cl test cl, mask VA_REALIZED ;not realized, forget it jz 5$ ; ; if focus item is a OLScrollableItem, use ; MSG_GEN_ITEM_GROUP_MAKE_ITEM_VISIBLE instead, this is specifically ; for dynamic lists, which have view doc bounds for the virtual ; items, hence MSG_VIS_GET_BOUNDS will not work - brianc 12/30/92 ; ; XXX: If it is a OLScrollableItem, we probably don't need to do ; anything, as the code in OLScrollList handles ensuring that the ; item is visible. ; ; Okay, we must do nothing if the focus is a GenDynamicList or a ; OLScrollableItem, as the list handles that. We don't want to ; MSG_GEN_ITEM_GROUP_MAKE_ITEM_VISIBLE as the focus needn't be ; visible. ; if 0 mov cx, segment OLScrollableItemClass mov dx, offset OLScrollableItemClass mov ax, MSG_META_IS_OBJECT_IN_CLASS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage jc bail ; is OLScrollableItem, do nothing mov cx, segment GenDynamicListClass mov dx, offset GenDynamicListClass mov ax, MSG_META_IS_OBJECT_IN_CLASS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage jnc notScrollItem ; is not dynamic list, continue ; else, do nothing bail: pop si jmp short exit else mov cx, segment OLScrollableItemClass mov dx, offset OLScrollableItemClass mov ax, MSG_META_IS_OBJECT_IN_CLASS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage jnc notScrollItem ; is not , continue mov ax, MSG_GEN_ITEM_GET_IDENTIFIER mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ; ax = identifier mov cx, ax ; cx = identifier push si clr bx, si mov ax, MSG_GEN_ITEM_GROUP_MAKE_ITEM_VISIBLE mov di, mask MF_RECORD call ObjMessage ; di = event pop si mov cx, di ; cx = event mov ax, MSG_GEN_CALL_PARENT mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage pop si jmp short exit endif notScrollItem: mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_VIS_GET_BOUNDS ;get object bounds call ObjMessage ;bounds in ax/bp/cx/dx tst si ;clear zero flag 5$: pop si jz exit ;nothing to bring onscreen... mov bx, bp ;bx <- top sub sp, size MakeRectVisibleParams mov bp, sp clr di mov ss:[bp].MRVP_xFlags, di mov ss:[bp].MRVP_yFlags, di mov ss:[bp].MRVP_xMargin, di mov ss:[bp].MRVP_yMargin, di mov di, offset MRVP_bounds.RD_left call StoreAxInDWord mov ax, bx mov di, offset MRVP_bounds.RD_top call StoreAxInDWord mov ax, cx mov di, offset MRVP_bounds.RD_right call StoreAxInDWord mov ax, dx mov di, offset MRVP_bounds.RD_bottom call StoreAxInDWord mov di, ds:[si] add di, ds:[di].Vis_offset mov bx, ds:[di].VCNI_view.handle mov si, ds:[di].VCNI_view.chunk tst si jz 10$ mov dx, size MakeRectVisibleParams mov ax, MSG_GEN_VIEW_MAKE_RECT_VISIBLE mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT or \ mask MF_STACK call ObjMessage 10$: add sp, size MakeRectVisibleParams exit: .leave ret EnsureObjectOnscreen endp StoreAxInDWord proc near ; ; ss:[bp][di] -- offset to variable to store ; ax -- value to store ; destroyed - ax ; mov ss:[bp][di].low, ax ;store the low word tst ax mov ax, 0 ;sign extend to high word jns 10$ not ax 10$: mov ss:[bp][di].high, ax ret StoreAxInDWord endp COMMENT @---------------------------------------------------------------------- METHOD: OLContentVupQuery -- MSG_VIS_VUP_QUERY for OLContentClass DESCRIPTION: Handles vup queries. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_VIS_VUP_QUERY RETURN: ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 12/11/91 Initial Version ------------------------------------------------------------------------------@ OLContentVupQuery method dynamic OLContentClass, MSG_VIS_VUP_QUERY cmp cx, SVQT_QUERY_WIN_GROUP_FOR_FOCUS_EXCL jne callSuper ;This query is sent by a GenItemGroup which is inside this window ;when it needs to know if it will get the FOCUS exclusive when ;it requests it. It uses this info to optimize its redraws. ;Also, gadgets use this query to find out which object has the focus, ;to see if the gadget is permitted to grab the focus as the user ;presses the mouse on that gadget. ; ;IF THIS ROUTINE MUST ERR, LEAN TOWARDS "FALSE". This will ;cause excessive drawing in gadgets, which is better than no drawing! clr bp ;assume FALSE call OLContent_Deref_Load_FocusExcl_CXDX mov ax, ds:[di].VCNI_focusExcl.FTVMC_flags test ax, mask HGF_APP_EXCL jz 325$ ;skip if not... mov bp, TRUE 325$: stc ret callSuper: mov di, offset OLContentClass CallSuper MSG_VIS_VUP_QUERY ret OLContentVupQuery endm OLContent_Deref_Load_FocusExcl_CXDX proc near mov di, ds:[si] add di, ds:[di].Vis_offset mov cx, ds:[di].VCNI_focusExcl.FTVMC_OD.handle mov dx, ds:[di].VCNI_focusExcl.FTVMC_OD.chunk ret OLContent_Deref_Load_FocusExcl_CXDX endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLContentMupAlterFTVMCExcl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle HINT_CONTENT_KEEP_FOCUS_VISIBLE CALLED BY: MSG_META_MUP_ALTER_FTVMC_EXCL PASS: *ds:si = OLContentClass object ds:di = OLContentClass instance data ds:bx = OLContentClass object (same as *ds:si) es = segment of OLContentClass ax = message # ^lcx:dx = object wishing to grab/release exlusive(s) bp = MetaAlterFTVMCExclFlags RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 9/18/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLContentMupAlterFTVMCExcl method dynamic OLContentClass, MSG_META_MUP_ALTER_FTVMC_EXCL push bp mov di, offset OLContentClass call ObjCallSuperNoLock pop bp test bp, mask MAEF_FOCUS jz done test bp, mask MAEF_GRAB jz done ; Scroll, if necessary, to get the object onscreen. -cbh 12/16/92 ; Only if HINT_CONTENT_KEEP_FOCUS_VISIBLE set. -cbh 1/31/93 ; mov ax, HINT_CONTENT_KEEP_FOCUS_VISIBLE call ObjVarFindData jnc done mov di, ds:[si] add di, ds:[di].Vis_offset movdw cxdx, ds:[di].VCNI_focusExcl.FTVMC_OD GOTO EnsureObjectOnscreen done: ret OLContentMupAlterFTVMCExcl endm ViewUncommon ends ;------------------ ViewCommon segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLContentUpdateGeometry -- MSG_VIS_UPDATE_GEOMETRY for OLContentClass %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: When the geometry changes, scrolls to keep the focus visible. PASS: *ds:si - instance data of OLContentClass object ds:di - OLContentClass instance data ds:bx - OLContentClass object (same as *ds:si) es - segment of OLContentClass ax - MSG_VIS_UPDATE_GEOMETRY RETURN: ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 12/12/95 Initial Version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLContentUpdateGeometry method dynamic OLContentClass, \ MSG_VIS_UPDATE_GEOMETRY .enter mov di, offset OLContentClass call ObjCallSuperNoLock ; Scroll, if necessary, to get the object onscreen. -cbh 12/16/92 ; Only if HINT_CONTENT_KEEP_FOCUS_VISIBLE set. -cbh 1/31/93 ; mov ax, HINT_CONTENT_KEEP_FOCUS_VISIBLE call ObjVarFindData jnc exit ; This does nothing if nobody has the focus mov di, ds:[si] add di, ds:[di].Vis_offset movdw cxdx, ds:[di].VCNI_focusExcl.FTVMC_OD call EnsureObjectOnscreen exit: .leave ret OLContentUpdateGeometry endm COMMENT @---------------------------------------------------------------------- METHOD: OLContentViewOriginChanged DESCRIPTION: Handles these messages by doing superclass stuff, then sending them on to the first child. PASS: *ds:si - instance data es - segment of MetaClass ax - message cx, dx, bp - arguments RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 3/11/92 Initial Version ------------------------------------------------------------------------------@ OLContentViewOriginChanged method dynamic OLContentClass, \ MSG_META_CONTENT_VIEW_ORIGIN_CHANGED, MSG_META_CONTENT_VIEW_WIN_OPENED ; ; Call superclass first. ; push ax, cx, dx, bp mov di, offset OLContentClass call ObjCallSuperNoLock pop ax, cx, dx, bp ; ; Large document layer, already sent to vis children by superclass, ; don't send to first child. -cbh 3/19/93 ; mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].VCNI_attrs, mask VCNA_LARGE_DOCUMENT_MODEL jnz done call VisCallFirstChild done: ; ; if desired, make sure focus is visible ; mov ax, HINT_CONTENT_KEEP_FOCUS_VISIBLE call ObjVarFindData jnc noEnsure mov di, ds:[si] add di, ds:[di].Vis_offset mov cx, ds:[di].VCNI_focusExcl.FTVMC_OD.handle mov dx, ds:[di].VCNI_focusExcl.FTVMC_OD.chunk call EnsureObjectOnscreen noEnsure: ret OLContentViewOriginChanged endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLContentChange -- MSG_SPEC_CHANGE for OLContentClass %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Comes from a "change" being pressed in Rudy. PASS: *ds:si - instance data es - segment of OLContentClass ax - MSG_SPEC_CHANGE RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 5/18/95 Initial Version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ViewCommon ends ViewUncommon segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLContentGetBuildFlags -- MSG_VUP_GET_BUILD_FLAGS for OLContentClass DESCRIPTION: Returns build flags. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_VUP_GET_BUILD_FLAGS RETURN: ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 4/ 9/92 Initial Version ------------------------------------------------------------------------------@ OLContentGetBuildFlags method dynamic OLContentClass, \ MSG_VUP_GET_BUILD_FLAGS ; ; The content is part of some other window. Let's assume this is ; done as the result of a SPEC_BUILD, and we can count on our Vis ; parent link being established. ; GOTO VisCallParent OLContentGetBuildFlags endm ViewUncommon ends
macros/scripts/movement.asm
Dev727/ancientplatinum
28
160249
; MovementPointers indexes (see engine/overworld/movement.asm) enum_start 0, +4 ; Directional movements enum movement_turn_head ; $00 turn_head: MACRO db movement_turn_head | \1 ENDM enum movement_turn_step ; $04 turn_step: MACRO db movement_turn_step | \1 ENDM enum movement_slow_step ; $08 slow_step: MACRO db movement_slow_step | \1 ENDM enum movement_step ; $0c step: MACRO db movement_step | \1 ENDM enum movement_big_step ; $10 big_step: MACRO db movement_big_step | \1 ENDM enum movement_slow_slide_step ; $14 slow_slide_step: MACRO db movement_slow_slide_step | \1 ENDM enum movement_slide_step ; $18 slide_step: MACRO db movement_slide_step | \1 ENDM enum movement_fast_slide_step ; $1c fast_slide_step: MACRO db movement_fast_slide_step | \1 ENDM enum movement_turn_away ; $20 turn_away: MACRO db movement_turn_away | \1 ENDM enum movement_turn_in ; $24 turn_in: MACRO db movement_turn_in | \1 ENDM enum movement_turn_waterfall ; $28 turn_waterfall: MACRO db movement_turn_waterfall | \1 ENDM enum movement_slow_jump_step ; $2c slow_jump_step: MACRO db movement_slow_jump_step | \1 ENDM enum movement_jump_step ; $30 jump_step: MACRO db movement_jump_step | \1 ENDM enum movement_fast_jump_step ; $34 fast_jump_step: MACRO db movement_fast_jump_step | \1 ENDM __enumdir__ = +1 ; Control enum movement_remove_sliding ; $38 remove_sliding: MACRO db movement_remove_sliding ENDM enum movement_set_sliding ; $39 set_sliding: MACRO db movement_set_sliding ENDM enum movement_remove_fixed_facing ; $3a remove_fixed_facing: MACRO db movement_remove_fixed_facing ENDM enum movement_fix_facing ; $3b fix_facing: MACRO db movement_fix_facing ENDM enum movement_show_object ; $3c show_object: MACRO db movement_show_object ENDM enum movement_hide_object ; $3d hide_object: MACRO db movement_hide_object ENDM ; Sleep enum movement_step_sleep ; $3e step_sleep: MACRO if \1 <= 8 db movement_step_sleep + \1 - 1 else db movement_step_sleep + 8, \1 endc ENDM __enum__ = __enum__ + 8 enum movement_step_end ; $47 step_end: MACRO db movement_step_end ENDM enum movement_step_48 ; $48 step_48: MACRO db movement_step_48 db \1 ; ??? ENDM enum movement_remove_object ; $49 remove_object: MACRO db movement_remove_object ENDM enum movement_step_loop ; $4a step_loop: MACRO db movement_step_loop ENDM enum movement_step_4b ; $4b step_4b: MACRO db movement_step_4b ENDM enum movement_teleport_from ; $4c teleport_from: MACRO db movement_teleport_from ENDM enum movement_teleport_to ; $4d teleport_to: MACRO db movement_teleport_to ENDM enum movement_skyfall ; $4e skyfall: MACRO db movement_skyfall ENDM enum movement_step_dig ; $4f step_dig: MACRO db movement_step_dig db \1 ; length ENDM enum movement_step_bump ; $50 step_bump: MACRO db movement_step_bump ENDM enum movement_fish_got_bite ; $51 fish_got_bite: MACRO db movement_fish_got_bite ENDM enum movement_fish_cast_rod ; $52 fish_cast_rod: MACRO db movement_fish_cast_rod ENDM enum movement_hide_emote ; $53 hide_emote: MACRO db movement_hide_emote ENDM enum movement_show_emote ; $54 show_emote: MACRO db movement_show_emote ENDM enum movement_step_shake ; $55 step_shake: MACRO db movement_step_shake db \1 ; displacement ENDM enum movement_tree_shake ; $56 tree_shake: MACRO db movement_tree_shake ENDM enum movement_rock_smash ; $57 rock_smash: MACRO db movement_rock_smash db \1 ; length ENDM enum movement_return_dig ; $58 return_dig: MACRO db movement_return_dig db \1 ; length ENDM enum movement_skyfall_top ; $59 skyfall_top: MACRO db movement_skyfall_top ENDM
programs/oeis/163/A163888.asm
jmorken/loda
1
8424
; A163888: a(n) = 2*a(n-2) for n > 2; a(1) = 5, a(2) = 4. ; 5,4,10,8,20,16,40,32,80,64,160,128,320,256,640,512,1280,1024,2560,2048,5120,4096,10240,8192,20480,16384,40960,32768,81920,65536,163840,131072,327680,262144,655360,524288,1310720,1048576,2621440,2097152,5242880,4194304,10485760,8388608,20971520,16777216,41943040,33554432,83886080,67108864,167772160,134217728,335544320,268435456,671088640,536870912,1342177280,1073741824,2684354560,2147483648,5368709120,4294967296,10737418240,8589934592,21474836480,17179869184,42949672960,34359738368,85899345920,68719476736,171798691840,137438953472,343597383680,274877906944,687194767360,549755813888,1374389534720,1099511627776,2748779069440,2199023255552,5497558138880,4398046511104,10995116277760,8796093022208,21990232555520,17592186044416,43980465111040,35184372088832,87960930222080,70368744177664,175921860444160,140737488355328,351843720888320,281474976710656,703687441776640,562949953421312,1407374883553280,1125899906842624,2814749767106560,2251799813685248,5629499534213120,4503599627370496 mov $1,5 lpb $0 sub $0,1 sub $1,1 mul $1,2 mov $2,$3 trn $2,2 add $2,4 mov $3,$1 mov $1,$2 lpe
rm.asm
tzulang/xv6_4
0
6276
_rm: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 sub $0x20,%esp int i; if(argc < 2){ 9: 83 7d 08 01 cmpl $0x1,0x8(%ebp) d: 7f 19 jg 28 <main+0x28> printf(2, "Usage: rm files...\n"); f: c7 44 24 04 43 08 00 movl $0x843,0x4(%esp) 16: 00 17: c7 04 24 02 00 00 00 movl $0x2,(%esp) 1e: e8 54 04 00 00 call 477 <printf> exit(); 23: e8 cf 02 00 00 call 2f7 <exit> } for(i = 1; i < argc; i++){ 28: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 2f: 00 30: eb 4f jmp 81 <main+0x81> if(unlink(argv[i]) < 0){ 32: 8b 44 24 1c mov 0x1c(%esp),%eax 36: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 3d: 8b 45 0c mov 0xc(%ebp),%eax 40: 01 d0 add %edx,%eax 42: 8b 00 mov (%eax),%eax 44: 89 04 24 mov %eax,(%esp) 47: e8 fb 02 00 00 call 347 <unlink> 4c: 85 c0 test %eax,%eax 4e: 79 2c jns 7c <main+0x7c> printf(2, "rm: %s failed to delete\n", argv[i]); 50: 8b 44 24 1c mov 0x1c(%esp),%eax 54: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 5b: 8b 45 0c mov 0xc(%ebp),%eax 5e: 01 d0 add %edx,%eax 60: 8b 00 mov (%eax),%eax 62: 89 44 24 08 mov %eax,0x8(%esp) 66: c7 44 24 04 57 08 00 movl $0x857,0x4(%esp) 6d: 00 6e: c7 04 24 02 00 00 00 movl $0x2,(%esp) 75: e8 fd 03 00 00 call 477 <printf> break; 7a: eb 0e jmp 8a <main+0x8a> if(argc < 2){ printf(2, "Usage: rm files...\n"); exit(); } for(i = 1; i < argc; i++){ 7c: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 81: 8b 44 24 1c mov 0x1c(%esp),%eax 85: 3b 45 08 cmp 0x8(%ebp),%eax 88: 7c a8 jl 32 <main+0x32> printf(2, "rm: %s failed to delete\n", argv[i]); break; } } exit(); 8a: e8 68 02 00 00 call 2f7 <exit> 0000008f <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 8f: 55 push %ebp 90: 89 e5 mov %esp,%ebp 92: 57 push %edi 93: 53 push %ebx asm volatile("cld; rep stosb" : 94: 8b 4d 08 mov 0x8(%ebp),%ecx 97: 8b 55 10 mov 0x10(%ebp),%edx 9a: 8b 45 0c mov 0xc(%ebp),%eax 9d: 89 cb mov %ecx,%ebx 9f: 89 df mov %ebx,%edi a1: 89 d1 mov %edx,%ecx a3: fc cld a4: f3 aa rep stos %al,%es:(%edi) a6: 89 ca mov %ecx,%edx a8: 89 fb mov %edi,%ebx aa: 89 5d 08 mov %ebx,0x8(%ebp) ad: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } b0: 5b pop %ebx b1: 5f pop %edi b2: 5d pop %ebp b3: c3 ret 000000b4 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { b4: 55 push %ebp b5: 89 e5 mov %esp,%ebp b7: 83 ec 10 sub $0x10,%esp char *os; os = s; ba: 8b 45 08 mov 0x8(%ebp),%eax bd: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) c0: 90 nop c1: 8b 45 08 mov 0x8(%ebp),%eax c4: 8d 50 01 lea 0x1(%eax),%edx c7: 89 55 08 mov %edx,0x8(%ebp) ca: 8b 55 0c mov 0xc(%ebp),%edx cd: 8d 4a 01 lea 0x1(%edx),%ecx d0: 89 4d 0c mov %ecx,0xc(%ebp) d3: 0f b6 12 movzbl (%edx),%edx d6: 88 10 mov %dl,(%eax) d8: 0f b6 00 movzbl (%eax),%eax db: 84 c0 test %al,%al dd: 75 e2 jne c1 <strcpy+0xd> ; return os; df: 8b 45 fc mov -0x4(%ebp),%eax } e2: c9 leave e3: c3 ret 000000e4 <strcmp>: int strcmp(const char *p, const char *q) { e4: 55 push %ebp e5: 89 e5 mov %esp,%ebp while(*p && *p == *q) e7: eb 08 jmp f1 <strcmp+0xd> p++, q++; e9: 83 45 08 01 addl $0x1,0x8(%ebp) ed: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) f1: 8b 45 08 mov 0x8(%ebp),%eax f4: 0f b6 00 movzbl (%eax),%eax f7: 84 c0 test %al,%al f9: 74 10 je 10b <strcmp+0x27> fb: 8b 45 08 mov 0x8(%ebp),%eax fe: 0f b6 10 movzbl (%eax),%edx 101: 8b 45 0c mov 0xc(%ebp),%eax 104: 0f b6 00 movzbl (%eax),%eax 107: 38 c2 cmp %al,%dl 109: 74 de je e9 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 10b: 8b 45 08 mov 0x8(%ebp),%eax 10e: 0f b6 00 movzbl (%eax),%eax 111: 0f b6 d0 movzbl %al,%edx 114: 8b 45 0c mov 0xc(%ebp),%eax 117: 0f b6 00 movzbl (%eax),%eax 11a: 0f b6 c0 movzbl %al,%eax 11d: 29 c2 sub %eax,%edx 11f: 89 d0 mov %edx,%eax } 121: 5d pop %ebp 122: c3 ret 00000123 <strlen>: uint strlen(char *s) { 123: 55 push %ebp 124: 89 e5 mov %esp,%ebp 126: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 129: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 130: eb 04 jmp 136 <strlen+0x13> 132: 83 45 fc 01 addl $0x1,-0x4(%ebp) 136: 8b 55 fc mov -0x4(%ebp),%edx 139: 8b 45 08 mov 0x8(%ebp),%eax 13c: 01 d0 add %edx,%eax 13e: 0f b6 00 movzbl (%eax),%eax 141: 84 c0 test %al,%al 143: 75 ed jne 132 <strlen+0xf> ; return n; 145: 8b 45 fc mov -0x4(%ebp),%eax } 148: c9 leave 149: c3 ret 0000014a <memset>: void* memset(void *dst, int c, uint n) { 14a: 55 push %ebp 14b: 89 e5 mov %esp,%ebp 14d: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 150: 8b 45 10 mov 0x10(%ebp),%eax 153: 89 44 24 08 mov %eax,0x8(%esp) 157: 8b 45 0c mov 0xc(%ebp),%eax 15a: 89 44 24 04 mov %eax,0x4(%esp) 15e: 8b 45 08 mov 0x8(%ebp),%eax 161: 89 04 24 mov %eax,(%esp) 164: e8 26 ff ff ff call 8f <stosb> return dst; 169: 8b 45 08 mov 0x8(%ebp),%eax } 16c: c9 leave 16d: c3 ret 0000016e <strchr>: char* strchr(const char *s, char c) { 16e: 55 push %ebp 16f: 89 e5 mov %esp,%ebp 171: 83 ec 04 sub $0x4,%esp 174: 8b 45 0c mov 0xc(%ebp),%eax 177: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 17a: eb 14 jmp 190 <strchr+0x22> if(*s == c) 17c: 8b 45 08 mov 0x8(%ebp),%eax 17f: 0f b6 00 movzbl (%eax),%eax 182: 3a 45 fc cmp -0x4(%ebp),%al 185: 75 05 jne 18c <strchr+0x1e> return (char*)s; 187: 8b 45 08 mov 0x8(%ebp),%eax 18a: eb 13 jmp 19f <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 18c: 83 45 08 01 addl $0x1,0x8(%ebp) 190: 8b 45 08 mov 0x8(%ebp),%eax 193: 0f b6 00 movzbl (%eax),%eax 196: 84 c0 test %al,%al 198: 75 e2 jne 17c <strchr+0xe> if(*s == c) return (char*)s; return 0; 19a: b8 00 00 00 00 mov $0x0,%eax } 19f: c9 leave 1a0: c3 ret 000001a1 <gets>: char* gets(char *buf, int max) { 1a1: 55 push %ebp 1a2: 89 e5 mov %esp,%ebp 1a4: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 1a7: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 1ae: eb 4c jmp 1fc <gets+0x5b> cc = read(0, &c, 1); 1b0: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1b7: 00 1b8: 8d 45 ef lea -0x11(%ebp),%eax 1bb: 89 44 24 04 mov %eax,0x4(%esp) 1bf: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1c6: e8 44 01 00 00 call 30f <read> 1cb: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 1ce: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 1d2: 7f 02 jg 1d6 <gets+0x35> break; 1d4: eb 31 jmp 207 <gets+0x66> buf[i++] = c; 1d6: 8b 45 f4 mov -0xc(%ebp),%eax 1d9: 8d 50 01 lea 0x1(%eax),%edx 1dc: 89 55 f4 mov %edx,-0xc(%ebp) 1df: 89 c2 mov %eax,%edx 1e1: 8b 45 08 mov 0x8(%ebp),%eax 1e4: 01 c2 add %eax,%edx 1e6: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1ea: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 1ec: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1f0: 3c 0a cmp $0xa,%al 1f2: 74 13 je 207 <gets+0x66> 1f4: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1f8: 3c 0d cmp $0xd,%al 1fa: 74 0b je 207 <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1fc: 8b 45 f4 mov -0xc(%ebp),%eax 1ff: 83 c0 01 add $0x1,%eax 202: 3b 45 0c cmp 0xc(%ebp),%eax 205: 7c a9 jl 1b0 <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 207: 8b 55 f4 mov -0xc(%ebp),%edx 20a: 8b 45 08 mov 0x8(%ebp),%eax 20d: 01 d0 add %edx,%eax 20f: c6 00 00 movb $0x0,(%eax) return buf; 212: 8b 45 08 mov 0x8(%ebp),%eax } 215: c9 leave 216: c3 ret 00000217 <stat>: int stat(char *n, struct stat *st) { 217: 55 push %ebp 218: 89 e5 mov %esp,%ebp 21a: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 21d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 224: 00 225: 8b 45 08 mov 0x8(%ebp),%eax 228: 89 04 24 mov %eax,(%esp) 22b: e8 07 01 00 00 call 337 <open> 230: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 233: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 237: 79 07 jns 240 <stat+0x29> return -1; 239: b8 ff ff ff ff mov $0xffffffff,%eax 23e: eb 23 jmp 263 <stat+0x4c> r = fstat(fd, st); 240: 8b 45 0c mov 0xc(%ebp),%eax 243: 89 44 24 04 mov %eax,0x4(%esp) 247: 8b 45 f4 mov -0xc(%ebp),%eax 24a: 89 04 24 mov %eax,(%esp) 24d: e8 fd 00 00 00 call 34f <fstat> 252: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 255: 8b 45 f4 mov -0xc(%ebp),%eax 258: 89 04 24 mov %eax,(%esp) 25b: e8 bf 00 00 00 call 31f <close> return r; 260: 8b 45 f0 mov -0x10(%ebp),%eax } 263: c9 leave 264: c3 ret 00000265 <atoi>: int atoi(const char *s) { 265: 55 push %ebp 266: 89 e5 mov %esp,%ebp 268: 83 ec 10 sub $0x10,%esp int n; n = 0; 26b: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 272: eb 25 jmp 299 <atoi+0x34> n = n*10 + *s++ - '0'; 274: 8b 55 fc mov -0x4(%ebp),%edx 277: 89 d0 mov %edx,%eax 279: c1 e0 02 shl $0x2,%eax 27c: 01 d0 add %edx,%eax 27e: 01 c0 add %eax,%eax 280: 89 c1 mov %eax,%ecx 282: 8b 45 08 mov 0x8(%ebp),%eax 285: 8d 50 01 lea 0x1(%eax),%edx 288: 89 55 08 mov %edx,0x8(%ebp) 28b: 0f b6 00 movzbl (%eax),%eax 28e: 0f be c0 movsbl %al,%eax 291: 01 c8 add %ecx,%eax 293: 83 e8 30 sub $0x30,%eax 296: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 299: 8b 45 08 mov 0x8(%ebp),%eax 29c: 0f b6 00 movzbl (%eax),%eax 29f: 3c 2f cmp $0x2f,%al 2a1: 7e 0a jle 2ad <atoi+0x48> 2a3: 8b 45 08 mov 0x8(%ebp),%eax 2a6: 0f b6 00 movzbl (%eax),%eax 2a9: 3c 39 cmp $0x39,%al 2ab: 7e c7 jle 274 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 2ad: 8b 45 fc mov -0x4(%ebp),%eax } 2b0: c9 leave 2b1: c3 ret 000002b2 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 2b2: 55 push %ebp 2b3: 89 e5 mov %esp,%ebp 2b5: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 2b8: 8b 45 08 mov 0x8(%ebp),%eax 2bb: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 2be: 8b 45 0c mov 0xc(%ebp),%eax 2c1: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 2c4: eb 17 jmp 2dd <memmove+0x2b> *dst++ = *src++; 2c6: 8b 45 fc mov -0x4(%ebp),%eax 2c9: 8d 50 01 lea 0x1(%eax),%edx 2cc: 89 55 fc mov %edx,-0x4(%ebp) 2cf: 8b 55 f8 mov -0x8(%ebp),%edx 2d2: 8d 4a 01 lea 0x1(%edx),%ecx 2d5: 89 4d f8 mov %ecx,-0x8(%ebp) 2d8: 0f b6 12 movzbl (%edx),%edx 2db: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 2dd: 8b 45 10 mov 0x10(%ebp),%eax 2e0: 8d 50 ff lea -0x1(%eax),%edx 2e3: 89 55 10 mov %edx,0x10(%ebp) 2e6: 85 c0 test %eax,%eax 2e8: 7f dc jg 2c6 <memmove+0x14> *dst++ = *src++; return vdst; 2ea: 8b 45 08 mov 0x8(%ebp),%eax } 2ed: c9 leave 2ee: c3 ret 000002ef <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2ef: b8 01 00 00 00 mov $0x1,%eax 2f4: cd 40 int $0x40 2f6: c3 ret 000002f7 <exit>: SYSCALL(exit) 2f7: b8 02 00 00 00 mov $0x2,%eax 2fc: cd 40 int $0x40 2fe: c3 ret 000002ff <wait>: SYSCALL(wait) 2ff: b8 03 00 00 00 mov $0x3,%eax 304: cd 40 int $0x40 306: c3 ret 00000307 <pipe>: SYSCALL(pipe) 307: b8 04 00 00 00 mov $0x4,%eax 30c: cd 40 int $0x40 30e: c3 ret 0000030f <read>: SYSCALL(read) 30f: b8 05 00 00 00 mov $0x5,%eax 314: cd 40 int $0x40 316: c3 ret 00000317 <write>: SYSCALL(write) 317: b8 10 00 00 00 mov $0x10,%eax 31c: cd 40 int $0x40 31e: c3 ret 0000031f <close>: SYSCALL(close) 31f: b8 15 00 00 00 mov $0x15,%eax 324: cd 40 int $0x40 326: c3 ret 00000327 <kill>: SYSCALL(kill) 327: b8 06 00 00 00 mov $0x6,%eax 32c: cd 40 int $0x40 32e: c3 ret 0000032f <exec>: SYSCALL(exec) 32f: b8 07 00 00 00 mov $0x7,%eax 334: cd 40 int $0x40 336: c3 ret 00000337 <open>: SYSCALL(open) 337: b8 0f 00 00 00 mov $0xf,%eax 33c: cd 40 int $0x40 33e: c3 ret 0000033f <mknod>: SYSCALL(mknod) 33f: b8 11 00 00 00 mov $0x11,%eax 344: cd 40 int $0x40 346: c3 ret 00000347 <unlink>: SYSCALL(unlink) 347: b8 12 00 00 00 mov $0x12,%eax 34c: cd 40 int $0x40 34e: c3 ret 0000034f <fstat>: SYSCALL(fstat) 34f: b8 08 00 00 00 mov $0x8,%eax 354: cd 40 int $0x40 356: c3 ret 00000357 <link>: SYSCALL(link) 357: b8 13 00 00 00 mov $0x13,%eax 35c: cd 40 int $0x40 35e: c3 ret 0000035f <mkdir>: SYSCALL(mkdir) 35f: b8 14 00 00 00 mov $0x14,%eax 364: cd 40 int $0x40 366: c3 ret 00000367 <chdir>: SYSCALL(chdir) 367: b8 09 00 00 00 mov $0x9,%eax 36c: cd 40 int $0x40 36e: c3 ret 0000036f <dup>: SYSCALL(dup) 36f: b8 0a 00 00 00 mov $0xa,%eax 374: cd 40 int $0x40 376: c3 ret 00000377 <getpid>: SYSCALL(getpid) 377: b8 0b 00 00 00 mov $0xb,%eax 37c: cd 40 int $0x40 37e: c3 ret 0000037f <sbrk>: SYSCALL(sbrk) 37f: b8 0c 00 00 00 mov $0xc,%eax 384: cd 40 int $0x40 386: c3 ret 00000387 <sleep>: SYSCALL(sleep) 387: b8 0d 00 00 00 mov $0xd,%eax 38c: cd 40 int $0x40 38e: c3 ret 0000038f <uptime>: SYSCALL(uptime) 38f: b8 0e 00 00 00 mov $0xe,%eax 394: cd 40 int $0x40 396: c3 ret 00000397 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 397: 55 push %ebp 398: 89 e5 mov %esp,%ebp 39a: 83 ec 18 sub $0x18,%esp 39d: 8b 45 0c mov 0xc(%ebp),%eax 3a0: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 3a3: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 3aa: 00 3ab: 8d 45 f4 lea -0xc(%ebp),%eax 3ae: 89 44 24 04 mov %eax,0x4(%esp) 3b2: 8b 45 08 mov 0x8(%ebp),%eax 3b5: 89 04 24 mov %eax,(%esp) 3b8: e8 5a ff ff ff call 317 <write> } 3bd: c9 leave 3be: c3 ret 000003bf <printint>: static void printint(int fd, int xx, int base, int sgn) { 3bf: 55 push %ebp 3c0: 89 e5 mov %esp,%ebp 3c2: 56 push %esi 3c3: 53 push %ebx 3c4: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 3c7: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 3ce: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 3d2: 74 17 je 3eb <printint+0x2c> 3d4: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 3d8: 79 11 jns 3eb <printint+0x2c> neg = 1; 3da: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 3e1: 8b 45 0c mov 0xc(%ebp),%eax 3e4: f7 d8 neg %eax 3e6: 89 45 ec mov %eax,-0x14(%ebp) 3e9: eb 06 jmp 3f1 <printint+0x32> } else { x = xx; 3eb: 8b 45 0c mov 0xc(%ebp),%eax 3ee: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 3f1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 3f8: 8b 4d f4 mov -0xc(%ebp),%ecx 3fb: 8d 41 01 lea 0x1(%ecx),%eax 3fe: 89 45 f4 mov %eax,-0xc(%ebp) 401: 8b 5d 10 mov 0x10(%ebp),%ebx 404: 8b 45 ec mov -0x14(%ebp),%eax 407: ba 00 00 00 00 mov $0x0,%edx 40c: f7 f3 div %ebx 40e: 89 d0 mov %edx,%eax 410: 0f b6 80 bc 0a 00 00 movzbl 0xabc(%eax),%eax 417: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 41b: 8b 75 10 mov 0x10(%ebp),%esi 41e: 8b 45 ec mov -0x14(%ebp),%eax 421: ba 00 00 00 00 mov $0x0,%edx 426: f7 f6 div %esi 428: 89 45 ec mov %eax,-0x14(%ebp) 42b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 42f: 75 c7 jne 3f8 <printint+0x39> if(neg) 431: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 435: 74 10 je 447 <printint+0x88> buf[i++] = '-'; 437: 8b 45 f4 mov -0xc(%ebp),%eax 43a: 8d 50 01 lea 0x1(%eax),%edx 43d: 89 55 f4 mov %edx,-0xc(%ebp) 440: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 445: eb 1f jmp 466 <printint+0xa7> 447: eb 1d jmp 466 <printint+0xa7> putc(fd, buf[i]); 449: 8d 55 dc lea -0x24(%ebp),%edx 44c: 8b 45 f4 mov -0xc(%ebp),%eax 44f: 01 d0 add %edx,%eax 451: 0f b6 00 movzbl (%eax),%eax 454: 0f be c0 movsbl %al,%eax 457: 89 44 24 04 mov %eax,0x4(%esp) 45b: 8b 45 08 mov 0x8(%ebp),%eax 45e: 89 04 24 mov %eax,(%esp) 461: e8 31 ff ff ff call 397 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 466: 83 6d f4 01 subl $0x1,-0xc(%ebp) 46a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 46e: 79 d9 jns 449 <printint+0x8a> putc(fd, buf[i]); } 470: 83 c4 30 add $0x30,%esp 473: 5b pop %ebx 474: 5e pop %esi 475: 5d pop %ebp 476: c3 ret 00000477 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 477: 55 push %ebp 478: 89 e5 mov %esp,%ebp 47a: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 47d: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 484: 8d 45 0c lea 0xc(%ebp),%eax 487: 83 c0 04 add $0x4,%eax 48a: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 48d: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 494: e9 7c 01 00 00 jmp 615 <printf+0x19e> c = fmt[i] & 0xff; 499: 8b 55 0c mov 0xc(%ebp),%edx 49c: 8b 45 f0 mov -0x10(%ebp),%eax 49f: 01 d0 add %edx,%eax 4a1: 0f b6 00 movzbl (%eax),%eax 4a4: 0f be c0 movsbl %al,%eax 4a7: 25 ff 00 00 00 and $0xff,%eax 4ac: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 4af: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 4b3: 75 2c jne 4e1 <printf+0x6a> if(c == '%'){ 4b5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 4b9: 75 0c jne 4c7 <printf+0x50> state = '%'; 4bb: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 4c2: e9 4a 01 00 00 jmp 611 <printf+0x19a> } else { putc(fd, c); 4c7: 8b 45 e4 mov -0x1c(%ebp),%eax 4ca: 0f be c0 movsbl %al,%eax 4cd: 89 44 24 04 mov %eax,0x4(%esp) 4d1: 8b 45 08 mov 0x8(%ebp),%eax 4d4: 89 04 24 mov %eax,(%esp) 4d7: e8 bb fe ff ff call 397 <putc> 4dc: e9 30 01 00 00 jmp 611 <printf+0x19a> } } else if(state == '%'){ 4e1: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 4e5: 0f 85 26 01 00 00 jne 611 <printf+0x19a> if(c == 'd'){ 4eb: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 4ef: 75 2d jne 51e <printf+0xa7> printint(fd, *ap, 10, 1); 4f1: 8b 45 e8 mov -0x18(%ebp),%eax 4f4: 8b 00 mov (%eax),%eax 4f6: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 4fd: 00 4fe: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 505: 00 506: 89 44 24 04 mov %eax,0x4(%esp) 50a: 8b 45 08 mov 0x8(%ebp),%eax 50d: 89 04 24 mov %eax,(%esp) 510: e8 aa fe ff ff call 3bf <printint> ap++; 515: 83 45 e8 04 addl $0x4,-0x18(%ebp) 519: e9 ec 00 00 00 jmp 60a <printf+0x193> } else if(c == 'x' || c == 'p'){ 51e: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 522: 74 06 je 52a <printf+0xb3> 524: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 528: 75 2d jne 557 <printf+0xe0> printint(fd, *ap, 16, 0); 52a: 8b 45 e8 mov -0x18(%ebp),%eax 52d: 8b 00 mov (%eax),%eax 52f: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 536: 00 537: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 53e: 00 53f: 89 44 24 04 mov %eax,0x4(%esp) 543: 8b 45 08 mov 0x8(%ebp),%eax 546: 89 04 24 mov %eax,(%esp) 549: e8 71 fe ff ff call 3bf <printint> ap++; 54e: 83 45 e8 04 addl $0x4,-0x18(%ebp) 552: e9 b3 00 00 00 jmp 60a <printf+0x193> } else if(c == 's'){ 557: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 55b: 75 45 jne 5a2 <printf+0x12b> s = (char*)*ap; 55d: 8b 45 e8 mov -0x18(%ebp),%eax 560: 8b 00 mov (%eax),%eax 562: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 565: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 569: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 56d: 75 09 jne 578 <printf+0x101> s = "(null)"; 56f: c7 45 f4 70 08 00 00 movl $0x870,-0xc(%ebp) while(*s != 0){ 576: eb 1e jmp 596 <printf+0x11f> 578: eb 1c jmp 596 <printf+0x11f> putc(fd, *s); 57a: 8b 45 f4 mov -0xc(%ebp),%eax 57d: 0f b6 00 movzbl (%eax),%eax 580: 0f be c0 movsbl %al,%eax 583: 89 44 24 04 mov %eax,0x4(%esp) 587: 8b 45 08 mov 0x8(%ebp),%eax 58a: 89 04 24 mov %eax,(%esp) 58d: e8 05 fe ff ff call 397 <putc> s++; 592: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 596: 8b 45 f4 mov -0xc(%ebp),%eax 599: 0f b6 00 movzbl (%eax),%eax 59c: 84 c0 test %al,%al 59e: 75 da jne 57a <printf+0x103> 5a0: eb 68 jmp 60a <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 5a2: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 5a6: 75 1d jne 5c5 <printf+0x14e> putc(fd, *ap); 5a8: 8b 45 e8 mov -0x18(%ebp),%eax 5ab: 8b 00 mov (%eax),%eax 5ad: 0f be c0 movsbl %al,%eax 5b0: 89 44 24 04 mov %eax,0x4(%esp) 5b4: 8b 45 08 mov 0x8(%ebp),%eax 5b7: 89 04 24 mov %eax,(%esp) 5ba: e8 d8 fd ff ff call 397 <putc> ap++; 5bf: 83 45 e8 04 addl $0x4,-0x18(%ebp) 5c3: eb 45 jmp 60a <printf+0x193> } else if(c == '%'){ 5c5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 5c9: 75 17 jne 5e2 <printf+0x16b> putc(fd, c); 5cb: 8b 45 e4 mov -0x1c(%ebp),%eax 5ce: 0f be c0 movsbl %al,%eax 5d1: 89 44 24 04 mov %eax,0x4(%esp) 5d5: 8b 45 08 mov 0x8(%ebp),%eax 5d8: 89 04 24 mov %eax,(%esp) 5db: e8 b7 fd ff ff call 397 <putc> 5e0: eb 28 jmp 60a <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 5e2: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 5e9: 00 5ea: 8b 45 08 mov 0x8(%ebp),%eax 5ed: 89 04 24 mov %eax,(%esp) 5f0: e8 a2 fd ff ff call 397 <putc> putc(fd, c); 5f5: 8b 45 e4 mov -0x1c(%ebp),%eax 5f8: 0f be c0 movsbl %al,%eax 5fb: 89 44 24 04 mov %eax,0x4(%esp) 5ff: 8b 45 08 mov 0x8(%ebp),%eax 602: 89 04 24 mov %eax,(%esp) 605: e8 8d fd ff ff call 397 <putc> } state = 0; 60a: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 611: 83 45 f0 01 addl $0x1,-0x10(%ebp) 615: 8b 55 0c mov 0xc(%ebp),%edx 618: 8b 45 f0 mov -0x10(%ebp),%eax 61b: 01 d0 add %edx,%eax 61d: 0f b6 00 movzbl (%eax),%eax 620: 84 c0 test %al,%al 622: 0f 85 71 fe ff ff jne 499 <printf+0x22> putc(fd, c); } state = 0; } } } 628: c9 leave 629: c3 ret 0000062a <free>: static Header base; static Header *freep; void free(void *ap) { 62a: 55 push %ebp 62b: 89 e5 mov %esp,%ebp 62d: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 630: 8b 45 08 mov 0x8(%ebp),%eax 633: 83 e8 08 sub $0x8,%eax 636: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 639: a1 d8 0a 00 00 mov 0xad8,%eax 63e: 89 45 fc mov %eax,-0x4(%ebp) 641: eb 24 jmp 667 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 643: 8b 45 fc mov -0x4(%ebp),%eax 646: 8b 00 mov (%eax),%eax 648: 3b 45 fc cmp -0x4(%ebp),%eax 64b: 77 12 ja 65f <free+0x35> 64d: 8b 45 f8 mov -0x8(%ebp),%eax 650: 3b 45 fc cmp -0x4(%ebp),%eax 653: 77 24 ja 679 <free+0x4f> 655: 8b 45 fc mov -0x4(%ebp),%eax 658: 8b 00 mov (%eax),%eax 65a: 3b 45 f8 cmp -0x8(%ebp),%eax 65d: 77 1a ja 679 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 65f: 8b 45 fc mov -0x4(%ebp),%eax 662: 8b 00 mov (%eax),%eax 664: 89 45 fc mov %eax,-0x4(%ebp) 667: 8b 45 f8 mov -0x8(%ebp),%eax 66a: 3b 45 fc cmp -0x4(%ebp),%eax 66d: 76 d4 jbe 643 <free+0x19> 66f: 8b 45 fc mov -0x4(%ebp),%eax 672: 8b 00 mov (%eax),%eax 674: 3b 45 f8 cmp -0x8(%ebp),%eax 677: 76 ca jbe 643 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 679: 8b 45 f8 mov -0x8(%ebp),%eax 67c: 8b 40 04 mov 0x4(%eax),%eax 67f: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 686: 8b 45 f8 mov -0x8(%ebp),%eax 689: 01 c2 add %eax,%edx 68b: 8b 45 fc mov -0x4(%ebp),%eax 68e: 8b 00 mov (%eax),%eax 690: 39 c2 cmp %eax,%edx 692: 75 24 jne 6b8 <free+0x8e> bp->s.size += p->s.ptr->s.size; 694: 8b 45 f8 mov -0x8(%ebp),%eax 697: 8b 50 04 mov 0x4(%eax),%edx 69a: 8b 45 fc mov -0x4(%ebp),%eax 69d: 8b 00 mov (%eax),%eax 69f: 8b 40 04 mov 0x4(%eax),%eax 6a2: 01 c2 add %eax,%edx 6a4: 8b 45 f8 mov -0x8(%ebp),%eax 6a7: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 6aa: 8b 45 fc mov -0x4(%ebp),%eax 6ad: 8b 00 mov (%eax),%eax 6af: 8b 10 mov (%eax),%edx 6b1: 8b 45 f8 mov -0x8(%ebp),%eax 6b4: 89 10 mov %edx,(%eax) 6b6: eb 0a jmp 6c2 <free+0x98> } else bp->s.ptr = p->s.ptr; 6b8: 8b 45 fc mov -0x4(%ebp),%eax 6bb: 8b 10 mov (%eax),%edx 6bd: 8b 45 f8 mov -0x8(%ebp),%eax 6c0: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 6c2: 8b 45 fc mov -0x4(%ebp),%eax 6c5: 8b 40 04 mov 0x4(%eax),%eax 6c8: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 6cf: 8b 45 fc mov -0x4(%ebp),%eax 6d2: 01 d0 add %edx,%eax 6d4: 3b 45 f8 cmp -0x8(%ebp),%eax 6d7: 75 20 jne 6f9 <free+0xcf> p->s.size += bp->s.size; 6d9: 8b 45 fc mov -0x4(%ebp),%eax 6dc: 8b 50 04 mov 0x4(%eax),%edx 6df: 8b 45 f8 mov -0x8(%ebp),%eax 6e2: 8b 40 04 mov 0x4(%eax),%eax 6e5: 01 c2 add %eax,%edx 6e7: 8b 45 fc mov -0x4(%ebp),%eax 6ea: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 6ed: 8b 45 f8 mov -0x8(%ebp),%eax 6f0: 8b 10 mov (%eax),%edx 6f2: 8b 45 fc mov -0x4(%ebp),%eax 6f5: 89 10 mov %edx,(%eax) 6f7: eb 08 jmp 701 <free+0xd7> } else p->s.ptr = bp; 6f9: 8b 45 fc mov -0x4(%ebp),%eax 6fc: 8b 55 f8 mov -0x8(%ebp),%edx 6ff: 89 10 mov %edx,(%eax) freep = p; 701: 8b 45 fc mov -0x4(%ebp),%eax 704: a3 d8 0a 00 00 mov %eax,0xad8 } 709: c9 leave 70a: c3 ret 0000070b <morecore>: static Header* morecore(uint nu) { 70b: 55 push %ebp 70c: 89 e5 mov %esp,%ebp 70e: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 711: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 718: 77 07 ja 721 <morecore+0x16> nu = 4096; 71a: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 721: 8b 45 08 mov 0x8(%ebp),%eax 724: c1 e0 03 shl $0x3,%eax 727: 89 04 24 mov %eax,(%esp) 72a: e8 50 fc ff ff call 37f <sbrk> 72f: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 732: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 736: 75 07 jne 73f <morecore+0x34> return 0; 738: b8 00 00 00 00 mov $0x0,%eax 73d: eb 22 jmp 761 <morecore+0x56> hp = (Header*)p; 73f: 8b 45 f4 mov -0xc(%ebp),%eax 742: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 745: 8b 45 f0 mov -0x10(%ebp),%eax 748: 8b 55 08 mov 0x8(%ebp),%edx 74b: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 74e: 8b 45 f0 mov -0x10(%ebp),%eax 751: 83 c0 08 add $0x8,%eax 754: 89 04 24 mov %eax,(%esp) 757: e8 ce fe ff ff call 62a <free> return freep; 75c: a1 d8 0a 00 00 mov 0xad8,%eax } 761: c9 leave 762: c3 ret 00000763 <malloc>: void* malloc(uint nbytes) { 763: 55 push %ebp 764: 89 e5 mov %esp,%ebp 766: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 769: 8b 45 08 mov 0x8(%ebp),%eax 76c: 83 c0 07 add $0x7,%eax 76f: c1 e8 03 shr $0x3,%eax 772: 83 c0 01 add $0x1,%eax 775: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 778: a1 d8 0a 00 00 mov 0xad8,%eax 77d: 89 45 f0 mov %eax,-0x10(%ebp) 780: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 784: 75 23 jne 7a9 <malloc+0x46> base.s.ptr = freep = prevp = &base; 786: c7 45 f0 d0 0a 00 00 movl $0xad0,-0x10(%ebp) 78d: 8b 45 f0 mov -0x10(%ebp),%eax 790: a3 d8 0a 00 00 mov %eax,0xad8 795: a1 d8 0a 00 00 mov 0xad8,%eax 79a: a3 d0 0a 00 00 mov %eax,0xad0 base.s.size = 0; 79f: c7 05 d4 0a 00 00 00 movl $0x0,0xad4 7a6: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7a9: 8b 45 f0 mov -0x10(%ebp),%eax 7ac: 8b 00 mov (%eax),%eax 7ae: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 7b1: 8b 45 f4 mov -0xc(%ebp),%eax 7b4: 8b 40 04 mov 0x4(%eax),%eax 7b7: 3b 45 ec cmp -0x14(%ebp),%eax 7ba: 72 4d jb 809 <malloc+0xa6> if(p->s.size == nunits) 7bc: 8b 45 f4 mov -0xc(%ebp),%eax 7bf: 8b 40 04 mov 0x4(%eax),%eax 7c2: 3b 45 ec cmp -0x14(%ebp),%eax 7c5: 75 0c jne 7d3 <malloc+0x70> prevp->s.ptr = p->s.ptr; 7c7: 8b 45 f4 mov -0xc(%ebp),%eax 7ca: 8b 10 mov (%eax),%edx 7cc: 8b 45 f0 mov -0x10(%ebp),%eax 7cf: 89 10 mov %edx,(%eax) 7d1: eb 26 jmp 7f9 <malloc+0x96> else { p->s.size -= nunits; 7d3: 8b 45 f4 mov -0xc(%ebp),%eax 7d6: 8b 40 04 mov 0x4(%eax),%eax 7d9: 2b 45 ec sub -0x14(%ebp),%eax 7dc: 89 c2 mov %eax,%edx 7de: 8b 45 f4 mov -0xc(%ebp),%eax 7e1: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 7e4: 8b 45 f4 mov -0xc(%ebp),%eax 7e7: 8b 40 04 mov 0x4(%eax),%eax 7ea: c1 e0 03 shl $0x3,%eax 7ed: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 7f0: 8b 45 f4 mov -0xc(%ebp),%eax 7f3: 8b 55 ec mov -0x14(%ebp),%edx 7f6: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 7f9: 8b 45 f0 mov -0x10(%ebp),%eax 7fc: a3 d8 0a 00 00 mov %eax,0xad8 return (void*)(p + 1); 801: 8b 45 f4 mov -0xc(%ebp),%eax 804: 83 c0 08 add $0x8,%eax 807: eb 38 jmp 841 <malloc+0xde> } if(p == freep) 809: a1 d8 0a 00 00 mov 0xad8,%eax 80e: 39 45 f4 cmp %eax,-0xc(%ebp) 811: 75 1b jne 82e <malloc+0xcb> if((p = morecore(nunits)) == 0) 813: 8b 45 ec mov -0x14(%ebp),%eax 816: 89 04 24 mov %eax,(%esp) 819: e8 ed fe ff ff call 70b <morecore> 81e: 89 45 f4 mov %eax,-0xc(%ebp) 821: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 825: 75 07 jne 82e <malloc+0xcb> return 0; 827: b8 00 00 00 00 mov $0x0,%eax 82c: eb 13 jmp 841 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 82e: 8b 45 f4 mov -0xc(%ebp),%eax 831: 89 45 f0 mov %eax,-0x10(%ebp) 834: 8b 45 f4 mov -0xc(%ebp),%eax 837: 8b 00 mov (%eax),%eax 839: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 83c: e9 70 ff ff ff jmp 7b1 <malloc+0x4e> } 841: c9 leave 842: c3 ret
src/core/asm/x86/prim_inst.asm
Hiroshi123/bin_tools
0
243915
<gh_stars>0 default rel section .text global _fetch extern _load_base extern _store_base extern _fetch_base extern _add_base extern _sub_base extern _and_base extern _or_base extern _xor_base extern _assign_base extern _check_on_iat extern _find_f_addr global __fetch8 global _fetch global _fetch8 global _fetch16 global _fetch32 global _fetch64 global _fetch_no64 global _load global _load8 global _load16 global _load32 global _load64 global _store global _store8 global _store16 global _store32 global _store64 global _assign global _assign8 global _assign16 global _assign32 global _assign64 global _add global _add8 global _add16 global _add32 global _add64 global _sub global _sub8 global _sub16 global _sub32 global _sub64 global _test global _not global _neg global _mul global _imul global _div global _idiv global _and global _and8 global _and16 global _and32 global _and64 global _or global _or8 global _or16 global _or32 global _or64 global _xor global _xor8 global _xor16 global _xor32 global _xor64 global _cmp global _cmp8 global _cmp16 global _cmp32 global _cmp64 global _rol global _ror global _shl global _shr global _inc global _dec global _call global _jmp global _push global _xchg global _shl0 global _shl1 global _shl2 global _shl3 global _shl4 global _shl5 global _shl6 global _shl7 global _shl8 extern _rax extern _rcx extern _rdx extern _rbx extern _rsp extern _rbp extern _rsi extern _rdi extern _r8 extern _r9 extern _r10 extern _r11 extern _r12 extern _r13 extern _r14 extern _r15 extern _eflags extern _rip extern _debug._inst extern _debug._offset extern _context._dflag extern _context._rex extern _context._arg1 extern _context._arg2 extern _context._rm extern _context._reg extern _context._res extern print extern get_diff_host_guest_addr extern _get_host_addr_from_guest extern _context._internal_arg1 extern _gen_push extern _op_shl_base ;; extern _add_edge %include "constant.asm" ;;; this fetch 8 does not increment instruction pointer aiming for debugging purpose. __fetch8: push rbp mov qword [_context._res],0x00 mov rax,[_rip] call _get_host_addr_from_guest mov al,[rax] mov [_context._res],al ;; for debugging lea rdx,[_debug._inst] add dl,[_debug._offset] mov byte [rdx],al add byte [_debug._offset],1 ;; no incrementation pop rbp ret _fetch_no64: mov ax,0 mov al,[_context._dflag] lea rdx,[_fetch_base] cmp al,0x18 jne _fetch_no64.b1 sub al,0x8 .b1: add dx,ax call [rdx] ret _fetch: mov ax,0 mov al,[_context._dflag] lea rdx,[_fetch_base] add dx,ax call [rdx] ret _fetch8: mov qword [_context._res],0x00 mov rax,[_rip] ;; call _get_host_addr_from_guest mov al,[rax] mov [_context._res],al ;; for debugging ;; lea rdx,[_debug._inst] ;; add dl,[_debug._offset] ;; mov [rdx],al ;; add byte [_debug._offset],1 ;; increment add dword [_rip],1 ret _fetch16: ;; push rbp mov qword [_context._res],0x00 mov rax,[_rip] ;; call _get_host_addr_from_guest mov ax,[rax] mov [_context._res],ax ;; for debugging ;; lea rdx,[_debug._inst] ;; add dl,[_debug._offset] ;; mov [rdx],ax ;; add byte [_debug._offset],2 ;; add dword [_rip],2 ;; pop rbp ret _fetch32: ;; push rbp mov qword [_context._res],0x00 mov rax,[_rip] ;; call _get_host_addr_from_guest mov eax,[rax] mov [_context._res],eax ;; for debugging ;; lea rdx,[_debug._inst] ;; add dl,[_debug._offset] ;; mov [rdx],eax ;; add byte [_debug._offset],4 ;; add dword [_rip],4 ;; pop rbp ret _fetch64: mov qword [_context._res],0x00 mov rax,[_rip] ;; call _get_host_addr_from_guest mov rax,[rax] mov [_context._res],rax ;; for debugging ;; lea rdx,[_debug._inst] ;; add dl,[_debug._offset] ;; mov [rdx],rax ;; add byte [_debug._offset],8 ;; incrementation add dword [_rip],8 ret ;;; you have _load: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_load_base] add dx,ax call [rdx] pop rbp ret _load8: push rbp mov qword [_context._res],0x00 mov rax,[_context._arg1] call _get_host_addr_from_guest mov dl,[rax] mov [_context._res],dl pop rbp ret _load16: push rbp mov qword [_context._res],0x00 mov rax,[_context._arg1] call _get_host_addr_from_guest mov dx,[rax] mov [_context._res],dx pop rbp ret _load32: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov eax,[rax] mov [_context._res],eax pop rbp ret _load64: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov rax,[rax] mov [_context._res],rax pop rbp ret _store: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_store_base] add dx,ax call [rdx] pop rbp ret _store8: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov dl,[_context._arg2] mov [rax],dl pop rbp ret _store16: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov dx,[_context._arg2] mov [rax],dx pop rbp ret _store32: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov edx,[_context._arg2] mov [rax],edx pop rbp ret _store64: push rbp mov rax,[_context._arg1] call _get_host_addr_from_guest mov rdx,[_context._arg2] mov [rax],rdx pop rbp ret ;;; assign means setting a value on a register. ;; assign is identical with store because ;;; in this virual condition, all registers are put on ;;; on a designated memory. ;;; Nevertheless, the distiguinshment is needed for ;;; measuring the count of two operations. _assign: push rbp mov ax,0 lea rdx,[_assign_base] mov al,[_context._dflag] add dx,ax call [rdx] pop rbp ret _assign8: push rbp mov rcx,0 mov rax,[_context._arg1] mov cl,[_context._arg2] mov [rax],cl pop rbp ret _assign16: push rbp mov rcx,0 mov rax,[_context._arg1] mov cx,[_context._arg2] mov [rax],cx pop rbp ret _assign32: push rbp mov rax,[_context._arg1] mov ecx,[_context._arg2] mov [rax],ecx pop rbp ret _assign64: push rbp mov rax,[_context._arg1] mov rcx,[_context._arg2] mov [rax],rcx pop rbp ret ;;; addition with signed _add: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_add_base] add dx,ax call [rdx] pop rbp ret _add8: mov qword [_context._res],0 mov rax,[_context._arg1] mov bl,[_context._arg2] add al,bl mov [_context._res],rax ;; [_context._res] mov r8,[_context._arg1] call print mov r8,[_context._res] call print ret _add16: mov qword [_context._res],0 mov al,[_context._arg1+6] mov bl,[_context._arg2+6] add al,bl mov [_context._res],ax ret _add32: mov rax,[_context._arg1] mov edx,[_context._arg2] add eax,edx mov [_context._res],rax ret _add64: mov rax,[_context._arg1] mov rdx,[_context._arg2] add rax,rdx mov [_context._res],rax ret _sub: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_sub_base] add dx,ax call [rdx] pop rbp ret _sub8: mov qword [_context._res],0 mov rax,[_context._arg1] mov bl,[_context._arg2] sub al,bl mov [_context._res],rax ret _sub16: ret _sub32: push rbp mov rax,[_context._arg1] mov rdx,[_context._arg2] sub rax,rdx mov [_context._res],rax pop rbp ret _sub64: push rbp mov rax,[_context._arg1] mov rdx,[_context._arg2] sub rax,rdx mov [_context._res],rax pop rbp ret _and: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_and_base] add dx,ax call [rdx] pop rbp ret _and8: ret _and16: ret _and32: mov dword eax,[_context._arg1] mov dword edx,[_context._arg2] and eax,edx mov [_context._res],eax ret _and64: ret _or: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_or_base] add dx,ax call [rdx] pop rbp ret _or8: ret _or16: ret _or32: ret _or64: ret _xor: push rbp mov ax,0 mov al,[_context._dflag] lea rdx,[_xor_base] add dx,ax call [rdx] pop rbp ret ;; push rbp ;; mov rax,[_context._arg1] ;; mov rdx,[_context._arg2] ;; xor rax,rdx ;; mov [_context._res],rax ;; pop rbp ;; ret _xor8: ret _xor16: ret _xor32: ret _xor64: ret _cmp: push rbp mov rax,[_context._arg1] mov rdx,[_context._arg2] ;; sign , overflow , parity , zero , carry ;; carry flag ;; left most bits added. ;; left most bits subtracted. ;; overflow flag is turned on if sub rax,rdx ;; set zero flag if the computed result equals 0 lea r15,[_cmp.done1] cmp eax,0 je _set_zeroflags .done1: mov r8,[_eflags] call print pop rbp ret _cmp8: ret _cmp16: ret _cmp32: ret _cmp64: ret _set_zeroflags: mov qword [_eflags],eflags_zf ;; or qword [_eflags],eflags_zf jmp r15 _update_eflags: mov qword [_eflags],0x00 ret _rol: ret _ror: ret _shr: ret _shl: push rbp mov rax,[_context._arg1] mov rdx,_op_shl_base mov rcx,[_context._arg2] shl rcx,0x03 add rdx,rcx call [rdx] mov [_context._res],rax pop rbp ret _shl0: ret _shl1: shl rax,1 ret _shl2: shl rax,2 ret _shl3: shl rax,3 ret _shl4: shl rax,4 ret _shl5: shl rax,5 ret _shl6: shl rax,6 ret _shl7: shl rax,7 ret _shl8: shl rax,8 ret _test: mov r8,0x66 call print ret _not: mov r8,0xff call print ret _neg: ret _mul: ret _imul: ret _div: ret _idiv: ret _inc: ret _dec: ret _call: push rbp ;; addition of displacement & register is assumed to be set on ;; [_context._arg1] already. ;; you can get the value, and jump on it. mov rax,[_context._res] mov rdi,[_rip] mov rsi,rax ;; call _check_on_iat mov rdi,[_rip] mov rsi,[_context._res] call _find_f_addr ;; mov rdx,[_context._arg2] ;; mov rdi,[_rip] ;; add rdi,rdx ;; ;; bring rdi to calee ;; call _add_edge ;; before adding rax, you need to store rip to be returned on it. ;; mov rdx,[_rip] ;; mov [_rip],rax ;; mov [_context._internal_arg1],rdx ;; call _gen_push pop rbp ret _jmp: ;; before jumping to the value on register, ;; give an event callback. ;; mov rdi,[_context._arg1] ;; call _add_edge mov rax,[_context._arg1] mov [_rip],rax ;; call _check_on_iat mov r8,[_context._arg1] call print mov r8,0x99 call print ret ;;; if you _push: mov rax,[_context._arg1] mov [_context._internal_arg1],rax call _gen_push mov r8,0x99 call print ret _xchg: mov rax,[_context._arg1] mov rax,[rax] mov rdx,[_context._arg2] mov rdx,[rdx] mov [_context._arg1],rdx mov [_context._arg2],rax ret ;; set_eflag _set_eflag:
libsrc/_DEVELOPMENT/target/rc2014/device/lut/z80/l_lut_mulu_64_32x32.asm
Frodevan/z88dk
640
99975
<filename>libsrc/_DEVELOPMENT/target/rc2014/device/lut/z80/l_lut_mulu_64_32x32.asm ; ; feilipu, 2020 March ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ;------------------------------------------------------------------------------ ; ; Using RC2014 LUT Module ; ;------------------------------------------------------------------------------ INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_lut_mulu_64_32x32, l0_lut_mulu_64_32x32 l_lut_mulu_64_32x32: ; multiplication of two 32-bit numbers into a 64-bit product ; ; enter : dehl = 32-bit multiplicand ; dehl'= 32-bit multiplicand ; ; exit : dehl dehl' = 64-bit product ; carry reset ; ; uses : af, bc, de, hl, af', bc', de', hl' ld c,l ld b,h push de exx pop bc push hl exx pop de l0_lut_mulu_64_32x32: ; multiplication of two 32-bit numbers into a 64-bit product ; ; enter : de'de = 32-bit multiplier = x ; bc'bc = 32-bit multiplicand = y ; ; exit : dehl dehl' = 64-bit product ; carry reset ; ; uses : af, bc, de, hl, af', bc', de', hl' ; save material for the byte p7 p6 = x3*y3 + p5 carry exx ; 4 ' ld h,d ; 4 ' ld l,b ; 4 ' push hl ; 10'x3 y3 ; save material for the byte p5 = x3*y2 + x2*y3 + p4 carry ld l,c ; 4 ' push hl ; 11'x3 y2 ld h,b ; 4 ' ld l,e ; 4 ' push hl ; 11'y3 x2 ; save material for the byte p4 = x3*y1 + x2*y2 + x1*y3 + p3 carry ld h,e ; 4 ' ld l,c ; 4 ' push hl ; 11'x2 y2 ld h,d ; 4 ' ld l,b ; 4 ' push hl ; 11'x3 y3 exx ; 4 ld l,b ; 4 ld h,d ; 4 push hl ; 11 x1 y1 ; save material for the byte p3 = x3*y0 + x2*y1 + x1*y2 + x0*y3 + p2 carry push bc ; 11 y1 y0 exx ; 4 ' push de ; 11'x3 x2 push bc ; 11'y3 y2 exx ; 4 push de ; 11 x1 x0 ; save material for the byte p2 = x2*y0 + x0*y2 + x1*y1 + p1 carry ; start of 32_32x32 exx ; 4 ' ld h,e ; 4 ' ld l,c ; 4 ' push hl ; 11'x2 y2 exx ; 4 ld h,e ; 4 ld l,c ; 4 push hl ; 11 x0 y0 ; start of 32_16x16 p1 = x1*y0 + x0*y1 + p0 carry ; p0 = x0*y0 ld h,d ; 4 ld l,b ; 4 push hl ; 11 x1 y1 ld h,e ; 4 ld l,c ; 4 push hl ; 11 x0 y0 ld h,b ; 4 y1 ld l,c ; 4 y0 ;;; MLT HE (xBC) ;;;;;;;;;;;;;;;; y1*x0 ld c,__IO_LUT_OPERAND_LATCH ; 7 operand latch address ld b,h ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H ;;; MLT DL (xBC) ;;;;;;;;;;;;;;;; x1*y0 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D xor a ; 4 zero A add hl,de ; 11 add cross products adc a,a ; 4 capture carry pop de ; 10 restore y0*x0 ;;; MLT DE (xBC) ;;;;;;;;;;;;;;;; y0*x0 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),e ; 12 operand X from A in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D ld b,a ; 4 carry from cross products ld a,d ; 4 add a,l ; 4 ld d,a ; 4 de = final LSW ld l,h ; 4 LSB of MSW from cross products ld h,b ; 4 carry from cross products ex (sp),hl ; 19 restore y1*x1, stack interim p3 p2 ;;; MLT HL (xBC) ;;;;;;;;;;;;;;;; x1*y1 dec c ; 4 operand latch address ld b,h ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H pop bc ; 10 destack interim p3 p2 adc hl,bc ; 15 HL = interim MSW p3 p2 ex de,hl ; 4 DEHL = end of 32_16x16 push de ; 11 stack interim p3 p2 ; continue doing the p2 byte exx ; 4 now we're working in the high order bytes ; DEHL' = end of 32_16x16 pop hl ; 10 destack interim p3 p2 pop de ; 10 x0 y0 ex (sp),hl ; 19 x2 y2, stack interim p3 p2 ;;; MLT HE (xBC) ;;;;;;;;;;;;;;;; x2*y0 ld c,__IO_LUT_OPERAND_LATCH ; 7 operand latch address ld b,h ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H ;;; MLT DL (xBC) ;;;;;;;;;;;;;;;; x0*y2 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D xor a ; 4 add hl,de ; 11 adc a,a ; 4 capture carry p4 pop de ; 10 destack interim p3 p2 add hl,de ; 11 adc a,0 ; 4 capture carry p4 push hl ; 11 exx ; 4 ' pop de ; 10'save p2 in E' exx ; 4 ld l,h ; 4 promote HL p4 p3 ld h,a ; 4 ; start doing the p3 byte pop de ; 10 y3 y2 ex (sp),hl ; 19 x1 x0, stack interim p4 p3 ;;; MLT HE (xBC) ;;;;;;;;;;;;;;;; x1*y2 dec c ; 4 operand latch address ld b,h ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H ;;; MLT DL (xBC) ;;;;;;;;;;;;;;;; y3*x0 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D xor a ; 4 zero A add hl,de ; 11 p4 p3 adc a,a ; 4 p5 pop de ; 10 destack interim p4 p3 add hl,de ; 11 p4 p3 adc a,0 ; 4 p5 pop de ; 10 x3 x2 ex (sp),hl ; 19 y1 y0, stack interim p4 p3 ;;; MLT HE (xBC) ;;;;;;;;;;;;;;;; y1*x2 dec c ; 4 operand latch address ld b,h ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H ;;; MLT DL (xBC) ;;;;;;;;;;;;;;;; x3*y0 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D add hl,de ; 11 p4 p3 adc a,0 ; 4 p5 pop de ; 10 destack interim p4 p3 add hl,de ; 11 p4 p3 adc a,0 ; 4 p5 push hl ; 11 leave final p3 in L exx ; 4 ' pop bc ; 10' ld d,c ; 4 'put final p3 in D exx ; 4 low 32bits in DEHL ld l,h ; 4 prepare HL for next cycle ld h,a ; 4 promote HL p5 p4 ; start doing the p4 byte pop de ; 10 x1 y1 ex (sp),hl ; 19 x3 y3, stack interim p5 p4 ;;; MLT HE (xBC) ;;;;;;;;;;;;;;;; x3*y1 dec c ; 4 operand latch address ld b,h ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H ;;; MLT DL (xBC) ;;;;;;;;;;;;;;;; x1*y3 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D xor a ; 4 zero A add hl,de ; 11 p5 p4 adc a,a ; 4 p6 pop de ; 10 destack interim p5 p4 add hl,de ; 11 p5 p4 adc a,0 ; 7 p6 pop de ; 10 x2 y2 ;;; MLT DE (xBC) ;;;;;;;;;;;;;;;; x2*y2 dec c ; 4 operand latch address ld b,d ; 4 operand Y in B out (c),e ; 12 operand X from E in e,(c) ; 12 result Z LSB to E inc c ; 4 result MSB address in d,(c) ; 12 result Z MSB to D add hl,de ; 11 p5 p4 adc a,0 ; 4 p6 ld e,l ; 4 final p4 byte in E ld l,h ; 4 prepare HL for next cycle ld h,a ; 4 promote HL p6 p5 ; start doing the p5 byte ex (sp),hl ; 19 y3 x2, stack interim p6 p5 ;;; MLT HL (xBC) ;;;;;;;;;;;;;;;; y3*x2 dec c ; 4 operand latch address ld b,h ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H xor a ; 4 zero A pop bc ; 10 destack interim p6 p5 add hl,bc ; 11 p6 p5 adc a,a ; 4 p7 ex (sp),hl ; 19 x3 y2, stack interim p6 p5 ;;; MLT HL (xBC) ;;;;;;;;;;;;;;;; x3*y2 ld c,__IO_LUT_OPERAND_LATCH ; 7 operand latch address ld b,h ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H pop bc ; 10 destack interim p6 p5 add hl,bc ; 4 p6 p5 adc a,0 ; 4 p7 ld d,l ; 4 final p5 byte in D ld l,h ; 4 prepare HL for next cycle ld h,a ; 4 promote HL p7 p6 ; start doing the p6 p7 bytes ex (sp),hl ; 19 x3 y3, stack interim p7 p6 ;;; MLT HL (xBC) ;;;;;;;;;;;;;;;; x3*y3 ld c,__IO_LUT_OPERAND_LATCH ; 7 operand latch address ld b,h ; 4 operand Y in B out (c),l ; 12 operand X from L in l,(c) ; 12 result Z LSB to L inc c ; 4 result MSB address in h,(c) ; 12 result Z MSB to H pop bc ; 10 destack interim p7 p6 add hl,bc ; 4 p7 p6 ex de,hl ; 4 p7 p6 <-> p5 p4 ret ; exit : DEHL DEHL' = 64-bit product
assembly/controlstructures/loop/loop.asm
MosheBerman/logisim-assignments
0
90154
section .text global main main: mov ecx, 10 mov eax, 0 looplabel: add eax, ecx loop looplabel ; Jump back to loop if it is mov eax, 1 mov ebx, 0 int 80h
oeis/091/A091143.asm
neoneye/loda-programs
11
20841
; A091143: Number of Pythagorean triples mod 2^n; i.e., number of solutions to x^2 + y^2 = z^2 mod 2^n. ; Submitted by <NAME> ; 1,4,24,96,448,1792,7680,30720,126976,507904,2064384,8257536,33292288,133169152,534773760,2139095040,8573157376,34292629504,137304735744,549218942976,2197949513728,8791798054912,35175782154240,140703128616960,562881233944576,2251524935778304,9006649498927104,36026597995708416,144110790029344768,576443160117379072,2305807824841605120,9223231299366420480,36893206672442392576,147572826689769570304,590293558558891966464,2361174234235567865856,9444714951340780945408,37778859805363123781632 mov $2,$0 mul $2,2 lpb $2 trn $1,$0 trn $0,1 mul $1,2 add $1,$0 trn $0,1 add $1,1 sub $2,1 lpe mov $0,$1 add $0,1
oeis/139/A139192.asm
neoneye/loda-programs
11
22953
<reponame>neoneye/loda-programs ; A139192: a(n) = (prime(n)! - 4)/4. ; Submitted by <NAME> ; 29,1259,9979199,1556755199,88921857023999,30411275102207999,6463004184721244159999,2210440498434925488635903999999,2055709663544480704431390719999999,3440938272806586261578994895395225599999999,8363131653290951777042515513360187916287999999999,15103815765843458909338783017128499376816127999999999,64655810377792045160741088788402994992299408097279999999999,1068720821015006391074503438347349912422585947091703431167999999999999 add $0,2 seq $0,131491 ; 2*prime(n)!. sub $0,240 div $0,8 add $0,29
data/github.com/thinkingserious/omnifocus-applescripts/1d2f91833467af12e690f19d4eeefe64474712ba/Prepare task completion report.scpt
ajnavarro/language-dataset
9
3272
<filename>data/github.com/thinkingserious/omnifocus-applescripts/1d2f91833467af12e690f19d4eeefe64474712ba/Prepare task completion report.scpt -- This script is based on the code here: http://www.tuaw.com/2013/02/18/applescripting-omnifocus-send-completed-task-report-to-evernot/ -- Prepare a name for the new Evernote note set theNoteName to "OmniFocus Completed Task Report" set theNotebookName to ".Inbox" -- Prompt the user to choose a scope for the report activate set theReportScope to choose from list {"Today", "Yesterday", "This Week", "Last Week", "This Month", "Last Month"} default items {"Yesterday"} with prompt "Generate a report for:" with title theNoteName if theReportScope = false then return set theReportScope to item 1 of theReportScope -- Calculate the task start and end dates, based on the specified scope set theStartDate to current date set hours of theStartDate to 0 set minutes of theStartDate to 0 set seconds of theStartDate to 0 set theEndDate to theStartDate + (23 * hours) + (59 * minutes) + 59 if theReportScope = "Today" then set theDateRange to date string of theStartDate else if theReportScope = "Yesterday" then set theStartDate to theStartDate - 1 * days set theEndDate to theEndDate - 1 * days set theDateRange to date string of theStartDate else if theReportScope = "This Week" then repeat until (weekday of theStartDate) = Sunday set theStartDate to theStartDate - 1 * days end repeat repeat until (weekday of theEndDate) = Saturday set theEndDate to theEndDate + 1 * days end repeat set theDateRange to (date string of theStartDate) & " through " & (date string of theEndDate) else if theReportScope = "Last Week" then set theStartDate to theStartDate - 7 * days set theEndDate to theEndDate - 7 * days repeat until (weekday of theStartDate) = Sunday set theStartDate to theStartDate - 1 * days end repeat repeat until (weekday of theEndDate) = Saturday set theEndDate to theEndDate + 1 * days end repeat set theDateRange to (date string of theStartDate) & " through " & (date string of theEndDate) else if theReportScope = "This Month" then repeat until (day of theStartDate) = 1 set theStartDate to theStartDate - 1 * days end repeat repeat until (month of theEndDate) is not equal to (month of theStartDate) set theEndDate to theEndDate + 1 * days end repeat set theEndDate to theEndDate - 1 * days set theDateRange to (date string of theStartDate) & " through " & (date string of theEndDate) else if theReportScope = "Last Month" then if (month of theStartDate) = January then set (year of theStartDate) to (year of theStartDate) - 1 set (month of theStartDate) to December else set (month of theStartDate) to (month of theStartDate) - 1 end if set month of theEndDate to month of theStartDate set year of theEndDate to year of theStartDate repeat until (day of theStartDate) = 1 set theStartDate to theStartDate - 1 * days end repeat repeat until (month of theEndDate) is not equal to (month of theStartDate) set theEndDate to theEndDate + 1 * days end repeat set theEndDate to theEndDate - 1 * days set theDateRange to (date string of theStartDate) & " through " & (date string of theEndDate) end if -- Begin preparing the task list as HTML set theProgressDetail to "<html><body><h1>Completed Tasks</h1></br><b>" & theDateRange & "</b><br><hr><br>" set theInboxProgressDetail to "<br>" -- Retrieve a list of projects modified within the specified scope set modifiedTasksDetected to false tell application "OmniFocus" tell front document set theModifiedProjects to every flattened project where its modification date is greater than theStartDate -- Loop through any detected projects repeat with a from 1 to length of theModifiedProjects set theCurrentProject to item a of theModifiedProjects -- Retrieve any project tasks modified within the specified scope set theCompletedTasks to (every flattened task of theCurrentProject where its completed = true and completion date is greater than theStartDate and completion date is less than theEndDate and number of tasks = 0) -- Loop through any detected tasks if theCompletedTasks is not equal to {} then set modifiedTasksDetected to true -- Append the project name to the task list set theProgressDetail to theProgressDetail & "<h2>" & name of theCurrentProject & "</h2>" & return & "<br><ul>" repeat with b from 1 to length of theCompletedTasks set theCurrentTask to item b of theCompletedTasks -- Append the tasks's name to the task list set theProgressDetail to theProgressDetail & "<li>" & name of theCurrentTask & "</li>" & return end repeat set theProgressDetail to theProgressDetail & "</ul>" & return end if end repeat -- Include the OmniFocus inbox set theInboxCompletedTasks to (every inbox task where its completed = true and completion date is greater than theStartDate and completion date is less than theEndDate and number of tasks = 0) -- Loop through any detected tasks if theInboxCompletedTasks is not equal to {} then set modifiedTasksDetected to true -- Append the project name to the task list set theInboxProgressDetail to theInboxProgressDetail & "<h2>" & "Inbox" & "</h2>" & return & "<br><ul>" repeat with d from 1 to length of theInboxCompletedTasks -- Append the tasks's name to the task list set theInboxCurrentTask to item d of theInboxCompletedTasks set theInboxProgressDetail to theInboxProgressDetail & "<li>" & name of theInboxCurrentTask & "</li>" & return end repeat set theInboxProgressDetail to theInboxProgressDetail & "</ul>" & return end if end tell end tell set theProgressDetail to theProgressDetail & theInboxProgressDetail & "</body></html>" -- Notify the user if no projects or tasks were found if modifiedTasksDetected = false then display alert "OmniFocus Completed Task Report" message "No modified tasks were found for " & theReportScope & "." return end if -- Create the note in Evernote. tell application "Evernote" activate set theReportDate to do shell script "date +%Y-%m-%d" set theNote to create note notebook theNotebookName title theReportDate & " :: " & theNoteName with html theProgressDetail open note window with theNote end tell
mvemua.adb
SMerrony/dgemua
2
18166
-- MIT License -- Copyright (c) 2021 <NAME> -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. with Ada.Command_Line; with Ada.Containers; with Ada.Containers.Ordered_Sets; with Ada.Exceptions; with Ada.IO_Exceptions; with Ada.Real_Time; use Ada.Real_Time; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Streams.Stream_IO; with Ada.Text_IO; with GNAT.Ctrl_C; with GNAT.OS_Lib; with GNAT.Sockets; with GNAT.String_Split; use GNAT.String_Split; with Interfaces; use Interfaces; with Decoder; with Debug_Logs; use Debug_Logs; with Devices; with Devices.Bus; with Devices.Console; use Devices.Console; with Devices.Disk6061; with Devices.Magtape6026; with DG_Types; use DG_Types; with Processor; with Memory; use Memory; with Memory_Channels; use Memory_Channels; with Simh_Tapes; with Status_Monitor; procedure MVEmuA is Sem_Ver : constant String := "v0.0.0"; Debug_Logging : Boolean := TRUE; Log_Dir : constant String := "logs/"; Console_Port : constant GNAT.Sockets.Port_Type := 10_000; Monitor_Port : constant GNAT.Sockets.Port_Type := 10_001; Receiver : GNAT.Sockets.Socket_Type; Connection : GNAT.Sockets.Socket_Type; Client : GNAT.Sockets.Sock_Addr_Type; Command_Line : Unbounded_String; Command : Unbounded_String; Arg_Num : Positive := 1; Do_Script_Arg : Natural := 0; CPU : Processor.CPU_T; Breakpoints : Processor.BP_Sets.Set; Console_Radix : Number_Base_T := Octal; -- default console I/O number base procedure Do_Command (Cmd : in Unbounded_String); procedure Show_Help is begin Devices.Console.TTOut.Put_String (Dasher_Erase_Page & " " & Dasher_Underline &"SCP-CLI Commands" & Dasher_Normal & " " & Dasher_Dim_On & "MV/Emulator" & Dasher_Dim_Off & Dasher_NL & " . - Display state of CPU" & Dasher_NL & " B # - Boot from device #" & Dasher_NL & " CO - COntinue CPU Processing" & Dasher_NL & " E A <#> | M [addr] | P - Examine/Modify Acc/Memory/PC" & Dasher_NL & " HE - HElp (show this)" & Dasher_NL & " RE - REset the system" & Dasher_NL & " SS - Single Step one instruction" & Dasher_NL & " ST <addr> - STart processing at specified address" & Dasher_NL); Devices.Console.TTOut.Put_String (" " & Dasher_Underline & "Emulator Commands" &Dasher_Normal & Dasher_NL & " ATT <dev> <file> [RW] - ATTach the image file to named device (RO)" & Dasher_NL & " BREAK/NOBREAK <addr> - Set or clear a BREAKpoint" & Dasher_NL & " CHECK <file> - CHECK validity of unattached TAPE image" & Dasher_NL & " CREATE DPF|DSKP <file> - CREATE an empty/unformatted disk image" & Dasher_NL & " DET <dev> - DETach any image file from the device" & Dasher_NL & " DIS <from> <to>|+<#> - DISassemble physical memory range or # from PC" & Dasher_NL & " DO <file> - DO (i.e. run) emulator commands from script <file>" & Dasher_NL & " EXIT - EXIT the emulator" & Dasher_NL & " LOAD <file> - Load ASCII octal file directly into memory" & Dasher_NL & " SET LOGGING ON|OFF - Turn on or off debug logging (logs dumped end of run)" & Dasher_NL & " SHOW BREAK/DEV/LOGGING - SHOW list of BREAKpoints/DEVices configured" & Dasher_NL); end Show_Help; procedure Attach (Command : in Slice_Set) is begin if Slice_Count (Command) < 3 then TTOut.Put_String (Dasher_NL & " *** ATT command requires arguments: <dev> and <image> ***"); return; end if; declare Dev : String := Slice (Command, 2); Image_Name : String := Slice (Command, 3); OK : Boolean; begin if Debug_Logging then Loggers.Debug_Print (Debug_Log, "INFO: Attach called with parms " & Dev & " " & Image_Name); end if; if Dev = "MTB" then Devices.Magtape6026.Drives.Attach (0, Image_Name, OK); if OK then TTOut.Put_String (Dasher_NL & " *** Tape Image Attached ***"); else TTOut.Put_String (Dasher_NL & " *** Could not attach Tape Image ***"); end if; elsif Dev = "DPF" then Devices.Disk6061.Drives.Attach (0, Image_Name, OK); if OK then TTOut.Put_String (Dasher_NL & " *** Disk Image Attached ***"); else TTOut.Put_String (Dasher_NL & " *** Could not attach Disk Image ***"); end if; else TTOut.Put_String (Dasher_NL & " *** Unknown or unimplemented Device for ATT command ***"); end if; end; end Attach; procedure Boot (Command : in Slice_Set) is Dev : Dev_Num_T; begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** B command requires argument: <devicenumber> ***"); return; end if; Dev := Dev_Num_T(String_To_Integer(Slice (Command, 2), Console_Radix)); if not Devices.Bus.Actions.Is_Attached(Dev) then TTOut.Put_String (Dasher_NL & " *** Devices is not ATTached ***"); return; end if; if not Devices.Bus.Actions.Is_Bootable(Dev) then TTOut.Put_String (Dasher_NL & " *** Devices is not Bootable ***"); return; end if; RAM.Init (Debug_Logging); case Dev is when Devices.MTB => Devices.Magtape6026.Drives.Load_TBOOT; Processor.Boot (CPU, Devices.MTB, 10); when Devices.DPF => Devices.Disk6061.Drives.Load_DKBT; Processor.Boot (CPU, Devices.DPF, 10); when others => TTOut.Put_String (Dasher_NL & " *** Booting from that device is not yet implemented ***"); end case; exception when Constraint_Error => TTOut.Put_String (Dasher_NL & " *** Invalid Device Number ***"); end Boot; procedure Break_Clear (Command : in Slice_Set) is BP_Addr : Phys_Addr_T; begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** NOBREAK command requires an address argument ***"); return; end if; BP_Addr := Phys_Addr_T(String_To_Dword (Slice (Command, 2), Console_Radix)); Breakpoints.Exclude (BP_Addr); TTOut.Put_String (Dasher_NL & " *** BREAKpoint cleared ***"); end Break_Clear; procedure Break_Set (Command : in Slice_Set) is BP_Addr : Phys_Addr_T; begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** BREAK command requires an address argument ***"); return; end if; BP_Addr := Phys_Addr_T(String_To_Dword (Slice (Command, 2), Console_Radix)); Breakpoints.Include (BP_Addr); TTOut.Put_String (Dasher_NL & " *** BREAKpoint set ***"); end Break_Set; procedure Check (Command : in Slice_Set) is begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** CHECK command requires argument: <tape_image> ***"); return; end if; TTOut.Put_String (Simh_Tapes.Scan_Image (Slice (Command, 2))); end Check; procedure Dump_Memory_Readable ( Filename : in String) is use Ada.Streams.Stream_IO; Write_File : File_Type; Writer : Stream_Access; Addr : Phys_Addr_T := 0; begin Create (Write_File, Out_File, Filename); Writer := Stream(Write_File); while Addr < Phys_Addr_T(Mem_Size_Words) loop String'Write (Writer, Dword_To_String(Dword_T(Addr), Octal, 12, false) & " " & Dword_To_String(Dword_T(RAM.Read_Word(Addr)), Hex, 4, true) & Dasher_NL); Addr := Addr + 1; end loop; end; procedure Clean_Exit is begin TTOut.Put_String (Dasher_NL & " *** MV/Emulator stopping at user request ***" ); Debug_Logs.Loggers.Debug_Logs_Dump (Log_Dir); Dump_Memory_Readable ("mvemua.dmp"); GNAT.OS_Lib.OS_Exit (0); end Clean_Exit; procedure Create_Blank (Command : in Slice_Set) is OK : Boolean; begin if Slice_Count (Command) < 3 then TTOut.Put_String (Dasher_NL & " *** CREATE command requires arguments: DPF and <filename> ***"); return; end if; if Slice (Command, 2) = "DPF" then TTOut.Put_String (Dasher_NL & "Attempting to CREATE new empty DPF-type disk image, please wait..."); Devices.Disk6061.Create_Blank(Slice(Command,3), OK); if OK then TTOut.Put_String (Dasher_NL & "Empty MV/Em DPF-type disk image created"); else TTOut.Put_String (Dasher_NL & " *** Error: could not create empty disk image ***"); end if; end if; end Create_Blank; procedure Disassemble (Command : in Slice_Set) is Low_Addr, High_Addr : Phys_Addr_T; begin if Slice_Count (Command) < 3 then TTOut.Put_String (Dasher_NL & " *** DIS command requires two address arguments ***"); return; end if; Low_Addr := Phys_Addr_T(String_To_Dword (Slice (Command, 2), Console_Radix)); High_Addr := Phys_Addr_T(String_To_Dword (Slice (Command, 3), Console_Radix)); TTOut.Put_String (Processor.Disassemble_Range(Low_Addr, High_Addr, Console_Radix)); end Disassemble; procedure Do_Script (Command : in Slice_Set) is use Ada.Text_IO; Do_File : File_Type; Script_Line : Unbounded_String; begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** DO command requires argument: <script_file> ***"); return; end if; Open (Do_File, In_File, Slice (Command, 2)); while not End_Of_File (Do_File) loop Script_Line := To_Unbounded_String (Get_Line (Do_File)); if Ada.Strings.Unbounded.Element(Script_Line, 1) /= '#' then TTOut.Put_String (Dasher_NL & To_String (Script_Line)); Do_Command (Script_Line); end if; end loop; Close (Do_File); exception when Name_Error => TTOut.Put_String (Dasher_NL & " *** DO command script cannot be opened ***"); end Do_Script; procedure Run is I_Counts : Processor.Instr_Count_T; I_Count : Unsigned_64; Start_Time : Time; Elapsed : Time_Span; begin Processor.Prepare_For_Running (CPU); SCP_Handler.Set_SCP_IO(false); Start_Time := Clock; Processor.Run (CPU, Debug_Logging, Console_Radix, Breakpoints, I_Counts); Elapsed := Clock - Start_Time; I_Count := Processor.Get_Instruction_Count (CPU); SCP_Handler.Set_SCP_IO(true); TTOut.Put_String (Dasher_NL & " *** MV/Emua executed " & Unsigned_64'Image(I_Count) & " instructions in" & Duration'Image(To_Duration(Elapsed)) & " seconds ***"); Ada.Text_IO.Put_Line ("Instruction Execution Count by Mnemonic"); for I in I_Counts'Range loop if I_Counts(I) > 0 then Ada.Text_IO.Put(I'Image & ASCII.HT & I_Counts(I)'Image & Dasher_NL); end if; end loop; exception when others => Elapsed := Clock - Start_Time; I_Count := Processor.Get_Instruction_Count (CPU); SCP_Handler.Set_SCP_IO(true); TTOut.Put_String (Dasher_NL & " *** MV/Emua executed " & Unsigned_64'Image(I_Count) & " instructions in" & Duration'Image(To_Duration(Elapsed)) & " seconds ***"); Ada.Text_IO.Put_Line ("Instruction Execution Count by Mnemonic"); for I in I_Counts'Range loop if I_Counts(I) > 0 then Ada.Text_IO.Put(I'Image & ASCII.HT & I_Counts(I)'Image & Dasher_NL); end if; end loop; raise; end run; procedure Set (Command : in Slice_Set) is begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** SET command requires 2 arguments ***"); return; end if; declare use Ada.Containers; What : String := Slice (Command, 2); Set_To : String := Slice (Command, 3); begin if What = "LOGGING" then if Set_To = "ON" then Debug_Logging := true; TTOut.Put_String (Dasher_NL & " *** Logging turned on, CPU will run slow ***"); elsif Set_To = "OFF" then Debug_Logging := false; TTOut.Put_String (Dasher_NL & " *** Logging turned off ***"); else TTOut.Put_String (Dasher_NL & " *** Value must be 'ON' or 'OFF' ***"); end if; -- TODO Add calls here when new devices are added... Processor.Set_Debug_Logging(CPU, Debug_Logging); BMC_DCH.Set_Logging(Debug_Logging); Devices.Disk6061.Drives.Set_Logging (Debug_Logging); else TTOut.Put_String (Dasher_NL & " *** Unknown or Unimplemented SET command"); end if; end; end Set; procedure Show (Command : in Slice_Set) is begin if Slice_Count (Command) < 2 then TTOut.Put_String (Dasher_NL & " *** SHOW command requires argument: BREAK|DEV|LOGGING ***"); return; end if; declare use Ada.Containers; What : String := Slice (Command, 2); begin if What = "DEV" then TTOut.Put_String (Dasher_NL & Devices.Bus.Actions.Get_Printable_Device_List); elsif What = "BREAK" then if Breakpoints.Length = 0 then TTOut.Put_String (Dasher_NL & " *** No Breakpoints are set ***"); else TTOut.Put_String (Dasher_NL & " *** Breakpoints: "); for BP of Breakpoints loop TTOut.Put_String (Dword_To_String(Dword_T(BP), Console_Radix, 12, false)); end loop; end if; elsif What = "LOGGING" then TTOut.Put_String (Dasher_NL & " *** Logging is turned "); if Debug_Logging then TTOut.Put_String ("ON ***"); else TTOut.Put_String ("OFF ***"); end if; else TTOut.Put_String (Dasher_NL & " *** Unknown or Unimplemented SHOW command"); end if; end; end Show; procedure Single_Step is Disass : Unbounded_String; begin TTOut.Put_String (Dasher_NL & Processor.Get_Compact_Status(CPU, Console_Radix)); Processor.Single_Step(CPU, Console_Radix, Disass); TTOut.Put_String (Dasher_NL & To_String(Disass)); TTOut.Put_String (Dasher_NL & Processor.Get_Compact_Status(CPU, Console_Radix)); exception when Error: others => TTOut.Put_String (Dasher_NL & Ada.Exceptions.Exception_Message(Error)); end Single_Step; procedure Do_Command (Cmd : in Unbounded_String) is Words : Slice_Set; begin Create (Words, To_String(Cmd), " ", Multiple); Command := To_Unbounded_String(Slice (Words, 1)); -- SCP-like commands... if Command = "." then TTOut.Put_String (Dasher_NL & Processor.Get_Compact_Status(CPU, Console_Radix)); elsif Command = "B" then Boot (Words); elsif Command = "CO" then Run; elsif Command = "HE" then Show_Help; elsif Command = "SS" then Single_Step; -- enulator commands elsif Command = "ATT" then Attach (Words); elsif Command = "BREAK" then Break_Set (Words); elsif Command = "CHECK" then Check (Words); elsif Command = "CREATE" then Create_Blank (Words); elsif Command = "DIS" then Disassemble (Words); elsif Command = "DO" then Do_Script (Words); elsif Command = "exit" or Command = "EXIT" or command = "quit" or command = "QUIT" then Clean_Exit; elsif Command = "NOBREAK" then Break_Clear (Words); elsif Command = "SET" then Set (Words); elsif Command = "SHOW" or Command = "SHO" or Command = "SH" then Show (Words); else Devices.Console.TTOut.Put_String (Dasher_NL & " *** Unknown SCP-CLI Command ***"); end if; end Do_Command; ---------- -- MAIN -- ---------- begin while Arg_Num <= Ada.Command_Line.Argument_Count loop if Ada.Command_Line.Argument (Arg_num) = "-do" then Arg_Num := Arg_Num + 1; Do_Script_Arg := Arg_Num; elsif Ada.Command_Line.Argument (Arg_num) = "-version" then Ada.Text_IO.Put_Line ("MV/Emua version " & Sem_Ver); GNAT.OS_Lib.OS_Exit (0); end if; Arg_Num := Arg_Num + 1; end loop; GNAT.Ctrl_C.Install_Handler(Clean_Exit'Unrestricted_Access); Ada.Text_IO.Put_Line ("INFO: Will not start until console connects..."); GNAT.Sockets.Create_Socket (Socket => Receiver); GNAT.Sockets.Set_Socket_Option (Socket => Receiver, Level => GNAT.Sockets.Socket_Level, Option => (Name => GNAT.Sockets.Reuse_Address, Enabled => True)); GNAT.Sockets.Bind_Socket (Socket => Receiver, Address => (Family => GNAT.Sockets.Family_Inet, Addr => GNAT.Sockets.Inet_Addr ("127.0.0.1"), Port => Console_Port)); GNAT.Sockets.Listen_Socket (Socket => Receiver); Loggers.Init; loop GNAT.Sockets.Accept_Socket (Server => Receiver, Socket => Connection, Address => Client); Ada.Text_IO.Put_Line ("INFO: Console connected from " & GNAT.Sockets.Image (Client)); -- The console is connected, now we can set up our emulated machine -- Here we are defining the hardware in our virtual machine -- Initially based on a minimally configured MV/10000 Model I... -- One CPU -- Console (TTI/TTO) -- One Tape Drive -- One HDD -- A generous(!) 16MB (8MW) RAM -- NO IACs, LPT or ISC Decoder.Init; Devices.Bus.Actions.Init; CPU := Processor.Make; Status_Monitor.Monitor.Start (Monitor_Port); RAM.Init (Debug_Logging); -- Devices.Bus.Actions.Init; Devices.Bus.Actions.Connect (Devices.BMC); Devices.Bus.Actions.Set_Reset_Proc (Devices.BMC, BMC_DCH.Reset'Access); Devices.Bus.Actions.Connect (Devices.SCP); Devices.Bus.Actions.Connect (Devices.CPU); -- Devices.Bus.Actions.Set_Reset_Proc (Devices.CPU, Processor.Actions.Reset'Access); Devices.Bus.Actions.Connect (Devices.TTO); Devices.Console.TTOut.Init (Connection); Devices.Bus.Actions.Connect (Devices.TTI); Devices.Console.TTIn.Init; Console_Handler.Start (Connection); Devices.Bus.Actions.Connect (Devices.MTB); Devices.Magtape6026.Drives.Init; Devices.Bus.Actions.Connect (Devices.DPF); Devices.Disk6061.Drives.Init (Debug_Logging); -- say hello... Devices.Console.TTOut.Put_Char (ASCII.FF); Devices.Console.TTOut.Put_String (" *** Welcome to the MV/Emulator - Type HE for help ***" & ASCII.LF); -- Handle any DO script - N.B. will not pass here until start-up script is complete... if Do_Script_Arg > 0 then Do_Command (To_Unbounded_String ("DO " & Ada.Command_Line.Argument (Do_Script_Arg))); end if; Processor.Status_Sender.Start (CPU); -- the main SCP/console interaction loop SCP_Handler.Set_SCP_IO (true); loop Devices.Console.TTOut.Put_String (Dasher_NL & "SCP-CLI> "); SCP_Handler.SCP_Get_Line (Command_Line); Ada.Text_IO.Put_Line ("DEBUG: Got SCP command: " & To_String(Command_Line)); Do_Command (Command_Line); end loop; end loop; exception when Error: Processor.CPU_Halt => TTOut.Put_String (Dasher_NL & " *** MV/Emulator stopping due to CPU HALT instruction ***" ); Loggers.Debug_Print (Debug_Log," *** MV/Emulator stopping due to CPU HALT instruction ***" ); Loggers.Debug_Logs_Dump (Log_Dir); GNAT.OS_Lib.OS_Exit (0); when Error: others => Ada.Text_IO.Put_Line("ERROR: " & Ada.Exceptions.Exception_Information(Error)); TTOut.Put_String (Dasher_NL & " *** MV/Emulator stopping due to unhandled error ***" ); -- TTOut.Put_String (Dasher_NL & Ada.Exceptions.Exception_Information(Error)); Loggers.Debug_Print (Debug_Log, "ERROR: " & Ada.Exceptions.Exception_Information(Error)); Loggers.Debug_Logs_Dump (Log_Dir); GNAT.OS_Lib.OS_Exit (0); end MVEmuA;
src/cld/cld.g4
GitMensch/vms-ide
5
1026
grammar cld; fragment NAMESTART: [a-zA-Z$]; fragment NAMEREST: [a-zA-Z$_0-9]; DEFINE: [dD][eE][fF][iI][nN][eE]; IDENT: [iI][dD][eE][nN][tT]; MODULE: [mM][oO][dD][uU][lL][eE]; SYNTAX: [sS][yY][nN][tT][aA][xX]; TYPE: [tT][yY][pP][eE]; VERB: [vV][eE][rR][bB]; NODISALLOWS: [nN][oO][dD][iI][sS][aA][lL][lL][oO][wW][sS]; DISALLOW: [dD][iI][sS][aA][lL][lL][oO][wW]; IMAGE: [iI][mM][aA][gG][eE]; NOPARAMETERS: [nN][oO][pP][aA][rR][aA][mM][eE][tT][eE][rR][sS]; PARAMETER: [pP][aA][rR][aA][mM][eE][tT][eE][rR]; DEFAULT: [dD][eE][fF][aA][uU][lL][tT]; LABEL: [lL][aA][bB][eE][lL]; PROMPT: [pP][rR][oO][mM][pP][tT]; VALUE: [vV][aA][lL][uU][eE]; NOCONCATENATE: [nN][oO][cC][oO][nN][cC][aA][tT][eE][nN][aA][tT][eE]; CONCATENATE: [cC][oO][nN][cC][aA][tT][eE][nN][aA][tT][eE]; LIST: [lL][iI][sS][tT]; REQUIRED: [rR][eE][qQ][uU][iI][rR][eE][dD]; NOQUALIFIERS: [nN][oO][qQ][uU][aA][lL][iI][fF][iI][eE][rR][sS]; QUALIFIER: [qQ][uU][aA][lL][iI][fF][iI][eE][rR]; BATCH: [bB][aA][tT][cC][hH]; NONNEGATABLE: [nN][oO][nN][nN][eE][gG][aA][tT][aA][bB][lL][eE]; NEGATABLE: [nN][eE][gG][aA][tT][aA][bB][lL][eE]; PLACEMENT: [pP][lL][aA][cC][eE][mM][eE][nN][tT]; GLOBAL: [gG][lL][oO][bB][aA][lL]; LOCAL: [lL][oO][cC][aA][lL]; POSITIONAL: [pP][oO][sS][iI][tT][iI][oO][nN][aA][lL]; ROUTINE: [rR][oO][uU][tT][iI][nN][eE]; KEYWORD: [kK][eE][yY][wW][oO][rR][dD]; SYNONYM: [sS][yY][nN][oO][nN][yY][mM]; ANY2: [aA][nN][yY]'2'; NEG: [nN][eE][gG]; NOT: [nN][oO][tT]; AND: [aA][nN][dD]; OR: [oO][rR]; NAME: NAMESTART NAMEREST*; COMMA: ','; EQUAL: '='; P_OPEN: '('; P_CLOSE: ')'; A_OPEN: '<'; A_CLOSE: '>'; DOT: '.'; STRING: '"' ('""'|.)*? '"'; WHITESPACE: (' '|'\t')+ -> channel(HIDDEN); NEWLINE: '\r'? '\n' -> channel(HIDDEN); COMMENT: '!' ~[\r\n]* -> channel(HIDDEN); cldContent: ( define | ident | module )* EOF; define : DEFINE SYNTAX anyName (verbClauseForSyntax (COMMA? verbClauseForSyntax)* )? (COMMA? COMMA)? # defineSyntax | DEFINE TYPE anyName (typeClause (COMMA? typeClause)* )? (COMMA? COMMA)? # defineType | DEFINE VERB anyName (verbClause (COMMA? verbClause)* )? (COMMA? COMMA)? # defineVerb ; anyName : NAME | AND | ANY2 | BATCH | CONCATENATE | DEFAULT | DEFINE | DISALLOW | GLOBAL | IDENT | IMAGE | KEYWORD | LABEL | LIST | LOCAL | MODULE | NEG | NEGATABLE | NOCONCATENATE | NODISALLOWS | NONNEGATABLE | NOPARAMETERS | NOQUALIFIERS | NOT | OR | PARAMETER | PLACEMENT | POSITIONAL | PROMPT | QUALIFIER | REQUIRED | ROUTINE | SYNONYM | SYNTAX | TYPE | VALUE | VERB ; ident : IDENT STRING ; module : MODULE anyName ; verbClauseForSyntax : disallow | image | parameter | qualifier | routine ; disallow : NODISALLOWS | DISALLOW expression ; image : IMAGE STRING ; parameter : NOPARAMETERS | PARAMETER anyName (COMMA? parameterClause)* ; parameterClause : DEFAULT | parameterLabel | parameterPrompt | parameterValue ; parameterValue: VALUE (P_OPEN parameterValueClause (COMMA parameterValueClause)* P_CLOSE)?; parameterLabel: LABEL EQUAL anyName; parameterPrompt: PROMPT EQUAL STRING; parameterValueClause : CONCATENATE | NOCONCATENATE | LIST | REQUIRED | DEFAULT EQUAL STRING | parameterValueClauseType ; parameterValueClauseType: TYPE EQUAL anyName; qualifier : NOQUALIFIERS | QUALIFIER anyName (COMMA? qualifierClause)* ; qualifierClause : DEFAULT | BATCH | qualifierLabel | NEGATABLE | NONNEGATABLE | PLACEMENT EQUAL placementClause | qualifierSyntax | qualifierValue ; qualifierValue: VALUE (P_OPEN qualifierValueClause (COMMA qualifierValueClause)* P_CLOSE)?; qualifierLabel: LABEL EQUAL anyName; qualifierSyntax: SYNTAX EQUAL anyName; placementClause : GLOBAL | LOCAL | POSITIONAL ; qualifierValueClause : LIST | REQUIRED | DEFAULT EQUAL STRING | qualifierValueClauseType ; qualifierValueClauseType: TYPE EQUAL anyName; routine : ROUTINE anyName ; typeClause : KEYWORD anyName (COMMA? keywordClause)* ; keywordClause : DEFAULT | keywordLabel | NEGATABLE | NONNEGATABLE | keywordSyntax | keywordValue ; keywordValue: VALUE (P_OPEN keywordValueClause (COMMA keywordValueClause)* P_CLOSE)?; keywordLabel: LABEL EQUAL anyName; keywordSyntax: SYNTAX EQUAL anyName; keywordValueClause : LIST | REQUIRED | DEFAULT EQUAL STRING | keywordValueClauseType ; keywordValueClauseType: TYPE EQUAL anyName; verbClause : disallow | image | parameter | qualifier | routine | synonym ; synonym : SYNONYM anyName ; expression : NOT expression | expression AND expression | expression OR expression | P_OPEN expression P_CLOSE | ANY2 P_OPEN entity (COMMA entity)+ P_CLOSE | NEG entity | entity ; entity : (A_OPEN defRoot = anyName A_CLOSE )? anyName (DOT anyName)* ;
programs/oeis/184/A184622.asm
karttu/loda
0
89060
; A184622: a(n) = floor(n*r+h), where r=sqrt(2), h=-1/3; complement of A184623. ; 1,2,3,5,6,8,9,10,12,13,15,16,18,19,20,22,23,25,26,27,29,30,32,33,35,36,37,39,40,42,43,44,46,47,49,50,51,53,54,56,57,59,60,61,63,64,66,67,68,70,71,73,74,76,77,78,80,81,83,84,85,87,88,90,91,93,94,95,97,98,100,101,102,104,105,107,108,109,111,112,114,115,117,118,119,121,122,124,125,126,128,129,131,132,134,135,136,138,139,141,142,143,145,146,148,149,150,152,153,155,156,158,159,160,162,163,165,166,167,169,170,172,173,175,176,177,179,180,182,183,184,186,187,189,190,191,193,194,196,197,199,200,201,203,204,206,207,208,210,211,213,214,216,217,218,220,221,223,224,225,227,228,230,231,233,234,235,237,238,240,241,242,244,245,247,248,249,251,252,254,255,257,258,259,261,262,264,265,266,268,269,271,272,274,275,276,278,279,281,282,283,285,286,288,289,290,292,293,295,296,298,299,300,302,303,305,306,307,309,310,312,313,315,316,317,319,320,322,323,324,326,327,329,330,332,333,334,336,337,339,340,341,343,344,346,347,348,350,351,353 mov $1,2 mov $2,$0 mul $2,2 mov $4,$2 add $4,4 pow $4,2 lpb $2,1 mov $2,$3 mov $3,2 lpb $4,1 add $1,1 add $3,4 trn $4,$3 add $4,1 lpe add $1,8 lpe mul $1,9 trn $1,117 div $1,9 add $1,1
functional-if/hashmap-strings/results/4-assembler/functional-hashmap-raw.asm
stephanrauh/GraalVM-Test
0
86613
Compiled method (c2) 51 1 java.lang.StringLatin1::hashCode (42 bytes) total in heap [0x00000001063b1e90,0x00000001063b2430] = 1440 relocation [0x00000001063b2008,0x00000001063b2018] = 16 main code [0x00000001063b2020,0x00000001063b21e0] = 448 stub code [0x00000001063b21e0,0x00000001063b21f8] = 24 metadata [0x00000001063b21f8,0x00000001063b2200] = 8 scopes data [0x00000001063b2200,0x00000001063b2288] = 136 scopes pcs [0x00000001063b2288,0x00000001063b2418] = 400 dependencies [0x00000001063b2418,0x00000001063b2420] = 8 nul chk table [0x00000001063b2420,0x00000001063b2430] = 16 Loaded disassembler from /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/lib/server/hsdis-amd64.dylib ---------------------------------------------------------------------- java/lang/StringLatin1.hashCode([B)I [0x00000001063b2020, 0x00000001063b21f8] 472 bytes [Disassembling for mach='i386:x86-64'] [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d97ba98} 'hashCode' '([B)I' in 'java/lang/StringLatin1' # parm0: rsi:rsi = '[B' # [sp+0x30] (sp of caller) 0x00000001063b2020: mov %eax,-0x14000(%rsp) 0x00000001063b2027: push %rbp 0x00000001063b2028: sub $0x20,%rsp ;*synchronization entry ; - java.lang.StringLatin1::hashCode@-1 (line 194) 0x00000001063b202c: mov 0xc(%rsi),%r10d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@5 (line 195) ; implicit exception: dispatches to 0x00000001063b21c2 0x00000001063b2030: test %r10d,%r10d 0x00000001063b2033: jbe 0x00000001063b21a9 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) 0x00000001063b2039: mov %r10d,%r8d 0x00000001063b203c: dec %r8d 0x00000001063b203f: cmp %r10d,%r8d 0x00000001063b2042: jae 0x00000001063b21ad 0x00000001063b2048: movzbl 0x10(%rsi),%r9d ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@31 (line 196) 0x00000001063b204d: mov %r10d,%edx 0x00000001063b2050: add $0xfffffff9,%edx 0x00000001063b2053: mov $0x80000000,%ecx 0x00000001063b2058: cmp %edx,%r8d 0x00000001063b205b: cmovl %ecx,%edx 0x00000001063b205e: mov $0x1,%ecx 0x00000001063b2063: cmp $0x1,%edx 0x00000001063b2066: jle 0x00000001063b218d 0x00000001063b206c: mov %r9d,%r11d 0x00000001063b206f: shl $0x5,%r11d 0x00000001063b2073: sub %r9d,%r11d ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) 0x00000001063b2076: mov $0x1f40,%edi ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) 0x00000001063b207b: jmp 0x00000001063b20a9 ;*aload_2 {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@16 (line 195) 0x00000001063b207d: movzbl 0x10(%rsi,%rcx,1),%r8d 0x00000001063b2083: mov %r9d,%eax 0x00000001063b2086: shl $0x5,%eax 0x00000001063b2089: sub %r9d,%eax 0x00000001063b208c: add %r8d,%eax ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) 0x00000001063b208f: inc %ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) 0x00000001063b2091: cmp %r10d,%ecx 0x00000001063b2094: jge 0x00000001063b2199 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) 0x00000001063b209a: mov %eax,%r9d 0x00000001063b209d: jmp 0x00000001063b207d 0x00000001063b209f: vmovq %xmm0,%rsi 0x00000001063b20a4: vmovd %xmm2,%r10d 0x00000001063b20a9: mov %edx,%ebp 0x00000001063b20ab: sub %ecx,%ebp 0x00000001063b20ad: cmp %edi,%ebp 0x00000001063b20af: cmovg %edi,%ebp 0x00000001063b20b2: add %ecx,%ebp 0x00000001063b20b4: vmovq %rsi,%xmm0 0x00000001063b20b9: vmovd %r10d,%xmm2 0x00000001063b20be: xchg %ax,%ax ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) 0x00000001063b20c0: movslq %ecx,%rsi ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@19 (line 195) 0x00000001063b20c3: vmovq %xmm0,%r8 0x00000001063b20c8: movzbl 0x10(%r8,%rsi,1),%r14d 0x00000001063b20ce: movzbl 0x17(%r8,%rsi,1),%eax 0x00000001063b20d4: movzbl 0x11(%r8,%rsi,1),%r13d 0x00000001063b20da: movzbl 0x16(%r8,%rsi,1),%r10d 0x00000001063b20e0: movzbl 0x15(%r8,%rsi,1),%r9d 0x00000001063b20e6: movzbl 0x14(%r8,%rsi,1),%r8d 0x00000001063b20ec: add %r14d,%r11d 0x00000001063b20ef: vmovq %xmm0,%rbx 0x00000001063b20f4: movzbl 0x12(%rbx,%rsi,1),%ebx 0x00000001063b20f9: vmovq %xmm0,%r14 0x00000001063b20fe: movzbl 0x13(%r14,%rsi,1),%esi 0x00000001063b2104: mov %r11d,%r14d 0x00000001063b2107: shl $0x5,%r14d 0x00000001063b210b: sub %r11d,%r14d 0x00000001063b210e: add %r13d,%r14d 0x00000001063b2111: mov %r14d,%r11d 0x00000001063b2114: shl $0x5,%r11d 0x00000001063b2118: sub %r14d,%r11d 0x00000001063b211b: add %ebx,%r11d 0x00000001063b211e: mov %r11d,%ebx 0x00000001063b2121: shl $0x5,%ebx 0x00000001063b2124: sub %r11d,%ebx 0x00000001063b2127: add %esi,%ebx 0x00000001063b2129: mov %ebx,%r11d 0x00000001063b212c: shl $0x5,%r11d 0x00000001063b2130: sub %ebx,%r11d 0x00000001063b2133: add %r8d,%r11d 0x00000001063b2136: mov %r11d,%ebx 0x00000001063b2139: shl $0x5,%ebx 0x00000001063b213c: sub %r11d,%ebx 0x00000001063b213f: add %r9d,%ebx 0x00000001063b2142: mov %ebx,%r8d 0x00000001063b2145: shl $0x5,%r8d 0x00000001063b2149: sub %ebx,%r8d 0x00000001063b214c: add %r10d,%r8d 0x00000001063b214f: mov %r8d,%r9d 0x00000001063b2152: shl $0x5,%r9d 0x00000001063b2156: sub %r8d,%r9d 0x00000001063b2159: add %eax,%r9d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) 0x00000001063b215c: mov %r9d,%r11d 0x00000001063b215f: shl $0x5,%r11d 0x00000001063b2163: sub %r9d,%r11d ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) 0x00000001063b2166: add $0x8,%ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) 0x00000001063b2169: cmp %ebp,%ecx 0x00000001063b216b: jl 0x00000001063b20c0 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) 0x00000001063b2171: mov 0x108(%r15),%r10 ; ImmutableOopMap{xmm0=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) 0x00000001063b2178: test %eax,(%r10) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; {poll} 0x00000001063b217b: cmp %edx,%ecx 0x00000001063b217d: jl 0x00000001063b209f 0x00000001063b2183: vmovq %xmm0,%rsi 0x00000001063b2188: vmovd %xmm2,%r10d 0x00000001063b218d: cmp %r10d,%ecx 0x00000001063b2190: jl 0x00000001063b207d 0x00000001063b2196: mov %r9d,%eax ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) 0x00000001063b2199: add $0x20,%rsp 0x00000001063b219d: pop %rbp 0x00000001063b219e: mov 0x108(%r15),%r10 0x00000001063b21a5: test %eax,(%r10) ; {poll_return} 0x00000001063b21a8: retq 0x00000001063b21a9: xor %eax,%eax 0x00000001063b21ab: jmp 0x00000001063b2199 0x00000001063b21ad: mov %rsi,%rbp 0x00000001063b21b0: mov %r10d,0x4(%rsp) 0x00000001063b21b5: mov $0xffffff7e,%esi 0x00000001063b21ba: nop 0x00000001063b21bb: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; {runtime_call UncommonTrapBlob} 0x00000001063b21c0: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) 0x00000001063b21c2: mov $0xfffffff6,%esi 0x00000001063b21c7: callq 0x000000010637b900 ; ImmutableOopMap{} ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@5 (line 195) ; {runtime_call UncommonTrapBlob} 0x00000001063b21cc: ud2 ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@5 (line 195) 0x00000001063b21ce: hlt 0x00000001063b21cf: hlt 0x00000001063b21d0: hlt 0x00000001063b21d1: hlt 0x00000001063b21d2: hlt 0x00000001063b21d3: hlt 0x00000001063b21d4: hlt 0x00000001063b21d5: hlt 0x00000001063b21d6: hlt 0x00000001063b21d7: hlt 0x00000001063b21d8: hlt 0x00000001063b21d9: hlt 0x00000001063b21da: hlt 0x00000001063b21db: hlt 0x00000001063b21dc: hlt 0x00000001063b21dd: hlt 0x00000001063b21de: hlt 0x00000001063b21df: hlt [Exception Handler] [Stub Code] 0x00000001063b21e0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063b21e5: callq 0x00000001063b21ea 0x00000001063b21ea: subq $0x5,(%rsp) 0x00000001063b21ef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063b21f4: hlt 0x00000001063b21f5: hlt 0x00000001063b21f6: hlt 0x00000001063b21f7: hlt ImmutableOopMap{xmm0=Oop }pc offsets: 344 ImmutableOopMap{rbp=Oop }pc offsets: 416 ImmutableOopMap{}pc offsets: 428 Running the benchmark with a cold JVM ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bad20, 0x00000001063bad48] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011db821e8} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/invoke/MemberName' (sp of caller) 0x00000001063bad20: mov 0x8(%rsp),%rbx 0x00000001063bad25: mov 0x24(%rbx),%ebx 0x00000001063bad28: shl $0x3,%rbx 0x00000001063bad2c: mov 0x10(%rbx),%rbx 0x00000001063bad30: test %rbx,%rbx 0x00000001063bad33: je 0x00000001063bad3c 0x00000001063bad39: jmpq *0x38(%rbx) 0x00000001063bad3c: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bad41: hlt 0x00000001063bad42: hlt 0x00000001063bad43: hlt 0x00000001063bad44: hlt 0x00000001063bad45: hlt 0x00000001063bad46: hlt 0x00000001063bad47: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(ILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bb6a0, 0x00000001063bb6c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011db9be58} 'linkToStatic' '(ILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi = int # parm1: rdx:rdx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bb6a0: mov 0x24(%rdx),%ebx 0x00000001063bb6a3: shl $0x3,%rbx 0x00000001063bb6a7: mov 0x10(%rbx),%rbx 0x00000001063bb6ab: test %rbx,%rbx 0x00000001063bb6ae: je 0x00000001063bb6b7 0x00000001063bb6b4: jmpq *0x38(%rbx) 0x00000001063bb6b7: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bb6bc: hlt 0x00000001063bb6bd: hlt 0x00000001063bb6be: hlt 0x00000001063bb6bf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063bb8a0, 0x00000001063bb8d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dba4a30} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) 0x00000001063bb8a0: mov 0x14(%rsi),%ebx 0x00000001063bb8a3: shl $0x3,%rbx 0x00000001063bb8a7: mov 0x28(%rbx),%ebx 0x00000001063bb8aa: shl $0x3,%rbx 0x00000001063bb8ae: mov 0x24(%rbx),%ebx 0x00000001063bb8b1: shl $0x3,%rbx 0x00000001063bb8b5: mov 0x10(%rbx),%rbx 0x00000001063bb8b9: test %rbx,%rbx 0x00000001063bb8bc: je 0x00000001063bb8c5 0x00000001063bb8c2: jmpq *0x38(%rbx) 0x00000001063bb8c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bb8ca: hlt 0x00000001063bb8cb: hlt 0x00000001063bb8cc: hlt 0x00000001063bb8cd: hlt 0x00000001063bb8ce: hlt 0x00000001063bb8cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bbaa0, 0x00000001063bbac8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dba4be8} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/invoke/MemberName' 0x00000001063bbaa0: mov 0x10(%rsp),%rbx 0x00000001063bbaa5: cmp (%rsi),%rax 0x00000001063bbaa8: mov 0x24(%rbx),%ebx 0x00000001063bbaab: shl $0x3,%rbx 0x00000001063bbaaf: mov 0x10(%rbx),%rbx 0x00000001063bbab3: test %rbx,%rbx 0x00000001063bbab6: je 0x00000001063bbabf 0x00000001063bbabc: jmpq *0x38(%rbx) 0x00000001063bbabf: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bbac4: hlt 0x00000001063bbac5: hlt 0x00000001063bbac6: hlt 0x00000001063bbac7: hlt Compiled method (c2) 98 6 java.lang.Object::<init> (1 bytes) total in heap [0x00000001063be910,0x00000001063beb48] = 568 relocation [0x00000001063bea88,0x00000001063bea98] = 16 main code [0x00000001063beaa0,0x00000001063beae0] = 64 stub code [0x00000001063beae0,0x00000001063beaf8] = 24 metadata [0x00000001063beaf8,0x00000001063beb08] = 16 scopes data [0x00000001063beb08,0x00000001063beb10] = 8 scopes pcs [0x00000001063beb10,0x00000001063beb40] = 48 dependencies [0x00000001063beb40,0x00000001063beb48] = 8 ---------------------------------------------------------------------- java/lang/Object.<init>()V [0x00000001063beaa0, 0x00000001063beaf8] 88 bytes [Entry Point] [Constants] # {method} {0x000000011d822610} '<init>' '()V' in 'java/lang/Object' # [sp+0x20] (sp of caller) 0x00000001063beaa0: mov 0x8(%rsi),%r10d 0x00000001063beaa4: movabs $0x800000000,%r12 0x00000001063beaae: add %r12,%r10 0x00000001063beab1: xor %r12,%r12 0x00000001063beab4: cmp %r10,%rax 0x00000001063beab7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063beabd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063beac0: sub $0x18,%rsp 0x00000001063beac7: mov %rbp,0x10(%rsp) ;*synchronization entry ; - java.lang.Object::<init>@-1 (line 50) 0x00000001063beacc: add $0x10,%rsp 0x00000001063bead0: pop %rbp 0x00000001063bead1: mov 0x108(%r15),%r10 0x00000001063bead8: test %eax,(%r10) ; {poll_return} 0x00000001063beadb: retq 0x00000001063beadc: hlt 0x00000001063beadd: hlt 0x00000001063beade: hlt 0x00000001063beadf: hlt [Exception Handler] [Stub Code] 0x00000001063beae0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063beae5: callq 0x00000001063beaea 0x00000001063beaea: subq $0x5,(%rsp) 0x00000001063beaef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063beaf4: hlt 0x00000001063beaf5: hlt 0x00000001063beaf6: hlt 0x00000001063beaf7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(I)Ljava/lang/Object; [0x00000001063bd220, 0x00000001063bd250] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbdbf00} 'invokeBasic' '(I)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx = int # [sp+0x0] (sp of caller) 0x00000001063bd220: mov 0x14(%rsi),%ebx 0x00000001063bd223: shl $0x3,%rbx 0x00000001063bd227: mov 0x28(%rbx),%ebx 0x00000001063bd22a: shl $0x3,%rbx 0x00000001063bd22e: mov 0x24(%rbx),%ebx 0x00000001063bd231: shl $0x3,%rbx 0x00000001063bd235: mov 0x10(%rbx),%rbx 0x00000001063bd239: test %rbx,%rbx 0x00000001063bd23c: je 0x00000001063bd245 0x00000001063bd242: jmpq *0x38(%rbx) 0x00000001063bd245: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bd24a: hlt 0x00000001063bd24b: hlt 0x00000001063bd24c: hlt 0x00000001063bd24d: hlt 0x00000001063bd24e: hlt 0x00000001063bd24f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;ILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bd020, 0x00000001063bd040] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbdc018} 'linkToSpecial' '(Ljava/lang/Object;ILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bd020: cmp (%rsi),%rax 0x00000001063bd023: mov 0x24(%rcx),%ebx 0x00000001063bd026: shl $0x3,%rbx 0x00000001063bd02a: mov 0x10(%rbx),%rbx 0x00000001063bd02e: test %rbx,%rbx 0x00000001063bd031: je 0x00000001063bd03a 0x00000001063bd037: jmpq *0x38(%rbx) 0x00000001063bd03a: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bd03f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bce20, 0x00000001063bce40] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbe0040} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bce20: mov 0x24(%rdi),%ebx 0x00000001063bce23: shl $0x3,%rbx 0x00000001063bce27: mov 0x10(%rbx),%rbx 0x00000001063bce2b: test %rbx,%rbx 0x00000001063bce2e: je 0x00000001063bce37 0x00000001063bce34: jmpq *0x38(%rbx) 0x00000001063bce37: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bce3c: hlt 0x00000001063bce3d: hlt 0x00000001063bce3e: hlt 0x00000001063bce3f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063bc9a0, 0x00000001063bc9d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf0ab8} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063bc9a0: mov 0x14(%rsi),%ebx 0x00000001063bc9a3: shl $0x3,%rbx 0x00000001063bc9a7: mov 0x28(%rbx),%ebx 0x00000001063bc9aa: shl $0x3,%rbx 0x00000001063bc9ae: mov 0x24(%rbx),%ebx 0x00000001063bc9b1: shl $0x3,%rbx 0x00000001063bc9b5: mov 0x10(%rbx),%rbx 0x00000001063bc9b9: test %rbx,%rbx 0x00000001063bc9bc: je 0x00000001063bc9c5 0x00000001063bc9c2: jmpq *0x38(%rbx) 0x00000001063bc9c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bc9ca: hlt 0x00000001063bc9cb: hlt 0x00000001063bc9cc: hlt 0x00000001063bc9cd: hlt 0x00000001063bc9ce: hlt 0x00000001063bc9cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bc7a0, 0x00000001063bc7c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf0bd0} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/invoke/MemberName' (sp of caller) 0x00000001063bc7a0: mov 0x8(%rsp),%rbx 0x00000001063bc7a5: cmp (%rsi),%rax 0x00000001063bc7a8: mov 0x24(%rbx),%ebx 0x00000001063bc7ab: shl $0x3,%rbx 0x00000001063bc7af: mov 0x10(%rbx),%rbx 0x00000001063bc7b3: test %rbx,%rbx 0x00000001063bc7b6: je 0x00000001063bc7bf 0x00000001063bc7bc: jmpq *0x38(%rbx) 0x00000001063bc7bf: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bc7c4: hlt 0x00000001063bc7c5: hlt 0x00000001063bc7c6: hlt 0x00000001063bc7c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/invoke/MemberName;)I [0x00000001063bbfa0, 0x00000001063bbfc0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf8f78} 'linkToStatic' '(Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bbfa0: mov 0x24(%rsi),%ebx 0x00000001063bbfa3: shl $0x3,%rbx 0x00000001063bbfa7: mov 0x10(%rbx),%rbx 0x00000001063bbfab: test %rbx,%rbx 0x00000001063bbfae: je 0x00000001063bbfb7 0x00000001063bbfb4: jmpq *0x38(%rbx) 0x00000001063bbfb7: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bbfbc: hlt 0x00000001063bbfbd: hlt 0x00000001063bbfbe: hlt 0x00000001063bbfbf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic()I [0x00000001063bbca0, 0x00000001063bbcd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf9090} 'invokeBasic' '()I' in 'java/lang/invoke/MethodHandle' # [sp+0x0] (sp of caller) 0x00000001063bbca0: mov 0x14(%rsi),%ebx 0x00000001063bbca3: shl $0x3,%rbx 0x00000001063bbca7: mov 0x28(%rbx),%ebx 0x00000001063bbcaa: shl $0x3,%rbx 0x00000001063bbcae: mov 0x24(%rbx),%ebx 0x00000001063bbcb1: shl $0x3,%rbx 0x00000001063bbcb5: mov 0x10(%rbx),%rbx 0x00000001063bbcb9: test %rbx,%rbx 0x00000001063bbcbc: je 0x00000001063bbcc5 0x00000001063bbcc2: jmpq *0x38(%rbx) 0x00000001063bbcc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bbcca: hlt 0x00000001063bbccb: hlt 0x00000001063bbccc: hlt 0x00000001063bbccd: hlt 0x00000001063bbcce: hlt 0x00000001063bbccf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/invoke/MemberName;)I [0x00000001063bed20, 0x00000001063bed40] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf91a8} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bed20: cmp (%rsi),%rax 0x00000001063bed23: mov 0x24(%rdx),%ebx 0x00000001063bed26: shl $0x3,%rbx 0x00000001063bed2a: mov 0x10(%rbx),%rbx 0x00000001063bed2e: test %rbx,%rbx 0x00000001063bed31: je 0x00000001063bed3a 0x00000001063bed37: jmpq *0x38(%rbx) 0x00000001063bed3a: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bed3f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bef20, 0x00000001063bef40] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf9450} 'linkToStatic' '(Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx = int # parm3: r8:r8 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bef20: mov 0x24(%r8),%ebx 0x00000001063bef24: shl $0x3,%rbx 0x00000001063bef28: mov 0x10(%rbx),%rbx 0x00000001063bef2c: test %rbx,%rbx 0x00000001063bef2f: je 0x00000001063bef38 0x00000001063bef35: jmpq *0x38(%rbx) 0x00000001063bef38: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bef3d: hlt 0x00000001063bef3e: hlt 0x00000001063bef3f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(IILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bf120, 0x00000001063bf140] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dbf9568} 'linkToStatic' '(IILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi = int # parm1: rdx = int # parm2: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bf120: mov 0x24(%rcx),%ebx 0x00000001063bf123: shl $0x3,%rbx 0x00000001063bf127: mov 0x10(%rbx),%rbx 0x00000001063bf12b: test %rbx,%rbx 0x00000001063bf12e: je 0x00000001063bf137 0x00000001063bf134: jmpq *0x38(%rbx) 0x00000001063bf137: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bf13c: hlt 0x00000001063bf13d: hlt 0x00000001063bf13e: hlt 0x00000001063bf13f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(DLjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bf520, 0x00000001063bf540] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc012a0} 'linkToStatic' '(DLjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: xmm0:xmm0 = double # parm1: rsi:rsi = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bf520: mov 0x24(%rsi),%ebx 0x00000001063bf523: shl $0x3,%rbx 0x00000001063bf527: mov 0x10(%rbx),%rbx 0x00000001063bf52b: test %rbx,%rbx 0x00000001063bf52e: je 0x00000001063bf537 0x00000001063bf534: jmpq *0x38(%rbx) 0x00000001063bf537: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bf53c: hlt 0x00000001063bf53d: hlt 0x00000001063bf53e: hlt 0x00000001063bf53f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063bf720, 0x00000001063bf740] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc01688} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063bf720: mov 0x24(%rdx),%ebx 0x00000001063bf723: shl $0x3,%rbx 0x00000001063bf727: mov 0x10(%rbx),%rbx 0x00000001063bf72b: test %rbx,%rbx 0x00000001063bf72e: je 0x00000001063bf737 0x00000001063bf734: jmpq *0x38(%rbx) 0x00000001063bf737: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063bf73c: hlt 0x00000001063bf73d: hlt 0x00000001063bf73e: hlt 0x00000001063bf73f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c00a0, 0x00000001063c00c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc132f0} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c00a0: mov 0x24(%rcx),%ebx 0x00000001063c00a3: shl $0x3,%rbx 0x00000001063c00a7: mov 0x10(%rbx),%rbx 0x00000001063c00ab: test %rbx,%rbx 0x00000001063c00ae: je 0x00000001063c00b7 0x00000001063c00b4: jmpq *0x38(%rbx) 0x00000001063c00b7: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c00bc: hlt 0x00000001063c00bd: hlt 0x00000001063c00be: hlt 0x00000001063c00bf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c02a0, 0x00000001063c02c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc14bf0} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c02a0: mov 0x24(%r8),%ebx 0x00000001063c02a4: shl $0x3,%rbx 0x00000001063c02a8: mov 0x10(%rbx),%rbx 0x00000001063c02ac: test %rbx,%rbx 0x00000001063c02af: je 0x00000001063c02b8 0x00000001063c02b5: jmpq *0x38(%rbx) 0x00000001063c02b8: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c02bd: hlt 0x00000001063c02be: hlt 0x00000001063c02bf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;II)Ljava/lang/Object; [0x00000001063c04a0, 0x00000001063c04d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc17758} 'invokeBasic' '(Ljava/lang/Object;II)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx = int # parm2: r8 = int # [sp+0x0] (sp of caller) 0x00000001063c04a0: mov 0x14(%rsi),%ebx 0x00000001063c04a3: shl $0x3,%rbx 0x00000001063c04a7: mov 0x28(%rbx),%ebx 0x00000001063c04aa: shl $0x3,%rbx 0x00000001063c04ae: mov 0x24(%rbx),%ebx 0x00000001063c04b1: shl $0x3,%rbx 0x00000001063c04b5: mov 0x10(%rbx),%rbx 0x00000001063c04b9: test %rbx,%rbx 0x00000001063c04bc: je 0x00000001063c04c5 0x00000001063c04c2: jmpq *0x38(%rbx) 0x00000001063c04c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c04ca: hlt 0x00000001063c04cb: hlt 0x00000001063c04cc: hlt 0x00000001063c04cd: hlt 0x00000001063c04ce: hlt 0x00000001063c04cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c06a0, 0x00000001063c06c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc17870} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx = int # parm3: r8 = int # parm4: r9:r9 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c06a0: cmp (%rsi),%rax 0x00000001063c06a3: mov 0x24(%r9),%ebx 0x00000001063c06a7: shl $0x3,%rbx 0x00000001063c06ab: mov 0x10(%rbx),%rbx 0x00000001063c06af: test %rbx,%rbx 0x00000001063c06b2: je 0x00000001063c06bb 0x00000001063c06b8: jmpq *0x38(%rbx) 0x00000001063c06bb: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(ILjava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I [0x00000001063c1020, 0x00000001063c1040] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc31450} 'linkToStatic' '(ILjava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi = int # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx = int # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c1020: mov 0x24(%r9),%ebx 0x00000001063c1024: shl $0x3,%rbx 0x00000001063c1028: mov 0x10(%rbx),%rbx 0x00000001063c102c: test %rbx,%rbx 0x00000001063c102f: je 0x00000001063c1038 0x00000001063c1035: jmpq *0x38(%rbx) 0x00000001063c1038: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c103d: hlt 0x00000001063c103e: hlt 0x00000001063c103f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(ILjava/lang/Object;ILjava/lang/Object;)I [0x00000001063c1220, 0x00000001063c1250] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc31658} 'invokeBasic' '(ILjava/lang/Object;ILjava/lang/Object;)I' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx = int # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8 = int # parm3: r9:r9 = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c1220: mov 0x14(%rsi),%ebx 0x00000001063c1223: shl $0x3,%rbx 0x00000001063c1227: mov 0x28(%rbx),%ebx 0x00000001063c122a: shl $0x3,%rbx 0x00000001063c122e: mov 0x24(%rbx),%ebx 0x00000001063c1231: shl $0x3,%rbx 0x00000001063c1235: mov 0x10(%rbx),%rbx 0x00000001063c1239: test %rbx,%rbx 0x00000001063c123c: je 0x00000001063c1245 0x00000001063c1242: jmpq *0x38(%rbx) 0x00000001063c1245: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c124a: hlt 0x00000001063c124b: hlt 0x00000001063c124c: hlt 0x00000001063c124d: hlt 0x00000001063c124e: hlt 0x00000001063c124f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;ILjava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I [0x00000001063c1420, 0x00000001063c1440] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc31770} 'linkToSpecial' '(Ljava/lang/Object;ILjava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8 = int # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c1420: cmp (%rsi),%rax 0x00000001063c1423: mov 0x24(%rdi),%ebx 0x00000001063c1426: shl $0x3,%rbx 0x00000001063c142a: mov 0x10(%rbx),%rbx 0x00000001063c142e: test %rbx,%rbx 0x00000001063c1431: je 0x00000001063c143a 0x00000001063c1437: jmpq *0x38(%rbx) 0x00000001063c143a: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c143f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c1620, 0x00000001063c1640] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc32870} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c1620: mov 0x24(%r9),%ebx 0x00000001063c1624: shl $0x3,%rbx 0x00000001063c1628: mov 0x10(%rbx),%rbx 0x00000001063c162c: test %rbx,%rbx 0x00000001063c162f: je 0x00000001063c1638 0x00000001063c1635: jmpq *0x38(%rbx) 0x00000001063c1638: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c163d: hlt 0x00000001063c163e: hlt 0x00000001063c163f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c1820, 0x00000001063c1850] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc32c08} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c1820: mov 0x14(%rsi),%ebx 0x00000001063c1823: shl $0x3,%rbx 0x00000001063c1827: mov 0x28(%rbx),%ebx 0x00000001063c182a: shl $0x3,%rbx 0x00000001063c182e: mov 0x24(%rbx),%ebx 0x00000001063c1831: shl $0x3,%rbx 0x00000001063c1835: mov 0x10(%rbx),%rbx 0x00000001063c1839: test %rbx,%rbx 0x00000001063c183c: je 0x00000001063c1845 0x00000001063c1842: jmpq *0x38(%rbx) 0x00000001063c1845: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c184a: hlt 0x00000001063c184b: hlt 0x00000001063c184c: hlt 0x00000001063c184d: hlt 0x00000001063c184e: hlt 0x00000001063c184f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(ILjava/lang/Object;I)I [0x00000001063c1a20, 0x00000001063c1a50] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc334f8} 'invokeBasic' '(ILjava/lang/Object;I)I' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx = int # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8 = int # [sp+0x0] (sp of caller) 0x00000001063c1a20: mov 0x14(%rsi),%ebx 0x00000001063c1a23: shl $0x3,%rbx 0x00000001063c1a27: mov 0x28(%rbx),%ebx 0x00000001063c1a2a: shl $0x3,%rbx 0x00000001063c1a2e: mov 0x24(%rbx),%ebx 0x00000001063c1a31: shl $0x3,%rbx 0x00000001063c1a35: mov 0x10(%rbx),%rbx 0x00000001063c1a39: test %rbx,%rbx 0x00000001063c1a3c: je 0x00000001063c1a45 0x00000001063c1a42: jmpq *0x38(%rbx) 0x00000001063c1a45: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c1a4a: hlt 0x00000001063c1a4b: hlt 0x00000001063c1a4c: hlt 0x00000001063c1a4d: hlt 0x00000001063c1a4e: hlt 0x00000001063c1a4f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;ILjava/lang/Object;ILjava/lang/invoke/MemberName;)I [0x00000001063c1c20, 0x00000001063c1c40] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc33610} 'linkToSpecial' '(Ljava/lang/Object;ILjava/lang/Object;ILjava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8 = int # parm4: r9:r9 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c1c20: cmp (%rsi),%rax 0x00000001063c1c23: mov 0x24(%r9),%ebx 0x00000001063c1c27: shl $0x3,%rbx 0x00000001063c1c2b: mov 0x10(%rbx),%rbx 0x00000001063c1c2f: test %rbx,%rbx 0x00000001063c1c32: je 0x00000001063c1c3b 0x00000001063c1c38: jmpq *0x38(%rbx) 0x00000001063c1c3b: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} Compiled method (c2) 138 30 java.lang.String::isLatin1 (19 bytes) total in heap [0x00000001063c4b10,0x00000001063c4db8] = 680 relocation [0x00000001063c4c88,0x00000001063c4c98] = 16 main code [0x00000001063c4ca0,0x00000001063c4d00] = 96 stub code [0x00000001063c4d00,0x00000001063c4d18] = 24 metadata [0x00000001063c4d18,0x00000001063c4d20] = 8 scopes data [0x00000001063c4d20,0x00000001063c4d40] = 32 scopes pcs [0x00000001063c4d40,0x00000001063c4db0] = 112 dependencies [0x00000001063c4db0,0x00000001063c4db8] = 8 ---------------------------------------------------------------------- java/lang/String.isLatin1()Z [0x00000001063c4ca0, 0x00000001063c4d18] 120 bytes [Entry Point] [Constants] # {method} {0x000000011d82c300} 'isLatin1' '()Z' in 'java/lang/String' # [sp+0x20] (sp of caller) 0x00000001063c4ca0: mov 0x8(%rsi),%r10d 0x00000001063c4ca4: movabs $0x800000000,%r12 0x00000001063c4cae: add %r12,%r10 0x00000001063c4cb1: xor %r12,%r12 0x00000001063c4cb4: cmp %r10,%rax 0x00000001063c4cb7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063c4cbd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063c4cc0: mov %eax,-0x14000(%rsp) 0x00000001063c4cc7: push %rbp 0x00000001063c4cc8: sub $0x10,%rsp ;*synchronization entry ; - java.lang.String::isLatin1@-1 (line 3266) 0x00000001063c4ccc: movsbl 0x14(%rsi),%r11d ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@7 (line 3266) 0x00000001063c4cd1: test %r11d,%r11d 0x00000001063c4cd4: jne 0x00000001063c4ceb ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) 0x00000001063c4cd6: mov $0x1,%eax 0x00000001063c4cdb: add $0x10,%rsp 0x00000001063c4cdf: pop %rbp 0x00000001063c4ce0: mov 0x108(%r15),%r10 0x00000001063c4ce7: test %eax,(%r10) ; {poll_return} 0x00000001063c4cea: retq 0x00000001063c4ceb: mov $0xffffff4d,%esi 0x00000001063c4cf0: mov %r11d,%ebp 0x00000001063c4cf3: callq 0x000000010637b900 ; ImmutableOopMap{} ;*ifne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; {runtime_call UncommonTrapBlob} 0x00000001063c4cf8: ud2 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) 0x00000001063c4cfa: hlt 0x00000001063c4cfb: hlt 0x00000001063c4cfc: hlt 0x00000001063c4cfd: hlt 0x00000001063c4cfe: hlt 0x00000001063c4cff: hlt [Exception Handler] [Stub Code] 0x00000001063c4d00: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063c4d05: callq 0x00000001063c4d0a 0x00000001063c4d0a: subq $0x5,(%rsp) 0x00000001063c4d0f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063c4d14: hlt 0x00000001063c4d15: hlt 0x00000001063c4d16: hlt 0x00000001063c4d17: hlt ImmutableOopMap{}pc offsets: 88 ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c4aa0, 0x00000001063c4ac8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc36e68} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/invoke/MemberName' 0x00000001063c4aa0: mov 0x10(%rsp),%rbx 0x00000001063c4aa5: mov 0x24(%rbx),%ebx 0x00000001063c4aa8: shl $0x3,%rbx 0x00000001063c4aac: mov 0x10(%rbx),%rbx 0x00000001063c4ab0: test %rbx,%rbx 0x00000001063c4ab3: je 0x00000001063c4abc 0x00000001063c4ab9: jmpq *0x38(%rbx) 0x00000001063c4abc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c4ac1: hlt 0x00000001063c4ac2: hlt 0x00000001063c4ac3: hlt 0x00000001063c4ac4: hlt 0x00000001063c4ac5: hlt 0x00000001063c4ac6: hlt 0x00000001063c4ac7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c48a0, 0x00000001063c48d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc36fd0} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' 0x00000001063c48a0: mov 0x14(%rsi),%ebx 0x00000001063c48a3: shl $0x3,%rbx 0x00000001063c48a7: mov 0x28(%rbx),%ebx 0x00000001063c48aa: shl $0x3,%rbx 0x00000001063c48ae: mov 0x24(%rbx),%ebx 0x00000001063c48b1: shl $0x3,%rbx 0x00000001063c48b5: mov 0x10(%rbx),%rbx 0x00000001063c48b9: test %rbx,%rbx 0x00000001063c48bc: je 0x00000001063c48c5 0x00000001063c48c2: jmpq *0x38(%rbx) 0x00000001063c48c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c48ca: hlt 0x00000001063c48cb: hlt 0x00000001063c48cc: hlt 0x00000001063c48cd: hlt 0x00000001063c48ce: hlt 0x00000001063c48cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c46a0, 0x00000001063c46c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc37f70} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/invoke/MemberName' 0x00000001063c46a0: mov 0x18(%rsp),%rbx 0x00000001063c46a5: mov 0x24(%rbx),%ebx 0x00000001063c46a8: shl $0x3,%rbx 0x00000001063c46ac: mov 0x10(%rbx),%rbx 0x00000001063c46b0: test %rbx,%rbx 0x00000001063c46b3: je 0x00000001063c46bc 0x00000001063c46b9: jmpq *0x38(%rbx) 0x00000001063c46bc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c46c1: hlt 0x00000001063c46c2: hlt 0x00000001063c46c3: hlt 0x00000001063c46c4: hlt 0x00000001063c46c5: hlt 0x00000001063c46c6: hlt 0x00000001063c46c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(II)Ljava/lang/Object; [0x00000001063c44a0, 0x00000001063c44d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc38088} 'invokeBasic' '(II)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx = int # parm1: rcx = int # [sp+0x0] (sp of caller) 0x00000001063c44a0: mov 0x14(%rsi),%ebx 0x00000001063c44a3: shl $0x3,%rbx 0x00000001063c44a7: mov 0x28(%rbx),%ebx 0x00000001063c44aa: shl $0x3,%rbx 0x00000001063c44ae: mov 0x24(%rbx),%ebx 0x00000001063c44b1: shl $0x3,%rbx 0x00000001063c44b5: mov 0x10(%rbx),%rbx 0x00000001063c44b9: test %rbx,%rbx 0x00000001063c44bc: je 0x00000001063c44c5 0x00000001063c44c2: jmpq *0x38(%rbx) 0x00000001063c44c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c44ca: hlt 0x00000001063c44cb: hlt 0x00000001063c44cc: hlt 0x00000001063c44cd: hlt 0x00000001063c44ce: hlt 0x00000001063c44cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c42a0, 0x00000001063c42c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc381a0} 'linkToSpecial' '(Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx = int # parm3: r8:r8 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c42a0: cmp (%rsi),%rax 0x00000001063c42a3: mov 0x24(%r8),%ebx 0x00000001063c42a7: shl $0x3,%rbx 0x00000001063c42ab: mov 0x10(%rbx),%rbx 0x00000001063c42af: test %rbx,%rbx 0x00000001063c42b2: je 0x00000001063c42bb 0x00000001063c42b8: jmpq *0x38(%rbx) 0x00000001063c42bb: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c40a0, 0x00000001063c40d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc38308} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' 0x00000001063c40a0: mov 0x14(%rsi),%ebx 0x00000001063c40a3: shl $0x3,%rbx 0x00000001063c40a7: mov 0x28(%rbx),%ebx 0x00000001063c40aa: shl $0x3,%rbx 0x00000001063c40ae: mov 0x24(%rbx),%ebx 0x00000001063c40b1: shl $0x3,%rbx 0x00000001063c40b5: mov 0x10(%rbx),%rbx 0x00000001063c40b9: test %rbx,%rbx 0x00000001063c40bc: je 0x00000001063c40c5 0x00000001063c40c2: jmpq *0x38(%rbx) 0x00000001063c40c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c40ca: hlt 0x00000001063c40cb: hlt 0x00000001063c40cc: hlt 0x00000001063c40cd: hlt 0x00000001063c40ce: hlt 0x00000001063c40cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I [0x00000001063c3ea0, 0x00000001063c3ec0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc38600} 'linkToStatic' '(ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi = int # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c3ea0: mov 0x24(%rcx),%ebx 0x00000001063c3ea3: shl $0x3,%rbx 0x00000001063c3ea7: mov 0x10(%rbx),%rbx 0x00000001063c3eab: test %rbx,%rbx 0x00000001063c3eae: je 0x00000001063c3eb7 0x00000001063c3eb4: jmpq *0x38(%rbx) 0x00000001063c3eb7: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c3ebc: hlt 0x00000001063c3ebd: hlt 0x00000001063c3ebe: hlt 0x00000001063c3ebf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(ILjava/lang/Object;)I [0x00000001063c3ca0, 0x00000001063c3cd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc38718} 'invokeBasic' '(ILjava/lang/Object;)I' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx = int # parm1: rcx:rcx = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c3ca0: mov 0x14(%rsi),%ebx 0x00000001063c3ca3: shl $0x3,%rbx 0x00000001063c3ca7: mov 0x28(%rbx),%ebx 0x00000001063c3caa: shl $0x3,%rbx 0x00000001063c3cae: mov 0x24(%rbx),%ebx 0x00000001063c3cb1: shl $0x3,%rbx 0x00000001063c3cb5: mov 0x10(%rbx),%rbx 0x00000001063c3cb9: test %rbx,%rbx 0x00000001063c3cbc: je 0x00000001063c3cc5 0x00000001063c3cc2: jmpq *0x38(%rbx) 0x00000001063c3cc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c3cca: hlt 0x00000001063c3ccb: hlt 0x00000001063c3ccc: hlt 0x00000001063c3ccd: hlt 0x00000001063c3cce: hlt 0x00000001063c3ccf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I [0x00000001063c3aa0, 0x00000001063c3ac0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc38830} 'linkToSpecial' '(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/invoke/MemberName;)I' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c3aa0: cmp (%rsi),%rax 0x00000001063c3aa3: mov 0x24(%r8),%ebx 0x00000001063c3aa7: shl $0x3,%rbx 0x00000001063c3aab: mov 0x10(%rbx),%rbx 0x00000001063c3aaf: test %rbx,%rbx 0x00000001063c3ab2: je 0x00000001063c3abb 0x00000001063c3ab8: jmpq *0x38(%rbx) 0x00000001063c3abb: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} Compiled method (c2) 155 40 java.lang.String::charAt (25 bytes) total in heap [0x00000001063c1e90,0x00000001063c2238] = 936 relocation [0x00000001063c2008,0x00000001063c2018] = 16 main code [0x00000001063c2020,0x00000001063c20c0] = 160 stub code [0x00000001063c20c0,0x00000001063c20d8] = 24 metadata [0x00000001063c20d8,0x00000001063c20f0] = 24 scopes data [0x00000001063c20f0,0x00000001063c2150] = 96 scopes pcs [0x00000001063c2150,0x00000001063c2220] = 208 dependencies [0x00000001063c2220,0x00000001063c2228] = 8 nul chk table [0x00000001063c2228,0x00000001063c2238] = 16 ---------------------------------------------------------------------- java/lang/String.charAt(I)C [0x00000001063c2020, 0x00000001063c20d8] 184 bytes [Entry Point] [Constants] # {method} {0x000000011d8274b8} 'charAt' '(I)C' in 'java/lang/String' # this: rsi:rsi = 'java/lang/String' # parm0: rdx = int # [sp+0x30] (sp of caller) 0x00000001063c2020: mov 0x8(%rsi),%r10d 0x00000001063c2024: movabs $0x800000000,%r12 0x00000001063c202e: add %r12,%r10 0x00000001063c2031: xor %r12,%r12 0x00000001063c2034: cmp %r10,%rax 0x00000001063c2037: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063c203d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063c2040: mov %eax,-0x14000(%rsp) 0x00000001063c2047: push %rbp 0x00000001063c2048: sub $0x20,%rsp ;*synchronization entry ; - java.lang.String::charAt@-1 (line 692) 0x00000001063c204c: movsbl 0x14(%rsi),%r10d ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@7 (line 3266) ; - java.lang.String::charAt@1 (line 692) 0x00000001063c2051: test %r10d,%r10d 0x00000001063c2054: jne 0x00000001063c207d ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::charAt@1 (line 692) 0x00000001063c2056: mov 0xc(%rsi),%ebp ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::charAt@8 (line 693) 0x00000001063c2059: mov 0xc(%r12,%rbp,8),%r10d ; implicit exception: dispatches to 0x00000001063c20a6 0x00000001063c205e: cmp %r10d,%edx 0x00000001063c2061: jae 0x00000001063c2096 0x00000001063c2063: lea (%r12,%rbp,8),%r10 0x00000001063c2067: movzbl 0x10(%r10,%rdx,1),%eax ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) 0x00000001063c206d: add $0x20,%rsp 0x00000001063c2071: pop %rbp 0x00000001063c2072: mov 0x108(%r15),%r10 0x00000001063c2079: test %eax,(%r10) ; {poll_return} 0x00000001063c207c: retq 0x00000001063c207d: mov %rsi,%rbp 0x00000001063c2080: mov %edx,(%rsp) 0x00000001063c2083: mov %r10d,0x4(%rsp) 0x00000001063c2088: mov $0xffffff4d,%esi 0x00000001063c208d: xchg %ax,%ax 0x00000001063c208f: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*ifne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::charAt@1 (line 692) ; {runtime_call UncommonTrapBlob} 0x00000001063c2094: ud2 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::charAt@1 (line 692) 0x00000001063c2096: mov $0xffffffe5,%esi 0x00000001063c209b: mov %edx,0x4(%rsp) 0x00000001063c209f: callq 0x000000010637b900 ; ImmutableOopMap{rbp=NarrowOop } ;*iflt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; - java.lang.String::charAt@12 (line 693) ; {runtime_call UncommonTrapBlob} 0x00000001063c20a4: ud2 ;*iflt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; - java.lang.String::charAt@12 (line 693) 0x00000001063c20a6: mov $0xfffffff6,%esi 0x00000001063c20ab: mov %edx,0x4(%rsp) 0x00000001063c20af: callq 0x000000010637b900 ; ImmutableOopMap{rbp=NarrowOop } ;*iflt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; - java.lang.String::charAt@12 (line 693) ; {runtime_call UncommonTrapBlob} 0x00000001063c20b4: ud2 ;*iflt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; - java.lang.String::charAt@12 (line 693) 0x00000001063c20b6: hlt 0x00000001063c20b7: hlt 0x00000001063c20b8: hlt 0x00000001063c20b9: hlt 0x00000001063c20ba: hlt 0x00000001063c20bb: hlt 0x00000001063c20bc: hlt 0x00000001063c20bd: hlt 0x00000001063c20be: hlt 0x00000001063c20bf: hlt [Exception Handler] [Stub Code] 0x00000001063c20c0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063c20c5: callq 0x00000001063c20ca 0x00000001063c20ca: subq $0x5,(%rsp) 0x00000001063c20cf: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063c20d4: hlt 0x00000001063c20d5: hlt 0x00000001063c20d6: hlt 0x00000001063c20d7: hlt ImmutableOopMap{rbp=Oop }pc offsets: 116 ImmutableOopMap{rbp=NarrowOop }pc offsets: 132 148 Compiled method (c2) 157 41 java.lang.StringLatin1::charAt (28 bytes) total in heap [0x00000001063c6610,0x00000001063c68e0] = 720 relocation [0x00000001063c6788,0x00000001063c6798] = 16 main code [0x00000001063c67a0,0x00000001063c6800] = 96 stub code [0x00000001063c6800,0x00000001063c6818] = 24 metadata [0x00000001063c6818,0x00000001063c6820] = 8 scopes data [0x00000001063c6820,0x00000001063c6848] = 40 scopes pcs [0x00000001063c6848,0x00000001063c68c8] = 128 dependencies [0x00000001063c68c8,0x00000001063c68d0] = 8 nul chk table [0x00000001063c68d0,0x00000001063c68e0] = 16 ---------------------------------------------------------------------- java/lang/StringLatin1.charAt([BI)C [0x00000001063c67a0, 0x00000001063c6818] 120 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d97a988} 'charAt' '([BI)C' in 'java/lang/StringLatin1' # parm0: rsi:rsi = '[B' # parm1: rdx = int # [sp+0x30] (sp of caller) 0x00000001063c67a0: mov %eax,-0x14000(%rsp) 0x00000001063c67a7: push %rbp 0x00000001063c67a8: sub $0x20,%rsp ;*synchronization entry ; - java.lang.StringLatin1::charAt@-1 (line 46) 0x00000001063c67ac: mov 0xc(%rsi),%r10d ; implicit exception: dispatches to 0x00000001063c67de 0x00000001063c67b0: cmp %r10d,%edx 0x00000001063c67b3: jae 0x00000001063c67ca 0x00000001063c67b5: movzbl 0x10(%rsi,%rdx,1),%eax ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) 0x00000001063c67ba: add $0x20,%rsp 0x00000001063c67be: pop %rbp 0x00000001063c67bf: mov 0x108(%r15),%r10 0x00000001063c67c6: test %eax,(%r10) ; {poll_return} 0x00000001063c67c9: retq 0x00000001063c67ca: mov %rsi,%rbp 0x00000001063c67cd: mov %edx,0x4(%rsp) 0x00000001063c67d1: mov $0xffffffe5,%esi 0x00000001063c67d6: nop 0x00000001063c67d7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*iflt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; {runtime_call UncommonTrapBlob} 0x00000001063c67dc: ud2 ;*iflt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) 0x00000001063c67de: mov %rsi,%rbp 0x00000001063c67e1: mov %edx,0x4(%rsp) 0x00000001063c67e5: mov $0xfffffff6,%esi 0x00000001063c67ea: nop 0x00000001063c67eb: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*iflt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) ; {runtime_call UncommonTrapBlob} 0x00000001063c67f0: ud2 ;*iflt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@1 (line 46) 0x00000001063c67f2: hlt 0x00000001063c67f3: hlt 0x00000001063c67f4: hlt 0x00000001063c67f5: hlt 0x00000001063c67f6: hlt 0x00000001063c67f7: hlt 0x00000001063c67f8: hlt 0x00000001063c67f9: hlt 0x00000001063c67fa: hlt 0x00000001063c67fb: hlt 0x00000001063c67fc: hlt 0x00000001063c67fd: hlt 0x00000001063c67fe: hlt 0x00000001063c67ff: hlt [Exception Handler] [Stub Code] 0x00000001063c6800: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063c6805: callq 0x00000001063c680a 0x00000001063c680a: subq $0x5,(%rsp) 0x00000001063c680f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063c6814: hlt 0x00000001063c6815: hlt 0x00000001063c6816: hlt 0x00000001063c6817: hlt ImmutableOopMap{rbp=Oop }pc offsets: 60 80 ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c1e20, 0x00000001063c1e48] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc39980} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/invoke/MemberName' 0x00000001063c1e20: mov 0x20(%rsp),%rbx 0x00000001063c1e25: mov 0x24(%rbx),%ebx 0x00000001063c1e28: shl $0x3,%rbx 0x00000001063c1e2c: mov 0x10(%rbx),%rbx 0x00000001063c1e30: test %rbx,%rbx 0x00000001063c1e33: je 0x00000001063c1e3c 0x00000001063c1e39: jmpq *0x38(%rbx) 0x00000001063c1e3c: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c1e41: hlt 0x00000001063c1e42: hlt 0x00000001063c1e43: hlt 0x00000001063c1e44: hlt 0x00000001063c1e45: hlt 0x00000001063c1e46: hlt 0x00000001063c1e47: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c3620, 0x00000001063c3650] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc39ae8} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' 0x00000001063c3620: mov 0x14(%rsi),%ebx 0x00000001063c3623: shl $0x3,%rbx 0x00000001063c3627: mov 0x28(%rbx),%ebx 0x00000001063c362a: shl $0x3,%rbx 0x00000001063c362e: mov 0x24(%rbx),%ebx 0x00000001063c3631: shl $0x3,%rbx 0x00000001063c3635: mov 0x10(%rbx),%rbx 0x00000001063c3639: test %rbx,%rbx 0x00000001063c363c: je 0x00000001063c3645 0x00000001063c3642: jmpq *0x38(%rbx) 0x00000001063c3645: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c364a: hlt 0x00000001063c364b: hlt 0x00000001063c364c: hlt 0x00000001063c364d: hlt 0x00000001063c364e: hlt 0x00000001063c364f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c31a0, 0x00000001063c31c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3ab60} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/invoke/MemberName' 0x00000001063c31a0: mov 0x28(%rsp),%rbx 0x00000001063c31a5: mov 0x24(%rbx),%ebx 0x00000001063c31a8: shl $0x3,%rbx 0x00000001063c31ac: mov 0x10(%rbx),%rbx 0x00000001063c31b0: test %rbx,%rbx 0x00000001063c31b3: je 0x00000001063c31bc 0x00000001063c31b9: jmpq *0x38(%rbx) 0x00000001063c31bc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c31c1: hlt 0x00000001063c31c2: hlt 0x00000001063c31c3: hlt 0x00000001063c31c4: hlt 0x00000001063c31c5: hlt 0x00000001063c31c6: hlt 0x00000001063c31c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c2fa0, 0x00000001063c2fd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3ae80} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' 0x00000001063c2fa0: mov 0x14(%rsi),%ebx 0x00000001063c2fa3: shl $0x3,%rbx 0x00000001063c2fa7: mov 0x28(%rbx),%ebx 0x00000001063c2faa: shl $0x3,%rbx 0x00000001063c2fae: mov 0x24(%rbx),%ebx 0x00000001063c2fb1: shl $0x3,%rbx 0x00000001063c2fb5: mov 0x10(%rbx),%rbx 0x00000001063c2fb9: test %rbx,%rbx 0x00000001063c2fbc: je 0x00000001063c2fc5 0x00000001063c2fc2: jmpq *0x38(%rbx) 0x00000001063c2fc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c2fca: hlt 0x00000001063c2fcb: hlt 0x00000001063c2fcc: hlt 0x00000001063c2fcd: hlt 0x00000001063c2fce: hlt 0x00000001063c2fcf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c2da0, 0x00000001063c2dc8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3c468} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/Object' # parm11: [sp+0x28] = 'java/lang/invoke/MemberName' 0x00000001063c2da0: mov 0x30(%rsp),%rbx 0x00000001063c2da5: mov 0x24(%rbx),%ebx 0x00000001063c2da8: shl $0x3,%rbx 0x00000001063c2dac: mov 0x10(%rbx),%rbx 0x00000001063c2db0: test %rbx,%rbx 0x00000001063c2db3: je 0x00000001063c2dbc 0x00000001063c2db9: jmpq *0x38(%rbx) 0x00000001063c2dbc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c2dc1: hlt 0x00000001063c2dc2: hlt 0x00000001063c2dc3: hlt 0x00000001063c2dc4: hlt 0x00000001063c2dc5: hlt 0x00000001063c2dc6: hlt 0x00000001063c2dc7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c2ba0, 0x00000001063c2bd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3c5d0} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' # parm10: [sp+0x28] = 'java/lang/Object' 0x00000001063c2ba0: mov 0x14(%rsi),%ebx 0x00000001063c2ba3: shl $0x3,%rbx 0x00000001063c2ba7: mov 0x28(%rbx),%ebx 0x00000001063c2baa: shl $0x3,%rbx 0x00000001063c2bae: mov 0x24(%rbx),%ebx 0x00000001063c2bb1: shl $0x3,%rbx 0x00000001063c2bb5: mov 0x10(%rbx),%rbx 0x00000001063c2bb9: test %rbx,%rbx 0x00000001063c2bbc: je 0x00000001063c2bc5 0x00000001063c2bc2: jmpq *0x38(%rbx) 0x00000001063c2bc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c2bca: hlt 0x00000001063c2bcb: hlt 0x00000001063c2bcc: hlt 0x00000001063c2bcd: hlt 0x00000001063c2bce: hlt 0x00000001063c2bcf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c29a0, 0x00000001063c29c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3d950} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/Object' # parm11: [sp+0x28] = 'java/lang/Object' # parm12: [sp+0x30] = 'java/lang/invoke/MemberName' 0x00000001063c29a0: mov 0x38(%rsp),%rbx 0x00000001063c29a5: mov 0x24(%rbx),%ebx 0x00000001063c29a8: shl $0x3,%rbx 0x00000001063c29ac: mov 0x10(%rbx),%rbx 0x00000001063c29b0: test %rbx,%rbx 0x00000001063c29b3: je 0x00000001063c29bc 0x00000001063c29b9: jmpq *0x38(%rbx) 0x00000001063c29bc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c29c1: hlt 0x00000001063c29c2: hlt 0x00000001063c29c3: hlt 0x00000001063c29c4: hlt 0x00000001063c29c5: hlt 0x00000001063c29c6: hlt 0x00000001063c29c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c27a0, 0x00000001063c27d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3dab8} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' # parm10: [sp+0x28] = 'java/lang/Object' # parm11: [sp+0x30] = 'java/lang/Object' 0x00000001063c27a0: mov 0x14(%rsi),%ebx 0x00000001063c27a3: shl $0x3,%rbx 0x00000001063c27a7: mov 0x28(%rbx),%ebx 0x00000001063c27aa: shl $0x3,%rbx 0x00000001063c27ae: mov 0x24(%rbx),%ebx 0x00000001063c27b1: shl $0x3,%rbx 0x00000001063c27b5: mov 0x10(%rbx),%rbx 0x00000001063c27b9: test %rbx,%rbx 0x00000001063c27bc: je 0x00000001063c27c5 0x00000001063c27c2: jmpq *0x38(%rbx) 0x00000001063c27c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c27ca: hlt 0x00000001063c27cb: hlt 0x00000001063c27cc: hlt 0x00000001063c27cd: hlt 0x00000001063c27ce: hlt 0x00000001063c27cf: hlt Compiled method (c2) 187 50 jdk.internal.org.objectweb.asm.ByteVector::putUTF8 (142 bytes) total in heap [0x00000001063c8490,0x00000001063c92a8] = 3608 relocation [0x00000001063c8608,0x00000001063c8638] = 48 main code [0x00000001063c8640,0x00000001063c8a60] = 1056 stub code [0x00000001063c8a60,0x00000001063c8a88] = 40 metadata [0x00000001063c8a88,0x00000001063c8ab8] = 48 scopes data [0x00000001063c8ab8,0x00000001063c8cb8] = 512 scopes pcs [0x00000001063c8cb8,0x00000001063c9258] = 1440 dependencies [0x00000001063c9258,0x00000001063c9260] = 8 handler table [0x00000001063c9260,0x00000001063c9278] = 24 nul chk table [0x00000001063c9278,0x00000001063c92a8] = 48 ---------------------------------------------------------------------- jdk/internal/org/objectweb/asm/ByteVector.putUTF8(Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/ByteVector; [0x00000001063c8640, 0x00000001063c8a88] 1096 bytes [Entry Point] [Constants] # {method} {0x000000011dbbf790} 'putUTF8' '(Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/ByteVector;' in 'jdk/internal/org/objectweb/asm/ByteVector' # this: rsi:rsi = 'jdk/internal/org/objectweb/asm/ByteVector' # parm0: rdx:rdx = 'java/lang/String' # [sp+0x50] (sp of caller) 0x00000001063c8640: mov 0x8(%rsi),%r10d 0x00000001063c8644: movabs $0x800000000,%r12 0x00000001063c864e: add %r12,%r10 0x00000001063c8651: xor %r12,%r12 0x00000001063c8654: cmp %r10,%rax 0x00000001063c8657: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063c865d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063c8660: mov %eax,-0x14000(%rsp) 0x00000001063c8667: push %rbp 0x00000001063c8668: sub $0x40,%rsp ;*synchronization entry ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@-1 (line 240) 0x00000001063c866c: mov %rsi,%r10 0x00000001063c866f: mov %rdx,%r9 0x00000001063c8672: mov 0xc(%rdx),%r8d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::length@1 (line 658) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) ; implicit exception: dispatches to 0x00000001063c8a23 0x00000001063c8676: mov 0xc(%r12,%r8,8),%r11d ; implicit exception: dispatches to 0x00000001063c8a32 0x00000001063c867b: movsbl 0x14(%rdx),%ecx ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::coder@7 (line 3258) ; - java.lang.String::length@6 (line 658) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) 0x00000001063c867f: sar %cl,%r11d ;*ishr {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::length@9 (line 658) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) 0x00000001063c8682: cmp $0xffff,%r11d 0x00000001063c8689: jg 0x00000001063c89ee ;*if_icmple {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@8 (line 241) 0x00000001063c868f: mov %rsi,%rdi 0x00000001063c8692: mov 0x10(%rsi),%r10d ;*getfield data {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@30 (line 245) 0x00000001063c8696: mov 0xc(%r12,%r10,8),%ebx ; implicit exception: dispatches to 0x00000001063c8a3e 0x00000001063c869b: mov 0xc(%rsi),%edx ;*getfield length {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@20 (line 244) 0x00000001063c869e: mov %r11d,%r10d 0x00000001063c86a1: add %edx,%r10d 0x00000001063c86a4: add $0x2,%r10d 0x00000001063c86a8: cmp %ebx,%r10d 0x00000001063c86ab: jg 0x00000001063c88d9 ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::charAt@8 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c86b1: mov 0x10(%rdi),%ebx ;*getfield data {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@45 (line 248) 0x00000001063c86b4: mov %r11d,%esi 0x00000001063c86b7: shr $0x8,%esi ;*iushr {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@59 (line 255) 0x00000001063c86ba: movsbl %sil,%eax ;*i2b {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@60 (line 255) 0x00000001063c86be: mov 0xc(%r12,%rbx,8),%ebp ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@61 (line 255) ; implicit exception: dispatches to 0x00000001063c8a4a 0x00000001063c86c3: mov %edx,%r10d 0x00000001063c86c6: inc %r10d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@53 (line 255) 0x00000001063c86c9: cmp %ebp,%edx 0x00000001063c86cb: jae 0x00000001063c8966 0x00000001063c86d1: lea (%r12,%rbx,8),%rax ;*getfield data {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@45 (line 248) 0x00000001063c86d5: mov %sil,0x10(%rax,%rdx,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@61 (line 255) 0x00000001063c86da: mov %edx,%r14d 0x00000001063c86dd: add $0x2,%r14d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@26 (line 245) 0x00000001063c86e1: cmp %ebp,%r10d 0x00000001063c86e4: jae 0x00000001063c8992 0x00000001063c86ea: movslq %edx,%rsi 0x00000001063c86ed: mov %r11b,0x11(%rax,%rsi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@70 (line 256) 0x00000001063c86f2: test %r11d,%r11d 0x00000001063c86f5: jle 0x00000001063c88c2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@77 (line 257) 0x00000001063c86fb: test %ecx,%ecx 0x00000001063c86fd: jne 0x00000001063c89be 0x00000001063c8703: mov 0xc(%r12,%r8,8),%r10d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@6 (line 46) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) ; implicit exception: dispatches to 0x00000001063c89be 0x00000001063c8708: test %r10d,%r10d 0x00000001063c870b: jbe 0x00000001063c89be 0x00000001063c8711: movslq %r10d,%rcx 0x00000001063c8714: movslq %r11d,%r13 0x00000001063c8717: mov %r13,%r10 0x00000001063c871a: dec %r10 0x00000001063c871d: cmp %rcx,%r10 0x00000001063c8720: jae 0x00000001063c89be 0x00000001063c8726: cmp %ebp,%r14d 0x00000001063c8729: jae 0x00000001063c89be 0x00000001063c872f: movslq %ebp,%r10 0x00000001063c8732: movslq %r14d,%rcx 0x00000001063c8735: add %r13,%rcx 0x00000001063c8738: dec %rcx 0x00000001063c873b: cmp %r10,%rcx 0x00000001063c873e: jae 0x00000001063c89be 0x00000001063c8744: movsbl 0x10(%r12,%r8,8),%ecx ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c874a: mov %ecx,%ebp 0x00000001063c874c: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8750: mov %ebp,%r10d 0x00000001063c8753: dec %r10d 0x00000001063c8756: cmp $0x7f,%r10d 0x00000001063c875a: jae 0x00000001063c8a06 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c8760: mov %cl,0x12(%rax,%rsi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c8764: mov %r11d,%r13d 0x00000001063c8767: add $0xfffffffd,%r13d 0x00000001063c876b: lea (%r12,%r8,8),%rsi 0x00000001063c876f: mov $0x1,%ecx 0x00000001063c8774: mov $0x80000000,%r8d 0x00000001063c877a: cmp %r13d,%r11d 0x00000001063c877d: cmovl %r8d,%r13d 0x00000001063c8781: cmp $0x1,%r13d 0x00000001063c8785: jle 0x00000001063c89e2 ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@132 (line 257) 0x00000001063c878b: jmp 0x00000001063c879c 0x00000001063c878d: vmovq %xmm0,%r9 0x00000001063c8792: vmovq %xmm1,%rdi 0x00000001063c8797: vmovd %xmm3,%r11d 0x00000001063c879c: mov %r13d,%r10d 0x00000001063c879f: sub %ecx,%r10d 0x00000001063c87a2: mov $0xfa0,%r14d 0x00000001063c87a8: cmp %r14d,%r10d 0x00000001063c87ab: cmovg %r14d,%r10d 0x00000001063c87af: add %ecx,%r10d 0x00000001063c87b2: vmovq %r9,%xmm0 0x00000001063c87b7: vmovq %rdi,%xmm1 0x00000001063c87bc: vmovd %r11d,%xmm3 ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c87c1: mov %ecx,%r14d 0x00000001063c87c4: add %edx,%r14d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@26 (line 245) 0x00000001063c87c7: movslq %ecx,%r9 0x00000001063c87ca: movsbl 0x10(%rsi,%r9,1),%r8d ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c87d0: mov %r8d,%ebp 0x00000001063c87d3: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c87d7: mov %ebp,%r11d 0x00000001063c87da: dec %r11d 0x00000001063c87dd: cmp $0x7f,%r11d 0x00000001063c87e1: jae 0x00000001063c8912 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c87e7: movslq %r14d,%rdi 0x00000001063c87ea: mov %r8b,0x12(%rax,%rdi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c87ef: movsbl 0x11(%rsi,%r9,1),%r11d ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c87f5: mov %r11d,%ebp 0x00000001063c87f8: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c87fc: mov %ebp,%r8d 0x00000001063c87ff: dec %r8d 0x00000001063c8802: cmp $0x7f,%r8d 0x00000001063c8806: jae 0x00000001063c8918 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c880c: mov %r11b,0x13(%rax,%rdi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c8811: movsbl 0x12(%rsi,%r9,1),%r8d ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8817: mov %r8d,%ebp 0x00000001063c881a: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c881e: mov %ebp,%r11d 0x00000001063c8821: dec %r11d 0x00000001063c8824: cmp $0x7f,%r11d 0x00000001063c8828: jae 0x00000001063c8920 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c882e: mov %r8b,0x14(%rax,%rdi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c8833: movsbl 0x13(%rsi,%r9,1),%r8d ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8839: mov %r8d,%ebp 0x00000001063c883c: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8840: mov %ebp,%r11d 0x00000001063c8843: dec %r11d 0x00000001063c8846: cmp $0x7f,%r11d 0x00000001063c884a: jae 0x00000001063c8929 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c8850: mov %r8b,0x15(%rax,%rdi,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c8855: add $0x4,%ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@129 (line 257) 0x00000001063c8858: cmp %r10d,%ecx 0x00000001063c885b: jl 0x00000001063c87c1 ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@132 (line 257) 0x00000001063c8861: mov 0x108(%r15),%r9 0x00000001063c8868: add $0x6,%r14d ; ImmutableOopMap{rbx=NarrowOop rsi=Oop rax=Oop xmm0=Oop xmm1=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@132 (line 257) 0x00000001063c886c: test %eax,(%r9) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@132 (line 257) ; {poll} 0x00000001063c886f: cmp %r13d,%ecx 0x00000001063c8872: jl 0x00000001063c878d 0x00000001063c8878: vmovq %xmm0,%r9 0x00000001063c887d: vmovq %xmm1,%rdi 0x00000001063c8882: vmovd %xmm3,%r11d 0x00000001063c8887: cmp %r11d,%ecx 0x00000001063c888a: jge 0x00000001063c88c2 ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c888c: movsbl 0x10(%rsi,%rcx,1),%r8d ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@21 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8892: mov %ecx,%r14d 0x00000001063c8895: add %edx,%r14d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@26 (line 245) 0x00000001063c8898: mov %r8d,%ebp 0x00000001063c889b: movzbl %bpl,%ebp ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::charAt@25 (line 49) ; - java.lang.String::charAt@12 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c889f: mov %ebp,%r10d 0x00000001063c88a2: dec %r10d 0x00000001063c88a5: cmp $0x7f,%r10d 0x00000001063c88a9: jae 0x00000001063c8a0d ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@98 (line 259) 0x00000001063c88af: movslq %r14d,%r10 0x00000001063c88b2: mov %r8b,0x12(%rax,%r10,1) ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@110 (line 260) 0x00000001063c88b7: inc %ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@129 (line 257) 0x00000001063c88b9: cmp %r11d,%ecx 0x00000001063c88bc: jl 0x00000001063c888c 0x00000001063c88be: add $0x3,%r14d ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@77 (line 257) 0x00000001063c88c2: mov %r14d,0xc(%rdi) ;*putfield length {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@137 (line 266) 0x00000001063c88c6: mov %rdi,%rax 0x00000001063c88c9: add $0x40,%rsp 0x00000001063c88cd: pop %rbp 0x00000001063c88ce: mov 0x108(%r15),%r10 0x00000001063c88d5: test %eax,(%r10) ; {poll_return} 0x00000001063c88d8: retq 0x00000001063c88d9: mov %edx,0xc(%rsp) 0x00000001063c88dd: mov %rsi,(%rsp) 0x00000001063c88e1: mov %r9,%rbp 0x00000001063c88e4: mov %r11d,%edx 0x00000001063c88e7: mov %r11d,0x8(%rsp) 0x00000001063c88ec: add $0x2,%edx 0x00000001063c88ef: callq 0x0000000106379f00 ; ImmutableOopMap{rbp=Oop [0]=Oop } ;*invokevirtual enlarge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@41 (line 246) ; {optimized virtual_call} 0x00000001063c88f4: mov %rbp,%r9 0x00000001063c88f7: mov 0xc(%r9),%r8d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::charAt@8 (line 693) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c88fb: movsbl 0x14(%r9),%ecx ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@7 (line 3266) ; - java.lang.String::charAt@1 (line 692) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@83 (line 258) 0x00000001063c8900: mov (%rsp),%rdi 0x00000001063c8904: mov 0x8(%rsp),%r11d 0x00000001063c8909: mov 0xc(%rsp),%edx 0x00000001063c890d: jmpq 0x00000001063c86b1 0x00000001063c8912: add $0x2,%r14d ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c8916: jmp 0x00000001063c8930 0x00000001063c8918: inc %ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@129 (line 257) 0x00000001063c891a: add $0x3,%r14d ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c891e: jmp 0x00000001063c8930 0x00000001063c8920: add $0x2,%ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@129 (line 257) 0x00000001063c8923: add $0x4,%r14d ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c8927: jmp 0x00000001063c8930 0x00000001063c8929: add $0x3,%ecx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@129 (line 257) 0x00000001063c892c: add $0x5,%r14d ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c8930: vmovq %xmm0,%r9 0x00000001063c8935: vmovq %xmm1,%rdi 0x00000001063c893a: vmovd %xmm3,%r11d ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@91 (line 259) 0x00000001063c893f: mov $0xffffff45,%esi 0x00000001063c8944: mov %r14d,(%rsp) 0x00000001063c8948: mov %ecx,0x4(%rsp) 0x00000001063c894c: mov %rdi,0x10(%rsp) 0x00000001063c8951: mov %r9,0x18(%rsp) 0x00000001063c8956: mov %r11d,0xc(%rsp) 0x00000001063c895b: mov %ebx,0x20(%rsp) 0x00000001063c895f: callq 0x000000010637b900 ; ImmutableOopMap{[16]=Oop [24]=Oop [32]=NarrowOop } ;*if_icmplt {reexecute=1 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@91 (line 259) ; {runtime_call UncommonTrapBlob} 0x00000001063c8964: ud2 ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@91 (line 259) 0x00000001063c8966: mov $0xffffffe4,%esi 0x00000001063c896b: mov %edx,%ebp 0x00000001063c896d: mov %rdi,(%rsp) 0x00000001063c8971: mov %r9,0x8(%rsp) 0x00000001063c8976: mov %r11d,0x10(%rsp) 0x00000001063c897b: mov %r10d,0x14(%rsp) 0x00000001063c8980: mov %ebx,0x1c(%rsp) 0x00000001063c8984: mov %eax,0x20(%rsp) 0x00000001063c8988: data16 xchg %ax,%ax 0x00000001063c898b: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=Oop [28]=NarrowOop } ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@61 (line 255) ; {runtime_call UncommonTrapBlob} 0x00000001063c8990: ud2 ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@70 (line 256) 0x00000001063c8992: movsbl %r11b,%ebp ;*i2b {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@69 (line 256) 0x00000001063c8996: mov $0xffffffe4,%esi 0x00000001063c899b: mov %r14d,(%rsp) 0x00000001063c899f: mov %rdi,0x8(%rsp) 0x00000001063c89a4: mov %r9,0x10(%rsp) 0x00000001063c89a9: mov %r11d,0x4(%rsp) 0x00000001063c89ae: mov %ebx,0x1c(%rsp) 0x00000001063c89b2: mov %r10d,0x20(%rsp) 0x00000001063c89b7: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=Oop [28]=NarrowOop } ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@70 (line 256) ; {runtime_call UncommonTrapBlob} 0x00000001063c89bc: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@77 (line 257) 0x00000001063c89be: mov $0xffffff7e,%esi 0x00000001063c89c3: mov %r14d,%ebp 0x00000001063c89c6: mov %rdi,(%rsp) 0x00000001063c89ca: mov %r9,0x8(%rsp) 0x00000001063c89cf: mov %ebx,0x14(%rsp) 0x00000001063c89d3: mov %r11d,0x18(%rsp) 0x00000001063c89d8: data16 xchg %ax,%ax 0x00000001063c89db: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=Oop [20]=NarrowOop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@77 (line 257) ; {runtime_call UncommonTrapBlob} 0x00000001063c89e0: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@77 (line 257) 0x00000001063c89e2: mov %edx,%r14d 0x00000001063c89e5: add $0x3,%r14d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@104 (line 260) 0x00000001063c89e9: jmpq 0x00000001063c8887 0x00000001063c89ee: mov $0xffffff4d,%esi 0x00000001063c89f3: mov %r10,%rbp 0x00000001063c89f6: mov %rdx,(%rsp) 0x00000001063c89fa: mov %r11d,0xc(%rsp) 0x00000001063c89ff: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [0]=Oop } ;*if_icmple {reexecute=1 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@8 (line 241) ; {runtime_call UncommonTrapBlob} 0x00000001063c8a04: ud2 ;*if_icmple {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@8 (line 241) 0x00000001063c8a06: xor %ecx,%ecx 0x00000001063c8a08: jmpq 0x00000001063c893f 0x00000001063c8a0d: add $0x2,%r14d ;*aload_1 {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@80 (line 258) 0x00000001063c8a11: jmpq 0x00000001063c893f ;*invokevirtual enlarge {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@41 (line 246) 0x00000001063c8a16: mov %rax,%rsi 0x00000001063c8a19: add $0x40,%rsp 0x00000001063c8a1d: pop %rbp 0x00000001063c8a1e: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063c8a23: mov $0xfffffff6,%esi 0x00000001063c8a28: data16 xchg %ax,%ax 0x00000001063c8a2b: callq 0x000000010637b900 ; ImmutableOopMap{} ;*invokevirtual length {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) ; {runtime_call UncommonTrapBlob} 0x00000001063c8a30: ud2 ;*invokevirtual length {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) 0x00000001063c8a32: mov $0xfffffff6,%esi 0x00000001063c8a37: callq 0x000000010637b900 ; ImmutableOopMap{} ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::length@4 (line 658) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) ; {runtime_call UncommonTrapBlob} 0x00000001063c8a3c: ud2 ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::length@4 (line 658) ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@1 (line 240) 0x00000001063c8a3e: mov $0xfffffff6,%esi 0x00000001063c8a43: callq 0x000000010637b900 ; ImmutableOopMap{} ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@33 (line 245) ; {runtime_call UncommonTrapBlob} 0x00000001063c8a48: ud2 ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@33 (line 245) 0x00000001063c8a4a: mov $0xfffffff6,%esi 0x00000001063c8a4f: mov %edx,%ebp 0x00000001063c8a51: mov %eax,(%rsp) 0x00000001063c8a54: data16 xchg %ax,%ax 0x00000001063c8a57: callq 0x000000010637b900 ; ImmutableOopMap{} ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@61 (line 255) ; {runtime_call UncommonTrapBlob} 0x00000001063c8a5c: ud2 ;*bastore {reexecute=0 rethrow=0 return_oop=0} ; - jdk.internal.org.objectweb.asm.ByteVector::putUTF8@61 (line 255) 0x00000001063c8a5e: hlt 0x00000001063c8a5f: hlt [Stub Code] 0x00000001063c8a60: movabs $0x0,%rbx ; {no_reloc} 0x00000001063c8a6a: jmpq 0x00000001063c8a6a ; {runtime_call} [Exception Handler] 0x00000001063c8a6f: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063c8a74: callq 0x00000001063c8a79 0x00000001063c8a79: subq $0x5,(%rsp) 0x00000001063c8a7e: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063c8a83: hlt 0x00000001063c8a84: hlt 0x00000001063c8a85: hlt 0x00000001063c8a86: hlt 0x00000001063c8a87: hlt ImmutableOopMap{rbx=NarrowOop rsi=Oop rax=Oop xmm0=Oop xmm1=Oop }pc offsets: 556 ImmutableOopMap{rbp=Oop [0]=Oop }pc offsets: 692 ImmutableOopMap{[16]=Oop [24]=Oop [32]=NarrowOop }pc offsets: 804 ImmutableOopMap{[0]=Oop [8]=Oop [28]=NarrowOop }pc offsets: 848 ImmutableOopMap{[8]=Oop [16]=Oop [28]=NarrowOop }pc offsets: 892 ImmutableOopMap{[0]=Oop [8]=Oop [20]=NarrowOop }pc offsets: 928 ImmutableOopMap{rbp=Oop [0]=Oop }pc offsets: 964 ImmutableOopMap{}pc offsets: 1008 1020 1032 1052 Compiled method (c2) 199 51 java.lang.String::coder (15 bytes) total in heap [0x00000001063c2290,0x00000001063c24d8] = 584 relocation [0x00000001063c2408,0x00000001063c2418] = 16 main code [0x00000001063c2420,0x00000001063c2460] = 64 stub code [0x00000001063c2460,0x00000001063c2478] = 24 metadata [0x00000001063c2478,0x00000001063c2480] = 8 scopes data [0x00000001063c2480,0x00000001063c2490] = 16 scopes pcs [0x00000001063c2490,0x00000001063c24d0] = 64 dependencies [0x00000001063c24d0,0x00000001063c24d8] = 8 ---------------------------------------------------------------------- java/lang/String.coder()B [0x00000001063c2420, 0x00000001063c2478] 88 bytes [Entry Point] [Constants] # {method} {0x000000011d82c1a0} 'coder' '()B' in 'java/lang/String' # [sp+0x20] (sp of caller) 0x00000001063c2420: mov 0x8(%rsi),%r10d 0x00000001063c2424: movabs $0x800000000,%r12 0x00000001063c242e: add %r12,%r10 0x00000001063c2431: xor %r12,%r12 0x00000001063c2434: cmp %r10,%rax 0x00000001063c2437: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063c243d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063c2440: sub $0x18,%rsp 0x00000001063c2447: mov %rbp,0x10(%rsp) ;*synchronization entry ; - java.lang.String::coder@-1 (line 3258) 0x00000001063c244c: movsbl 0x14(%rsi),%eax ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::coder@7 (line 3258) 0x00000001063c2450: add $0x10,%rsp 0x00000001063c2454: pop %rbp 0x00000001063c2455: mov 0x108(%r15),%r10 0x00000001063c245c: test %eax,(%r10) ; {poll_return} 0x00000001063c245f: retq [Exception Handler] [Stub Code] 0x00000001063c2460: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063c2465: callq 0x00000001063c246a 0x00000001063c246a: subq $0x5,(%rsp) 0x00000001063c246f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063c2474: hlt 0x00000001063c2475: hlt 0x00000001063c2476: hlt 0x00000001063c2477: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c5fa0, 0x00000001063c5fc8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc3fa20} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/Object' # parm11: [sp+0x28] = 'java/lang/Object' # parm12: [sp+0x30] = int # parm13: [sp+0x38] = 'java/lang/invoke/MemberName' 0x00000001063c5fa0: mov 0x40(%rsp),%rbx 0x00000001063c5fa5: mov 0x24(%rbx),%ebx 0x00000001063c5fa8: shl $0x3,%rbx 0x00000001063c5fac: mov 0x10(%rbx),%rbx 0x00000001063c5fb0: test %rbx,%rbx 0x00000001063c5fb3: je 0x00000001063c5fbc 0x00000001063c5fb9: jmpq *0x38(%rbx) 0x00000001063c5fbc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c5fc1: hlt 0x00000001063c5fc2: hlt 0x00000001063c5fc3: hlt 0x00000001063c5fc4: hlt 0x00000001063c5fc5: hlt 0x00000001063c5fc6: hlt 0x00000001063c5fc7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;I)Ljava/lang/Object; [0x00000001063c5da0, 0x00000001063c5dd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc42a90} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;I)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' # parm10: [sp+0x28] = 'java/lang/Object' # parm11: [sp+0x30] = 'java/lang/Object' # parm12: [sp+0x38] = int 0x00000001063c5da0: mov 0x14(%rsi),%ebx 0x00000001063c5da3: shl $0x3,%rbx 0x00000001063c5da7: mov 0x28(%rbx),%ebx 0x00000001063c5daa: shl $0x3,%rbx 0x00000001063c5dae: mov 0x24(%rbx),%ebx 0x00000001063c5db1: shl $0x3,%rbx 0x00000001063c5db5: mov 0x10(%rbx),%rbx 0x00000001063c5db9: test %rbx,%rbx 0x00000001063c5dbc: je 0x00000001063c5dc5 0x00000001063c5dc2: jmpq *0x38(%rbx) 0x00000001063c5dc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c5dca: hlt 0x00000001063c5dcb: hlt 0x00000001063c5dcc: hlt 0x00000001063c5dcd: hlt 0x00000001063c5dce: hlt 0x00000001063c5dcf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c58a0, 0x00000001063c58c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc45040} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/Object' # parm11: [sp+0x28] = 'java/lang/Object' # parm12: [sp+0x30] = int # parm13: [sp+0x38] = int # parm14: [sp+0x40] = 'java/lang/invoke/MemberName' 0x00000001063c58a0: mov 0x48(%rsp),%rbx 0x00000001063c58a5: mov 0x24(%rbx),%ebx 0x00000001063c58a8: shl $0x3,%rbx 0x00000001063c58ac: mov 0x10(%rbx),%rbx 0x00000001063c58b0: test %rbx,%rbx 0x00000001063c58b3: je 0x00000001063c58bc 0x00000001063c58b9: jmpq *0x38(%rbx) 0x00000001063c58bc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c58c1: hlt 0x00000001063c58c2: hlt 0x00000001063c58c3: hlt 0x00000001063c58c4: hlt 0x00000001063c58c5: hlt 0x00000001063c58c6: hlt 0x00000001063c58c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;II)Ljava/lang/Object; [0x00000001063c56a0, 0x00000001063c56d0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc451a8} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;II)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' # parm10: [sp+0x28] = 'java/lang/Object' # parm11: [sp+0x30] = 'java/lang/Object' # parm12: [sp+0x38] = int # parm13: [sp+0x40] = int 0x00000001063c56a0: mov 0x14(%rsi),%ebx 0x00000001063c56a3: shl $0x3,%rbx 0x00000001063c56a7: mov 0x28(%rbx),%ebx 0x00000001063c56aa: shl $0x3,%rbx 0x00000001063c56ae: mov 0x24(%rbx),%ebx 0x00000001063c56b1: shl $0x3,%rbx 0x00000001063c56b5: mov 0x10(%rbx),%rbx 0x00000001063c56b9: test %rbx,%rbx 0x00000001063c56bc: je 0x00000001063c56c5 0x00000001063c56c2: jmpq *0x38(%rbx) 0x00000001063c56c5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c56ca: hlt 0x00000001063c56cb: hlt 0x00000001063c56cc: hlt 0x00000001063c56cd: hlt 0x00000001063c56ce: hlt 0x00000001063c56cf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c51a0, 0x00000001063c51c8] 40 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc465f8} 'linkToStatic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/Object' # parm4: r9:r9 = 'java/lang/Object' # parm5: rdi:rdi = 'java/lang/Object' # parm6: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm7: [sp+0x8] = 'java/lang/Object' # parm8: [sp+0x10] = 'java/lang/Object' # parm9: [sp+0x18] = 'java/lang/Object' # parm10: [sp+0x20] = 'java/lang/Object' # parm11: [sp+0x28] = 'java/lang/Object' # parm12: [sp+0x30] = int # parm13: [sp+0x38] = int # parm14: [sp+0x40] = 'java/lang/Object' # parm15: [sp+0x48] = 'java/lang/invoke/MemberName' 0x00000001063c51a0: mov 0x50(%rsp),%rbx 0x00000001063c51a5: mov 0x24(%rbx),%ebx 0x00000001063c51a8: shl $0x3,%rbx 0x00000001063c51ac: mov 0x10(%rbx),%rbx 0x00000001063c51b0: test %rbx,%rbx 0x00000001063c51b3: je 0x00000001063c51bc 0x00000001063c51b9: jmpq *0x38(%rbx) 0x00000001063c51bc: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c51c1: hlt 0x00000001063c51c2: hlt 0x00000001063c51c3: hlt 0x00000001063c51c4: hlt 0x00000001063c51c5: hlt 0x00000001063c51c6: hlt 0x00000001063c51c7: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c4fa0, 0x00000001063c4fd0] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc46710} 'invokeBasic' '(Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c4fa0: mov 0x14(%rsi),%ebx 0x00000001063c4fa3: shl $0x3,%rbx 0x00000001063c4fa7: mov 0x28(%rbx),%ebx 0x00000001063c4faa: shl $0x3,%rbx 0x00000001063c4fae: mov 0x24(%rbx),%ebx 0x00000001063c4fb1: shl $0x3,%rbx 0x00000001063c4fb5: mov 0x10(%rbx),%rbx 0x00000001063c4fb9: test %rbx,%rbx 0x00000001063c4fbc: je 0x00000001063c4fc5 0x00000001063c4fc2: jmpq *0x38(%rbx) 0x00000001063c4fc5: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c4fca: hlt 0x00000001063c4fcb: hlt 0x00000001063c4fcc: hlt 0x00000001063c4fcd: hlt 0x00000001063c4fce: hlt 0x00000001063c4fcf: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c8420, 0x00000001063c8440] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc46828} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c8420: cmp (%rsi),%rax 0x00000001063c8423: mov 0x24(%rcx),%ebx 0x00000001063c8426: shl $0x3,%rbx 0x00000001063c842a: mov 0x10(%rbx),%rbx 0x00000001063c842e: test %rbx,%rbx 0x00000001063c8431: je 0x00000001063c843a 0x00000001063c8437: jmpq *0x38(%rbx) 0x00000001063c843a: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c843f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/Object;)Ljava/lang/Object; [0x00000001063c8220, 0x00000001063c8250] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc469e0} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IILjava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # parm2: r8:r8 = 'java/lang/Object' # parm3: r9:r9 = 'java/lang/Object' # parm4: rdi:rdi = 'java/lang/Object' # parm5: [sp+0x0] = 'java/lang/Object' (sp of caller) # parm6: [sp+0x8] = 'java/lang/Object' # parm7: [sp+0x10] = 'java/lang/Object' # parm8: [sp+0x18] = 'java/lang/Object' # parm9: [sp+0x20] = 'java/lang/Object' # parm10: [sp+0x28] = 'java/lang/Object' # parm11: [sp+0x30] = 'java/lang/Object' # parm12: [sp+0x38] = int # parm13: [sp+0x40] = int # parm14: [sp+0x48] = 'java/lang/Object' 0x00000001063c8220: mov 0x14(%rsi),%ebx 0x00000001063c8223: shl $0x3,%rbx 0x00000001063c8227: mov 0x28(%rbx),%ebx 0x00000001063c822a: shl $0x3,%rbx 0x00000001063c822e: mov 0x24(%rbx),%ebx 0x00000001063c8231: shl $0x3,%rbx 0x00000001063c8235: mov 0x10(%rbx),%rbx 0x00000001063c8239: test %rbx,%rbx 0x00000001063c823c: je 0x00000001063c8245 0x00000001063c8242: jmpq *0x38(%rbx) 0x00000001063c8245: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c824a: hlt 0x00000001063c824b: hlt 0x00000001063c824c: hlt 0x00000001063c824d: hlt 0x00000001063c824e: hlt 0x00000001063c824f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063c8020, 0x00000001063c8050] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47128} 'invokeBasic' '(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: rdx:rdx = 'java/lang/Object' # parm1: rcx:rcx = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c8020: mov 0x14(%rsi),%ebx 0x00000001063c8023: shl $0x3,%rbx 0x00000001063c8027: mov 0x28(%rbx),%ebx 0x00000001063c802a: shl $0x3,%rbx 0x00000001063c802e: mov 0x24(%rbx),%ebx 0x00000001063c8031: shl $0x3,%rbx 0x00000001063c8035: mov 0x10(%rbx),%rbx 0x00000001063c8039: test %rbx,%rbx 0x00000001063c803c: je 0x00000001063c8045 0x00000001063c8042: jmpq *0x38(%rbx) 0x00000001063c8045: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c804a: hlt 0x00000001063c804b: hlt 0x00000001063c804c: hlt 0x00000001063c804d: hlt 0x00000001063c804e: hlt 0x00000001063c804f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c7e20, 0x00000001063c7e40] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47240} 'linkToSpecial' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx:rdx = 'java/lang/Object' # parm2: rcx:rcx = 'java/lang/Object' # parm3: r8:r8 = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c7e20: cmp (%rsi),%rax 0x00000001063c7e23: mov 0x24(%r8),%ebx 0x00000001063c7e27: shl $0x3,%rbx 0x00000001063c7e2b: mov 0x10(%rbx),%rbx 0x00000001063c7e2f: test %rbx,%rbx 0x00000001063c7e32: je 0x00000001063c7e3b 0x00000001063c7e38: jmpq *0x38(%rbx) 0x00000001063c7e3b: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(D)Ljava/lang/Object; [0x00000001063c7c20, 0x00000001063c7c50] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47358} 'invokeBasic' '(D)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: xmm0:xmm0 = double # [sp+0x0] (sp of caller) 0x00000001063c7c20: mov 0x14(%rsi),%ebx 0x00000001063c7c23: shl $0x3,%rbx 0x00000001063c7c27: mov 0x28(%rbx),%ebx 0x00000001063c7c2a: shl $0x3,%rbx 0x00000001063c7c2e: mov 0x24(%rbx),%ebx 0x00000001063c7c31: shl $0x3,%rbx 0x00000001063c7c35: mov 0x10(%rbx),%rbx 0x00000001063c7c39: test %rbx,%rbx 0x00000001063c7c3c: je 0x00000001063c7c45 0x00000001063c7c42: jmpq *0x38(%rbx) 0x00000001063c7c45: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c7c4a: hlt 0x00000001063c7c4b: hlt 0x00000001063c7c4c: hlt 0x00000001063c7c4d: hlt 0x00000001063c7c4e: hlt 0x00000001063c7c4f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;DLjava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c7820, 0x00000001063c7840] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47470} 'linkToSpecial' '(Ljava/lang/Object;DLjava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: xmm0:xmm0 = double # parm2: rdx:rdx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c7820: cmp (%rsi),%rax 0x00000001063c7823: mov 0x24(%rdx),%ebx 0x00000001063c7826: shl $0x3,%rbx 0x00000001063c782a: mov 0x10(%rbx),%rbx 0x00000001063c782e: test %rbx,%rbx 0x00000001063c7831: je 0x00000001063c783a 0x00000001063c7837: jmpq *0x38(%rbx) 0x00000001063c783a: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c783f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.invokeBasic(DLjava/lang/Object;)Ljava/lang/Object; [0x00000001063c7620, 0x00000001063c7650] 48 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47858} 'invokeBasic' '(DLjava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # this: rsi:rsi = 'java/lang/invoke/MethodHandle' # parm0: xmm0:xmm0 = double # parm1: rdx:rdx = 'java/lang/Object' # [sp+0x0] (sp of caller) 0x00000001063c7620: mov 0x14(%rsi),%ebx 0x00000001063c7623: shl $0x3,%rbx 0x00000001063c7627: mov 0x28(%rbx),%ebx 0x00000001063c762a: shl $0x3,%rbx 0x00000001063c762e: mov 0x24(%rbx),%ebx 0x00000001063c7631: shl $0x3,%rbx 0x00000001063c7635: mov 0x10(%rbx),%rbx 0x00000001063c7639: test %rbx,%rbx 0x00000001063c763c: je 0x00000001063c7645 0x00000001063c7642: jmpq *0x38(%rbx) 0x00000001063c7645: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c764a: hlt 0x00000001063c764b: hlt 0x00000001063c764c: hlt 0x00000001063c764d: hlt 0x00000001063c764e: hlt 0x00000001063c764f: hlt ---------------------------------------------------------------------- java/lang/invoke/MethodHandle.linkToSpecial(Ljava/lang/Object;DLjava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object; [0x00000001063c71a0, 0x00000001063c71c0] 32 bytes [Entry Point] [Verified Entry Point] # {method} {0x000000011dc47970} 'linkToSpecial' '(Ljava/lang/Object;DLjava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;' in 'java/lang/invoke/MethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # parm1: xmm0:xmm0 = double # parm2: rdx:rdx = 'java/lang/Object' # parm3: rcx:rcx = 'java/lang/invoke/MemberName' # [sp+0x0] (sp of caller) 0x00000001063c71a0: cmp (%rsi),%rax 0x00000001063c71a3: mov 0x24(%rcx),%ebx 0x00000001063c71a6: shl $0x3,%rbx 0x00000001063c71aa: mov 0x10(%rbx),%rbx 0x00000001063c71ae: test %rbx,%rbx 0x00000001063c71b1: je 0x00000001063c71ba 0x00000001063c71b7: jmpq *0x38(%rbx) 0x00000001063c71ba: jmpq 0x0000000106393880 ; {runtime_call AbstractMethodError throw_exception} 0x00000001063c71bf: hlt Time elapsed: 21.439 ms result=337 Warmup phase Compiled method (c2) 236 66 java.util.Objects::requireNonNull (14 bytes) total in heap [0x00000001063cdb10,0x00000001063cdd80] = 624 relocation [0x00000001063cdc88,0x00000001063cdc98] = 16 main code [0x00000001063cdca0,0x00000001063cdce0] = 64 stub code [0x00000001063cdce0,0x00000001063cdcf8] = 24 metadata [0x00000001063cdcf8,0x00000001063cdd00] = 8 scopes data [0x00000001063cdd00,0x00000001063cdd18] = 24 scopes pcs [0x00000001063cdd18,0x00000001063cdd78] = 96 dependencies [0x00000001063cdd78,0x00000001063cdd80] = 8 ---------------------------------------------------------------------- java/util/Objects.requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063cdca0, 0x00000001063cdcf8] 88 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d941640} 'requireNonNull' '(Ljava/lang/Object;)Ljava/lang/Object;' in 'java/util/Objects' # parm0: rsi:rsi = 'java/lang/Object' # [sp+0x30] (sp of caller) 0x00000001063cdca0: mov %eax,-0x14000(%rsp) 0x00000001063cdca7: push %rbp 0x00000001063cdca8: sub $0x20,%rsp ;*synchronization entry ; - java.util.Objects::requireNonNull@-1 (line 220) 0x00000001063cdcac: mov %rsi,%rax 0x00000001063cdcaf: test %rsi,%rsi 0x00000001063cdcb2: je 0x00000001063cdcc4 ;*ifnonnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Objects::requireNonNull@1 (line 220) 0x00000001063cdcb4: add $0x20,%rsp 0x00000001063cdcb8: pop %rbp 0x00000001063cdcb9: mov 0x108(%r15),%r10 0x00000001063cdcc0: test %eax,(%r10) ; {poll_return} 0x00000001063cdcc3: retq 0x00000001063cdcc4: mov $0xffffff4d,%esi 0x00000001063cdcc9: mov %rax,(%rsp) 0x00000001063cdccd: xchg %ax,%ax 0x00000001063cdccf: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop } ;*ifnonnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.Objects::requireNonNull@1 (line 220) ; {runtime_call UncommonTrapBlob} 0x00000001063cdcd4: ud2 ;*ifnonnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Objects::requireNonNull@1 (line 220) 0x00000001063cdcd6: hlt 0x00000001063cdcd7: hlt 0x00000001063cdcd8: hlt 0x00000001063cdcd9: hlt 0x00000001063cdcda: hlt 0x00000001063cdcdb: hlt 0x00000001063cdcdc: hlt 0x00000001063cdcdd: hlt 0x00000001063cdcde: hlt 0x00000001063cdcdf: hlt [Exception Handler] [Stub Code] 0x00000001063cdce0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cdce5: callq 0x00000001063cdcea 0x00000001063cdcea: subq $0x5,(%rsp) 0x00000001063cdcef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cdcf4: hlt 0x00000001063cdcf5: hlt 0x00000001063cdcf6: hlt 0x00000001063cdcf7: hlt ImmutableOopMap{[0]=Oop }pc offsets: 52 Compiled method (c2) 243 67 java.util.HashMap::hash (20 bytes) total in heap [0x00000001063cbc90,0x00000001063cc480] = 2032 relocation [0x00000001063cbe08,0x00000001063cbe28] = 32 main code [0x00000001063cbe40,0x00000001063cc080] = 576 stub code [0x00000001063cc080,0x00000001063cc098] = 24 metadata [0x00000001063cc098,0x00000001063cc0c8] = 48 scopes data [0x00000001063cc0c8,0x00000001063cc1e0] = 280 scopes pcs [0x00000001063cc1e0,0x00000001063cc460] = 640 dependencies [0x00000001063cc460,0x00000001063cc468] = 8 nul chk table [0x00000001063cc468,0x00000001063cc480] = 24 ---------------------------------------------------------------------- java/util/HashMap.hash(Ljava/lang/Object;)I [0x00000001063cbe40, 0x00000001063cc098] 600 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d949940} 'hash' '(Ljava/lang/Object;)I' in 'java/util/HashMap' # parm0: rsi:rsi = 'java/lang/Object' # [sp+0x30] (sp of caller) 0x00000001063cbe40: mov %eax,-0x14000(%rsp) 0x00000001063cbe47: push %rbp 0x00000001063cbe48: sub $0x20,%rsp ;*synchronization entry ; - java.util.HashMap::hash@-1 (line 339) 0x00000001063cbe4c: mov 0x8(%rsi),%r11d ; implicit exception: dispatches to 0x00000001063cc056 0x00000001063cbe50: cmp $0x13c78,%r11d ; {metadata('java/lang/Integer')} 0x00000001063cbe57: jne 0x00000001063cbe76 ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe59: mov 0xc(%rsi),%r11d ;*synchronization entry ; - java.util.HashMap::hash@-1 (line 339) 0x00000001063cbe5d: mov %r11d,%eax 0x00000001063cbe60: shr $0x10,%eax 0x00000001063cbe63: xor %r11d,%eax ;*ixor {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@18 (line 339) 0x00000001063cbe66: add $0x20,%rsp 0x00000001063cbe6a: pop %rbp 0x00000001063cbe6b: mov 0x108(%r15),%r10 0x00000001063cbe72: test %eax,(%r10) ; {poll_return} 0x00000001063cbe75: retq 0x00000001063cbe76: cmp $0x1808,%r11d ; {metadata('java/lang/String')} 0x00000001063cbe7d: jne 0x00000001063cc015 ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe83: mov 0x10(%rsi),%r11d ;*getfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@1 (line 1502) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe87: test %r11d,%r11d 0x00000001063cbe8a: jne 0x00000001063cbe5d ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@6 (line 1503) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe8c: mov 0xc(%rsi),%r9d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@10 (line 1503) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe90: mov 0xc(%r12,%r9,8),%r8d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@13 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; implicit exception: dispatches to 0x00000001063cc066 0x00000001063cbe95: test %r8d,%r8d 0x00000001063cbe98: jbe 0x00000001063cc00d ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@14 (line 1503) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbe9e: movsbl 0x14(%rsi),%ebp ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@7 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbea2: test %ebp,%ebp 0x00000001063cbea4: jne 0x00000001063cc042 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbeaa: mov %r8d,%ecx 0x00000001063cbead: dec %ecx 0x00000001063cbeaf: cmp %r8d,%ecx 0x00000001063cbeb2: jae 0x00000001063cc026 0x00000001063cbeb8: movzbl 0x10(%r12,%r9,8),%edi ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@31 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbebe: mov %r8d,%r13d 0x00000001063cbec1: add $0xfffffff9,%r13d 0x00000001063cbec5: lea (%r12,%r9,8),%rax ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@10 (line 1503) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbec9: mov $0x80000000,%r11d 0x00000001063cbecf: cmp %r13d,%ecx 0x00000001063cbed2: cmovl %r11d,%r13d 0x00000001063cbed6: mov $0x1,%r9d 0x00000001063cbedc: cmp $0x1,%r13d 0x00000001063cbee0: jle 0x00000001063cbfda 0x00000001063cbee6: mov %edi,%ebx 0x00000001063cbee8: shl $0x5,%ebx 0x00000001063cbeeb: sub %edi,%ebx ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbeed: jmp 0x00000001063cbef4 0x00000001063cbeef: vmovd %xmm1,%r8d 0x00000001063cbef4: mov %r13d,%r14d 0x00000001063cbef7: sub %r9d,%r14d 0x00000001063cbefa: mov $0x1f40,%r11d 0x00000001063cbf00: cmp %r11d,%r14d 0x00000001063cbf03: mov $0x1f40,%r10d 0x00000001063cbf09: cmovg %r10d,%r14d 0x00000001063cbf0d: add %r9d,%r14d 0x00000001063cbf10: vmovd %r8d,%xmm1 0x00000001063cbf15: data16 data16 nopw 0x0(%rax,%rax,1) ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbf20: movslq %r9d,%r11 ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@19 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbf23: movzbl 0x10(%rax,%r11,1),%r10d 0x00000001063cbf29: movzbl 0x17(%rax,%r11,1),%ecx 0x00000001063cbf2f: movzbl 0x11(%rax,%r11,1),%edx 0x00000001063cbf35: movzbl 0x16(%rax,%r11,1),%edi 0x00000001063cbf3b: movzbl 0x15(%rax,%r11,1),%ebp 0x00000001063cbf41: add %r10d,%ebx 0x00000001063cbf44: movzbl 0x13(%rax,%r11,1),%r10d 0x00000001063cbf4a: mov %ebx,%r8d 0x00000001063cbf4d: shl $0x5,%r8d 0x00000001063cbf51: sub %ebx,%r8d 0x00000001063cbf54: add %edx,%r8d 0x00000001063cbf57: movzbl 0x12(%rax,%r11,1),%ebx 0x00000001063cbf5d: movzbl 0x14(%rax,%r11,1),%edx 0x00000001063cbf63: mov %r8d,%r11d 0x00000001063cbf66: shl $0x5,%r11d 0x00000001063cbf6a: sub %r8d,%r11d 0x00000001063cbf6d: add %ebx,%r11d 0x00000001063cbf70: mov %r11d,%ebx 0x00000001063cbf73: shl $0x5,%ebx 0x00000001063cbf76: sub %r11d,%ebx 0x00000001063cbf79: add %r10d,%ebx 0x00000001063cbf7c: mov %ebx,%r10d 0x00000001063cbf7f: shl $0x5,%r10d 0x00000001063cbf83: sub %ebx,%r10d 0x00000001063cbf86: add %edx,%r10d 0x00000001063cbf89: mov %r10d,%r11d 0x00000001063cbf8c: shl $0x5,%r11d 0x00000001063cbf90: sub %r10d,%r11d 0x00000001063cbf93: add %ebp,%r11d 0x00000001063cbf96: mov %r11d,%r8d 0x00000001063cbf99: shl $0x5,%r8d 0x00000001063cbf9d: sub %r11d,%r8d 0x00000001063cbfa0: add %edi,%r8d 0x00000001063cbfa3: mov %r8d,%edi 0x00000001063cbfa6: shl $0x5,%edi 0x00000001063cbfa9: sub %r8d,%edi 0x00000001063cbfac: add %ecx,%edi ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfae: mov %edi,%ebx 0x00000001063cbfb0: shl $0x5,%ebx 0x00000001063cbfb3: sub %edi,%ebx ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfb5: add $0x8,%r9d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfb9: cmp %r14d,%r9d 0x00000001063cbfbc: jl 0x00000001063cbf20 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfc2: mov 0x108(%r15),%r10 ; ImmutableOopMap{rsi=Oop rax=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfc9: test %eax,(%r10) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; {poll} 0x00000001063cbfcc: cmp %r13d,%r9d 0x00000001063cbfcf: jl 0x00000001063cbeef 0x00000001063cbfd5: vmovd %xmm1,%r8d 0x00000001063cbfda: cmp %r8d,%r9d 0x00000001063cbfdd: jge 0x00000001063cc008 ;*aload_2 {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@16 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbfdf: movzbl 0x10(%rax,%r9,1),%ecx 0x00000001063cbfe5: mov %edi,%r11d 0x00000001063cbfe8: shl $0x5,%r11d 0x00000001063cbfec: sub %edi,%r11d 0x00000001063cbfef: add %ecx,%r11d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbff2: inc %r9d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbff5: cmp %r8d,%r9d 0x00000001063cbff8: jge 0x00000001063cbfff ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cbffa: mov %r11d,%edi 0x00000001063cbffd: jmp 0x00000001063cbfdf 0x00000001063cbfff: mov %r11d,0x10(%rsi) ;*putfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@44 (line 1505) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cc003: jmpq 0x00000001063cbe5d 0x00000001063cc008: mov %edi,%r11d 0x00000001063cc00b: jmp 0x00000001063cbfff 0x00000001063cc00d: xor %r11d,%r11d 0x00000001063cc010: jmpq 0x00000001063cbe5d 0x00000001063cc015: mov %rsi,%rbp 0x00000001063cc018: mov $0xffffffc6,%esi 0x00000001063cc01d: xchg %ax,%ax 0x00000001063cc01f: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) ; {runtime_call UncommonTrapBlob} 0x00000001063cc024: ud2 ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cc026: mov %rsi,%rbp 0x00000001063cc029: mov %r8d,0x4(%rsp) 0x00000001063cc02e: mov %r9d,0x8(%rsp) 0x00000001063cc033: mov $0xffffff7e,%esi 0x00000001063cc038: data16 xchg %ax,%ax 0x00000001063cc03b: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=NarrowOop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; {runtime_call UncommonTrapBlob} 0x00000001063cc040: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cc042: mov %rsi,0x8(%rsp) 0x00000001063cc047: mov $0xffffff4d,%esi 0x00000001063cc04c: data16 xchg %ax,%ax 0x00000001063cc04f: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop } ;*ifne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; {runtime_call UncommonTrapBlob} 0x00000001063cc054: ud2 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cc056: mov %rsi,(%rsp) 0x00000001063cc05a: mov $0xffffff4d,%esi 0x00000001063cc05f: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop } ;*ifnonnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@1 (line 339) ; {runtime_call UncommonTrapBlob} 0x00000001063cc064: ud2 ;*ifnonnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@1 (line 339) 0x00000001063cc066: mov $0xfffffff6,%esi 0x00000001063cc06b: callq 0x000000010637b900 ; ImmutableOopMap{} ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@13 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; {runtime_call UncommonTrapBlob} 0x00000001063cc070: ud2 ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@14 (line 1503) ; - java.util.HashMap::hash@9 (line 339) 0x00000001063cc072: hlt 0x00000001063cc073: hlt 0x00000001063cc074: hlt 0x00000001063cc075: hlt 0x00000001063cc076: hlt 0x00000001063cc077: hlt 0x00000001063cc078: hlt 0x00000001063cc079: hlt 0x00000001063cc07a: hlt 0x00000001063cc07b: hlt 0x00000001063cc07c: hlt 0x00000001063cc07d: hlt 0x00000001063cc07e: hlt 0x00000001063cc07f: hlt [Exception Handler] [Stub Code] 0x00000001063cc080: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cc085: callq 0x00000001063cc08a 0x00000001063cc08a: subq $0x5,(%rsp) 0x00000001063cc08f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cc094: hlt 0x00000001063cc095: hlt 0x00000001063cc096: hlt 0x00000001063cc097: hlt ImmutableOopMap{rsi=Oop rax=Oop }pc offsets: 393 ImmutableOopMap{rbp=Oop }pc offsets: 484 ImmutableOopMap{rbp=Oop [8]=NarrowOop }pc offsets: 512 ImmutableOopMap{[8]=Oop }pc offsets: 532 ImmutableOopMap{[0]=Oop }pc offsets: 548 ImmutableOopMap{}pc offsets: 560 Compiled method (c2) 253 68 java.lang.Number::<init> (5 bytes) total in heap [0x00000001063cba10,0x00000001063cbc48] = 568 relocation [0x00000001063cbb88,0x00000001063cbb98] = 16 main code [0x00000001063cbba0,0x00000001063cbbe0] = 64 stub code [0x00000001063cbbe0,0x00000001063cbbf8] = 24 metadata [0x00000001063cbbf8,0x00000001063cbc08] = 16 scopes data [0x00000001063cbc08,0x00000001063cbc10] = 8 scopes pcs [0x00000001063cbc10,0x00000001063cbc40] = 48 dependencies [0x00000001063cbc40,0x00000001063cbc48] = 8 ---------------------------------------------------------------------- java/lang/Number.<init>()V [0x00000001063cbba0, 0x00000001063cbbf8] 88 bytes [Entry Point] [Constants] # {method} {0x000000011d912cf8} '<init>' '()V' in 'java/lang/Number' # [sp+0x20] (sp of caller) 0x00000001063cbba0: mov 0x8(%rsi),%r10d 0x00000001063cbba4: movabs $0x800000000,%r12 0x00000001063cbbae: add %r12,%r10 0x00000001063cbbb1: xor %r12,%r12 0x00000001063cbbb4: cmp %r10,%rax 0x00000001063cbbb7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063cbbbd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063cbbc0: sub $0x18,%rsp 0x00000001063cbbc7: mov %rbp,0x10(%rsp) ;*synchronization entry ; - java.lang.Number::<init>@-1 (line 55) 0x00000001063cbbcc: add $0x10,%rsp 0x00000001063cbbd0: pop %rbp 0x00000001063cbbd1: mov 0x108(%r15),%r10 0x00000001063cbbd8: test %eax,(%r10) ; {poll_return} 0x00000001063cbbdb: retq 0x00000001063cbbdc: hlt 0x00000001063cbbdd: hlt 0x00000001063cbbde: hlt 0x00000001063cbbdf: hlt [Exception Handler] [Stub Code] 0x00000001063cbbe0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cbbe5: callq 0x00000001063cbbea 0x00000001063cbbea: subq $0x5,(%rsp) 0x00000001063cbbef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cbbf4: hlt 0x00000001063cbbf5: hlt 0x00000001063cbbf6: hlt 0x00000001063cbbf7: hlt Compiled method (c2) 255 69 java.lang.Integer::valueOf (32 bytes) total in heap [0x00000001063cb590,0x00000001063cb9c0] = 1072 relocation [0x00000001063cb708,0x00000001063cb728] = 32 main code [0x00000001063cb740,0x00000001063cb840] = 256 stub code [0x00000001063cb840,0x00000001063cb858] = 24 oops [0x00000001063cb858,0x00000001063cb860] = 8 metadata [0x00000001063cb860,0x00000001063cb870] = 16 scopes data [0x00000001063cb870,0x00000001063cb8c0] = 80 scopes pcs [0x00000001063cb8c0,0x00000001063cb9a0] = 224 dependencies [0x00000001063cb9a0,0x00000001063cb9a8] = 8 handler table [0x00000001063cb9a8,0x00000001063cb9c0] = 24 ---------------------------------------------------------------------- java/lang/Integer.valueOf(I)Ljava/lang/Integer; [0x00000001063cb740, 0x00000001063cb858] 280 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d91ba30} 'valueOf' '(I)Ljava/lang/Integer;' in 'java/lang/Integer' # parm0: rsi = int # [sp+0x30] (sp of caller) 0x00000001063cb740: mov %eax,-0x14000(%rsp) 0x00000001063cb747: push %rbp 0x00000001063cb748: sub $0x20,%rsp ;*synchronization entry ; - java.lang.Integer::valueOf@-1 (line 1048) 0x00000001063cb74c: mov %esi,(%rsp) 0x00000001063cb74f: cmp $0xffffff80,%esi 0x00000001063cb752: jl 0x00000001063cb7fe ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) 0x00000001063cb758: cmp $0x7f,%esi 0x00000001063cb75b: jle 0x00000001063cb7bf ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@10 (line 1048) 0x00000001063cb75d: mov 0x118(%r15),%rax 0x00000001063cb764: mov %rax,%r10 0x00000001063cb767: add $0x10,%r10 0x00000001063cb76b: cmp 0x128(%r15),%r10 0x00000001063cb772: jae 0x00000001063cb7ea 0x00000001063cb774: mov %r10,0x118(%r15) 0x00000001063cb77b: prefetchnta 0xc0(%r10) 0x00000001063cb783: mov $0x13c78,%r11d ; {metadata('java/lang/Integer')} 0x00000001063cb789: movabs $0x800000000,%r10 0x00000001063cb793: add %r11,%r10 0x00000001063cb796: mov 0xb8(%r10),%r10 0x00000001063cb79d: mov %r10,(%rax) 0x00000001063cb7a0: movl $0x13c78,0x8(%rax) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; {metadata('java/lang/Integer')} 0x00000001063cb7a7: mov (%rsp),%r11d 0x00000001063cb7ab: mov %r11d,0xc(%rax) ;*synchronization entry ; - java.lang.Integer::valueOf@-1 (line 1048) 0x00000001063cb7af: add $0x20,%rsp 0x00000001063cb7b3: pop %rbp 0x00000001063cb7b4: mov 0x108(%r15),%r10 0x00000001063cb7bb: test %eax,(%r10) ; {poll_return} 0x00000001063cb7be: retq 0x00000001063cb7bf: mov %esi,%ebp 0x00000001063cb7c1: add $0x80,%ebp ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@20 (line 1049) 0x00000001063cb7c7: cmp $0x100,%ebp 0x00000001063cb7cd: jae 0x00000001063cb80e 0x00000001063cb7cf: movslq %esi,%r10 0x00000001063cb7d2: movabs $0x70ff1e8c8,%r11 ; {oop(a 'java/lang/Integer'[256] {0x000000070ff1e8c8})} 0x00000001063cb7dc: mov 0x210(%r11,%r10,4),%r10d 0x00000001063cb7e4: lea (%r12,%r10,8),%rax ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) 0x00000001063cb7e8: jmp 0x00000001063cb7af 0x00000001063cb7ea: movabs $0x800013c78,%rsi ; {metadata('java/lang/Integer')} 0x00000001063cb7f4: mov (%rsp),%ebp 0x00000001063cb7f7: callq 0x00000001063b0100 ; ImmutableOopMap{} ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.Integer::valueOf@23 (line 1050) ; {runtime_call _new_instance_Java} 0x00000001063cb7fc: jmp 0x00000001063cb7a7 0x00000001063cb7fe: mov $0xffffff4d,%esi 0x00000001063cb803: mov (%rsp),%ebp 0x00000001063cb806: nop 0x00000001063cb807: callq 0x000000010637b900 ; ImmutableOopMap{} ;*if_icmplt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; {runtime_call UncommonTrapBlob} 0x00000001063cb80c: ud2 ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) 0x00000001063cb80e: mov $0xffffffe4,%esi 0x00000001063cb813: callq 0x000000010637b900 ; ImmutableOopMap{} ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; {runtime_call UncommonTrapBlob} 0x00000001063cb818: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) 0x00000001063cb81a: mov %rax,%rsi 0x00000001063cb81d: add $0x20,%rsp 0x00000001063cb821: pop %rbp 0x00000001063cb822: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063cb827: hlt 0x00000001063cb828: hlt 0x00000001063cb829: hlt 0x00000001063cb82a: hlt 0x00000001063cb82b: hlt 0x00000001063cb82c: hlt 0x00000001063cb82d: hlt 0x00000001063cb82e: hlt 0x00000001063cb82f: hlt 0x00000001063cb830: hlt 0x00000001063cb831: hlt 0x00000001063cb832: hlt 0x00000001063cb833: hlt 0x00000001063cb834: hlt 0x00000001063cb835: hlt 0x00000001063cb836: hlt 0x00000001063cb837: hlt 0x00000001063cb838: hlt 0x00000001063cb839: hlt 0x00000001063cb83a: hlt 0x00000001063cb83b: hlt 0x00000001063cb83c: hlt 0x00000001063cb83d: hlt 0x00000001063cb83e: hlt 0x00000001063cb83f: hlt [Exception Handler] [Stub Code] 0x00000001063cb840: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cb845: callq 0x00000001063cb84a 0x00000001063cb84a: subq $0x5,(%rsp) 0x00000001063cb84f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cb854: hlt 0x00000001063cb855: hlt 0x00000001063cb856: hlt 0x00000001063cb857: hlt ImmutableOopMap{}pc offsets: 188 204 216 Compiled method (c2) 258 70 java.util.HashMap::getNode (148 bytes) total in heap [0x00000001063cad10,0x00000001063cb490] = 1920 relocation [0x00000001063cae88,0x00000001063caeb0] = 40 main code [0x00000001063caec0,0x00000001063cb080] = 448 stub code [0x00000001063cb080,0x00000001063cb098] = 24 metadata [0x00000001063cb098,0x00000001063cb0b8] = 32 scopes data [0x00000001063cb0b8,0x00000001063cb230] = 376 scopes pcs [0x00000001063cb230,0x00000001063cb460] = 560 dependencies [0x00000001063cb460,0x00000001063cb468] = 8 nul chk table [0x00000001063cb468,0x00000001063cb490] = 40 ---------------------------------------------------------------------- java/util/HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; [0x00000001063caec0, 0x00000001063cb098] 472 bytes [Entry Point] [Constants] # {method} {0x000000011d94a540} 'getNode' '(ILjava/lang/Object;)Ljava/util/HashMap$Node;' in 'java/util/HashMap' # this: rsi:rsi = 'java/util/HashMap' # parm0: rdx = int # parm1: rcx:rcx = 'java/lang/Object' # [sp+0x40] (sp of caller) 0x00000001063caec0: mov 0x8(%rsi),%r10d 0x00000001063caec4: movabs $0x800000000,%r12 0x00000001063caece: add %r12,%r10 0x00000001063caed1: xor %r12,%r12 0x00000001063caed4: cmp %r10,%rax 0x00000001063caed7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063caedd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063caee0: mov %eax,-0x14000(%rsp) 0x00000001063caee7: push %rbp 0x00000001063caee8: sub $0x30,%rsp ;*synchronization entry ; - java.util.HashMap::getNode@-1 (line 564) 0x00000001063caeec: mov 0x24(%rsi),%r10d ;*getfield table {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@1 (line 564) 0x00000001063caef0: mov 0xc(%r12,%r10,8),%r8d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@10 (line 564) ; implicit exception: dispatches to 0x00000001063cb01e 0x00000001063caef5: test %r8d,%r8d 0x00000001063caef8: jbe 0x00000001063caf8e ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) 0x00000001063caefe: shl $0x3,%r10 0x00000001063caf02: dec %r8d 0x00000001063caf05: and %edx,%r8d 0x00000001063caf08: mov 0x10(%r10,%r8,4),%r10d ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@24 (line 564) 0x00000001063caf0d: mov 0xc(%r12,%r10,8),%ebp ;*getfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@33 (line 566) ; implicit exception: dispatches to 0x00000001063cb036 0x00000001063caf12: cmp %edx,%ebp 0x00000001063caf14: jne 0x00000001063cafaa ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) 0x00000001063caf1a: mov 0x10(%r12,%r10,8),%r8d ;*getfield key {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@42 (line 566) 0x00000001063caf1f: mov %r8,%r11 0x00000001063caf22: shl $0x3,%r11 0x00000001063caf26: cmp %rcx,%r11 0x00000001063caf29: je 0x00000001063caf5b ;*if_acmpeq {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@49 (line 566) 0x00000001063caf2b: mov 0x8(%rcx),%r9d ; implicit exception: dispatches to 0x00000001063cb04e 0x00000001063caf2f: cmp $0x13c78,%r9d ; {metadata('java/lang/Integer')} 0x00000001063caf36: jne 0x00000001063caf6f ;*invokevirtual equals {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf38: mov 0x8(%r12,%r8,8),%r9d ; implicit exception: dispatches to 0x00000001063cb006 0x00000001063caf3d: cmp $0x13c78,%r9d ; {metadata('java/lang/Integer')} 0x00000001063caf44: jne 0x00000001063cafe6 ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf4a: mov 0xc(%rcx),%r9d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@8 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf4e: lea (%r12,%r8,8),%r11 ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf52: mov 0xc(%r11),%ebp ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::intValue@1 (line 1123) ; - java.lang.Integer::equals@15 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf56: cmp %ebp,%r9d 0x00000001063caf59: jne 0x00000001063cafc6 ;*aload {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@65 (line 568) 0x00000001063caf5b: lea (%r12,%r10,8),%rax ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@24 (line 564) 0x00000001063caf5f: add $0x30,%rsp 0x00000001063caf63: pop %rbp 0x00000001063caf64: mov 0x108(%r15),%r10 0x00000001063caf6b: test %eax,(%r10) ; {poll_return} 0x00000001063caf6e: retq 0x00000001063caf6f: mov $0xffffffde,%esi 0x00000001063caf74: mov %edx,%ebp 0x00000001063caf76: mov %rcx,0x8(%rsp) 0x00000001063caf7b: mov %r10d,0x10(%rsp) 0x00000001063caf80: mov %r8d,0x14(%rsp) 0x00000001063caf85: xchg %ax,%ax 0x00000001063caf87: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=NarrowOop [20]=NarrowOop } ;*invokevirtual equals {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@59 (line 567) ; {runtime_call UncommonTrapBlob} 0x00000001063caf8c: ud2 ;*invokevirtual equals {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063caf8e: mov $0xffffff4d,%esi 0x00000001063caf93: mov %edx,%ebp 0x00000001063caf95: mov %rcx,(%rsp) 0x00000001063caf99: mov %r10d,0x8(%rsp) 0x00000001063caf9e: mov %r8d,0x10(%rsp) 0x00000001063cafa3: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=NarrowOop } ;*ifle {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) ; {runtime_call UncommonTrapBlob} 0x00000001063cafa8: ud2 ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) 0x00000001063cafaa: mov $0xffffff4d,%esi 0x00000001063cafaf: mov %rcx,0x8(%rsp) 0x00000001063cafb4: mov %edx,0x4(%rsp) 0x00000001063cafb8: mov %r10d,0x10(%rsp) 0x00000001063cafbd: xchg %ax,%ax 0x00000001063cafbf: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=NarrowOop } ;*if_icmpne {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) ; {runtime_call UncommonTrapBlob} 0x00000001063cafc4: ud2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) 0x00000001063cafc6: mov $0xffffff4d,%esi 0x00000001063cafcb: mov %edx,(%rsp) 0x00000001063cafce: mov %rcx,0x8(%rsp) 0x00000001063cafd3: mov %r10d,0x4(%rsp) 0x00000001063cafd8: mov %r9d,0x10(%rsp) 0x00000001063cafdd: xchg %ax,%ax 0x00000001063cafdf: callq 0x000000010637b900 ; ImmutableOopMap{[4]=NarrowOop [8]=Oop } ;*if_icmpne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@18 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; {runtime_call UncommonTrapBlob} 0x00000001063cafe4: ud2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@18 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063cafe6: mov $0xffffffde,%esi 0x00000001063cafeb: mov %edx,%ebp 0x00000001063cafed: mov %rcx,0x8(%rsp) 0x00000001063caff2: mov %r10d,0x10(%rsp) 0x00000001063caff7: mov %r8d,0x18(%rsp) 0x00000001063caffc: data16 xchg %ax,%ax 0x00000001063cafff: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=NarrowOop [24]=NarrowOop } ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; {runtime_call UncommonTrapBlob} 0x00000001063cb004: ud2 0x00000001063cb006: mov $0xfffffff4,%esi 0x00000001063cb00b: mov %edx,%ebp 0x00000001063cb00d: mov %rcx,0x8(%rsp) 0x00000001063cb012: mov %r10d,0x10(%rsp) 0x00000001063cb017: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=NarrowOop } ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; {runtime_call UncommonTrapBlob} 0x00000001063cb01c: ud2 ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) 0x00000001063cb01e: mov $0xffffff4d,%esi 0x00000001063cb023: mov %edx,%ebp 0x00000001063cb025: mov %rcx,(%rsp) 0x00000001063cb029: mov %r10d,0xc(%rsp) 0x00000001063cb02e: nop 0x00000001063cb02f: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [12]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@6 (line 564) ; {runtime_call UncommonTrapBlob} 0x00000001063cb034: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@6 (line 564) 0x00000001063cb036: mov $0xffffff4d,%esi 0x00000001063cb03b: mov %edx,%ebp 0x00000001063cb03d: mov %rcx,(%rsp) 0x00000001063cb041: mov %r10d,0xc(%rsp) 0x00000001063cb046: nop 0x00000001063cb047: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [12]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@28 (line 564) ; {runtime_call UncommonTrapBlob} 0x00000001063cb04c: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@28 (line 564) 0x00000001063cb04e: mov $0xffffff4d,%esi 0x00000001063cb053: mov %edx,%ebp 0x00000001063cb055: mov %rcx,0x8(%rsp) 0x00000001063cb05a: mov %r10d,0x10(%rsp) 0x00000001063cb05f: mov %r8d,0x14(%rsp) 0x00000001063cb064: data16 xchg %ax,%ax 0x00000001063cb067: callq 0x000000010637b900 ; ImmutableOopMap{[8]=Oop [16]=NarrowOop [20]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@53 (line 566) ; {runtime_call UncommonTrapBlob} 0x00000001063cb06c: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@53 (line 566) 0x00000001063cb06e: hlt 0x00000001063cb06f: hlt 0x00000001063cb070: hlt 0x00000001063cb071: hlt 0x00000001063cb072: hlt 0x00000001063cb073: hlt 0x00000001063cb074: hlt 0x00000001063cb075: hlt 0x00000001063cb076: hlt 0x00000001063cb077: hlt 0x00000001063cb078: hlt 0x00000001063cb079: hlt 0x00000001063cb07a: hlt 0x00000001063cb07b: hlt 0x00000001063cb07c: hlt 0x00000001063cb07d: hlt 0x00000001063cb07e: hlt 0x00000001063cb07f: hlt [Exception Handler] [Stub Code] 0x00000001063cb080: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cb085: callq 0x00000001063cb08a 0x00000001063cb08a: subq $0x5,(%rsp) 0x00000001063cb08f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cb094: hlt 0x00000001063cb095: hlt 0x00000001063cb096: hlt 0x00000001063cb097: hlt ImmutableOopMap{[8]=Oop [16]=NarrowOop [20]=NarrowOop }pc offsets: 204 ImmutableOopMap{[0]=Oop [8]=NarrowOop }pc offsets: 232 ImmutableOopMap{[8]=Oop [16]=NarrowOop }pc offsets: 260 ImmutableOopMap{[4]=NarrowOop [8]=Oop }pc offsets: 292 ImmutableOopMap{[8]=Oop [16]=NarrowOop [24]=NarrowOop }pc offsets: 324 ImmutableOopMap{[8]=Oop [16]=NarrowOop }pc offsets: 348 ImmutableOopMap{[0]=Oop [12]=NarrowOop }pc offsets: 372 396 ImmutableOopMap{[8]=Oop [16]=NarrowOop [20]=NarrowOop }pc offsets: 428 Compiled method (c2) 270 71 java.util.HashMap::get (23 bytes) total in heap [0x00000001063ce910,0x00000001063cf6c8] = 3512 relocation [0x00000001063cea88,0x00000001063ceac0] = 56 main code [0x00000001063ceac0,0x00000001063ceee0] = 1056 stub code [0x00000001063ceee0,0x00000001063ceef8] = 24 metadata [0x00000001063ceef8,0x00000001063cef48] = 80 scopes data [0x00000001063cef48,0x00000001063cf240] = 760 scopes pcs [0x00000001063cf240,0x00000001063cf690] = 1104 dependencies [0x00000001063cf690,0x00000001063cf698] = 8 nul chk table [0x00000001063cf698,0x00000001063cf6c8] = 48 ---------------------------------------------------------------------- java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063ceac0, 0x00000001063ceef8] 1080 bytes [Entry Point] [Constants] # {method} {0x000000011d94a398} 'get' '(Ljava/lang/Object;)Ljava/lang/Object;' in 'java/util/HashMap' # this: rsi:rsi = 'java/util/HashMap' # parm0: rdx:rdx = 'java/lang/Object' # [sp+0x40] (sp of caller) 0x00000001063ceac0: mov 0x8(%rsi),%r10d 0x00000001063ceac4: movabs $0x800000000,%r12 0x00000001063ceace: add %r12,%r10 0x00000001063cead1: xor %r12,%r12 0x00000001063cead4: cmp %r10,%rax 0x00000001063cead7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063ceadd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063ceae0: mov %eax,-0x14000(%rsp) 0x00000001063ceae7: push %rbp 0x00000001063ceae8: sub $0x30,%rsp ;*synchronization entry ; - java.util.HashMap::get@-1 (line 552) 0x00000001063ceaec: mov 0x8(%rdx),%r14d ; implicit exception: dispatches to 0x00000001063cee7a 0x00000001063ceaf0: cmp $0x13c78,%r14d ; {metadata('java/lang/Integer')} 0x00000001063ceaf7: jne 0x00000001063ceb9d 0x00000001063ceafd: mov %rdx,%r10 ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ceb00: mov 0xc(%r10),%r8d ;*synchronization entry ; - java.util.HashMap::hash@-1 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ceb04: mov 0x24(%rsi),%r9d ;*getfield table {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@1 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb08: mov %r8d,%r10d 0x00000001063ceb0b: shr $0x10,%r10d 0x00000001063ceb0f: xor %r8d,%r10d ;*ixor {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@18 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ceb12: mov 0xc(%r12,%r9,8),%r11d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@10 (line 564) ; - java.util.HashMap::get@6 (line 552) ; implicit exception: dispatches to 0x00000001063cee96 0x00000001063ceb17: test %r11d,%r11d 0x00000001063ceb1a: jbe 0x00000001063ced82 ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb20: dec %r11d 0x00000001063ceb23: and %r10d,%r11d 0x00000001063ceb26: lea (%r12,%r9,8),%r8 0x00000001063ceb2a: mov 0x10(%r8,%r11,4),%r11d ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@24 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb2f: mov 0xc(%r12,%r11,8),%r9d ;*getfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@33 (line 566) ; - java.util.HashMap::get@6 (line 552) ; implicit exception: dispatches to 0x00000001063ceeae 0x00000001063ceb34: cmp %r10d,%r9d 0x00000001063ceb37: jne 0x00000001063ceda2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb3d: mov 0x10(%r12,%r11,8),%r8d ;*getfield key {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@42 (line 566) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb42: mov %r8,%r9 0x00000001063ceb45: shl $0x3,%r9 0x00000001063ceb49: cmp %rdx,%r9 0x00000001063ceb4c: je 0x00000001063ceb81 ;*if_acmpeq {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@49 (line 566) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb4e: cmp $0x13c78,%r14d ; {metadata('java/lang/Integer')} 0x00000001063ceb55: jne 0x00000001063ced63 ;*invokevirtual equals {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb5b: mov 0x8(%r12,%r8,8),%r9d ; implicit exception: dispatches to 0x00000001063cee5e 0x00000001063ceb60: cmp $0x13c78,%r9d ; {metadata('java/lang/Integer')} 0x00000001063ceb67: jne 0x00000001063cee3e ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb6d: mov 0xc(%rdx),%ecx ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@8 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb70: shl $0x3,%r8 ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb74: mov 0xc(%r8),%r8d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::intValue@1 (line 1123) ; - java.lang.Integer::equals@15 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceb78: cmp %r8d,%ecx 0x00000001063ceb7b: jne 0x00000001063cedc2 ;*synchronization entry ; - java.util.HashMap::get@-1 (line 552) 0x00000001063ceb81: mov 0x14(%r12,%r11,8),%r10d 0x00000001063ceb86: mov %r10,%rax 0x00000001063ceb89: shl $0x3,%rax ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::get@19 (line 552) 0x00000001063ceb8d: add $0x30,%rsp 0x00000001063ceb91: pop %rbp 0x00000001063ceb92: mov 0x108(%r15),%r10 0x00000001063ceb99: test %eax,(%r10) ; {poll_return} 0x00000001063ceb9c: retq 0x00000001063ceb9d: cmp $0x1808,%r14d ; {metadata('java/lang/String')} 0x00000001063ceba4: jne 0x00000001063cede6 0x00000001063cebaa: mov %rdx,%rdi ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebad: mov 0x10(%rdi),%r8d ;*getfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@1 (line 1502) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebb1: test %r8d,%r8d 0x00000001063cebb4: jne 0x00000001063ceb04 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@6 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebba: mov 0xc(%rdi),%r8d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@10 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebbe: mov 0xc(%r12,%r8,8),%r9d ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@13 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; implicit exception: dispatches to 0x00000001063ceec6 0x00000001063cebc3: test %r9d,%r9d 0x00000001063cebc6: jbe 0x00000001063ced5b ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@14 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebcc: movsbl 0x14(%rdi),%ebp ;*getfield coder {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@7 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebd0: test %ebp,%ebp 0x00000001063cebd2: jne 0x00000001063cee22 ;*ifne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebd8: mov %r9d,%ecx 0x00000001063cebdb: dec %ecx 0x00000001063cebdd: cmp %r9d,%ecx 0x00000001063cebe0: jae 0x00000001063cedfe 0x00000001063cebe6: movzbl 0x10(%r12,%r8,8),%r10d ;*iand {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@31 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebec: mov %r9d,%eax 0x00000001063cebef: add $0xfffffff9,%eax 0x00000001063cebf2: lea (%r12,%r8,8),%rcx ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@10 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cebf6: mov $0x1,%ebx 0x00000001063cebfb: cmp $0x1,%eax 0x00000001063cebfe: jle 0x00000001063ced46 0x00000001063cec04: mov %r10d,%r8d 0x00000001063cec07: shl $0x5,%r8d 0x00000001063cec0b: sub %r10d,%r8d ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec0e: jmp 0x00000001063cec44 ;*aload_2 {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@16 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec10: movzbl 0x10(%rcx,%rbx,1),%eax 0x00000001063cec15: mov %r10d,%r8d 0x00000001063cec18: shl $0x5,%r8d 0x00000001063cec1c: sub %r10d,%r8d 0x00000001063cec1f: add %eax,%r8d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec22: inc %ebx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec24: cmp %r9d,%ebx 0x00000001063cec27: jge 0x00000001063ced52 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec2d: mov %r8d,%r10d 0x00000001063cec30: jmp 0x00000001063cec10 0x00000001063cec32: vmovq %xmm0,%rdi 0x00000001063cec37: vmovd %xmm1,%r9d 0x00000001063cec3c: vmovq %xmm2,%rsi 0x00000001063cec41: mov (%rsp),%eax 0x00000001063cec44: mov %r9d,%r10d 0x00000001063cec47: sub %ebx,%r10d 0x00000001063cec4a: add $0xfffffff9,%r10d 0x00000001063cec4e: mov $0x1f40,%r11d 0x00000001063cec54: cmp %r10d,%r11d 0x00000001063cec57: mov $0x1f40,%ebp 0x00000001063cec5c: cmovg %r10d,%ebp 0x00000001063cec60: add %ebx,%ebp 0x00000001063cec62: vmovq %rdi,%xmm0 0x00000001063cec67: vmovd %r9d,%xmm1 0x00000001063cec6c: vmovq %rsi,%xmm2 0x00000001063cec71: mov %eax,(%rsp) 0x00000001063cec74: nopl 0x0(%rax,%rax,1) 0x00000001063cec7c: data16 data16 xchg %ax,%ax ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec80: movslq %ebx,%r10 ;*baload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@19 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cec83: movzbl 0x10(%rcx,%r10,1),%r9d 0x00000001063cec89: movzbl 0x17(%rcx,%r10,1),%eax 0x00000001063cec8f: add %r9d,%r8d 0x00000001063cec92: movzbl 0x16(%rcx,%r10,1),%edi 0x00000001063cec98: mov %r8d,%esi 0x00000001063cec9b: shl $0x5,%esi 0x00000001063cec9e: sub %r8d,%esi 0x00000001063ceca1: movzbl 0x15(%rcx,%r10,1),%r11d 0x00000001063ceca7: movzbl 0x14(%rcx,%r10,1),%r9d 0x00000001063cecad: movzbl 0x13(%rcx,%r10,1),%r8d 0x00000001063cecb3: movzbl 0x12(%rcx,%r10,1),%r13d 0x00000001063cecb9: movzbl 0x11(%rcx,%r10,1),%r10d 0x00000001063cecbf: add %r10d,%esi 0x00000001063cecc2: mov %esi,%r10d 0x00000001063cecc5: shl $0x5,%r10d 0x00000001063cecc9: sub %esi,%r10d 0x00000001063ceccc: add %r13d,%r10d 0x00000001063ceccf: mov %r10d,%esi 0x00000001063cecd2: shl $0x5,%esi 0x00000001063cecd5: sub %r10d,%esi 0x00000001063cecd8: add %r8d,%esi 0x00000001063cecdb: mov %esi,%r10d 0x00000001063cecde: shl $0x5,%r10d 0x00000001063cece2: sub %esi,%r10d 0x00000001063cece5: add %r9d,%r10d 0x00000001063cece8: mov %r10d,%r9d 0x00000001063ceceb: shl $0x5,%r9d 0x00000001063cecef: sub %r10d,%r9d 0x00000001063cecf2: add %r11d,%r9d 0x00000001063cecf5: mov %r9d,%r11d 0x00000001063cecf8: shl $0x5,%r11d 0x00000001063cecfc: sub %r9d,%r11d 0x00000001063cecff: add %edi,%r11d 0x00000001063ced02: mov %r11d,%r10d 0x00000001063ced05: shl $0x5,%r10d 0x00000001063ced09: sub %r11d,%r10d 0x00000001063ced0c: add %eax,%r10d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@32 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced0f: mov %r10d,%r8d 0x00000001063ced12: shl $0x5,%r8d 0x00000001063ced16: sub %r10d,%r8d ;*imul {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@25 (line 196) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced19: add $0x8,%ebx ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@34 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced1c: cmp %ebp,%ebx 0x00000001063ced1e: jl 0x00000001063cec80 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced24: mov 0x108(%r15),%r11 ; ImmutableOopMap{rcx=Oop rdx=Oop xmm0=Oop xmm2=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced2b: test %eax,(%r11) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@37 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {poll} 0x00000001063ced2e: cmp (%rsp),%ebx 0x00000001063ced31: jl 0x00000001063cec32 0x00000001063ced37: vmovq %xmm0,%rdi 0x00000001063ced3c: vmovd %xmm1,%r9d 0x00000001063ced41: vmovq %xmm2,%rsi 0x00000001063ced46: cmp %r9d,%ebx 0x00000001063ced49: jl 0x00000001063cec10 0x00000001063ced4f: mov %r10d,%r8d 0x00000001063ced52: mov %r8d,0x10(%rdi) ;*putfield hash {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@44 (line 1505) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ced56: jmpq 0x00000001063ceb04 0x00000001063ced5b: xor %r8d,%r8d 0x00000001063ced5e: jmpq 0x00000001063ceb04 0x00000001063ced63: mov $0xffffffde,%esi 0x00000001063ced68: mov %r10d,%ebp 0x00000001063ced6b: mov %r11d,0x8(%rsp) 0x00000001063ced70: mov %rdx,0x10(%rsp) 0x00000001063ced75: mov %r8d,0xc(%rsp) 0x00000001063ced7a: nop 0x00000001063ced7b: callq 0x000000010637b900 ; ImmutableOopMap{[8]=NarrowOop [12]=NarrowOop [16]=Oop } ;*invokevirtual equals {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063ced80: ud2 ;*ifle {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ced82: mov $0xffffff4d,%esi 0x00000001063ced87: mov %r10d,%ebp 0x00000001063ced8a: mov %rdx,(%rsp) 0x00000001063ced8e: mov %r9d,0x8(%rsp) 0x00000001063ced93: mov %r11d,0x10(%rsp) 0x00000001063ced98: data16 xchg %ax,%ax 0x00000001063ced9b: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=NarrowOop } ;*ifle {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@14 (line 564) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063ceda0: ud2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceda2: mov $0xffffff4d,%esi 0x00000001063ceda7: mov %rdx,(%rsp) 0x00000001063cedab: mov %r11d,0x8(%rsp) 0x00000001063cedb0: mov %r9d,0xc(%rsp) 0x00000001063cedb5: mov %r10d,0x10(%rsp) 0x00000001063cedba: nop 0x00000001063cedbb: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=NarrowOop } ;*if_icmpne {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@37 (line 566) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cedc0: ud2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@18 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063cedc2: mov $0xffffff4d,%esi 0x00000001063cedc7: mov %r10d,%ebp 0x00000001063cedca: mov %rdx,(%rsp) 0x00000001063cedce: mov %r11d,0x8(%rsp) 0x00000001063cedd3: mov %ecx,0xc(%rsp) 0x00000001063cedd7: mov %r8d,0x10(%rsp) 0x00000001063ceddc: data16 xchg %ax,%ax 0x00000001063ceddf: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=NarrowOop } ;*if_icmpne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@18 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cede4: ud2 ;*if_icmpne {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@18 (line 1205) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063cede6: mov %rsi,(%rsp) 0x00000001063cedea: mov %rdx,0x8(%rsp) 0x00000001063cedef: mov $0xffffffc6,%esi 0x00000001063cedf4: data16 xchg %ax,%ax 0x00000001063cedf7: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=Oop } ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cedfc: ud2 ;*invokevirtual hashCode {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cedfe: mov %rdx,%rbp 0x00000001063cee01: mov %rsi,(%rsp) 0x00000001063cee05: mov %rdi,0x8(%rsp) 0x00000001063cee0a: mov %r8d,0x10(%rsp) 0x00000001063cee0f: mov %r9d,0x18(%rsp) 0x00000001063cee14: mov $0xffffff7e,%esi 0x00000001063cee19: xchg %ax,%ax 0x00000001063cee1b: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [0]=Oop [8]=Oop [16]=NarrowOop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cee20: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.StringLatin1::hashCode@13 (line 195) ; - java.lang.String::hashCode@29 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063cee22: mov %rdx,(%rsp) 0x00000001063cee26: mov %rsi,0x8(%rsp) 0x00000001063cee2b: mov %rdi,0x18(%rsp) 0x00000001063cee30: mov $0xffffff4d,%esi 0x00000001063cee35: xchg %ax,%ax 0x00000001063cee37: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=Oop [24]=Oop } ;*ifne {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.String::isLatin1@10 (line 3266) ; - java.lang.String::hashCode@19 (line 1504) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cee3c: ud2 0x00000001063cee3e: mov $0xffffffde,%esi 0x00000001063cee43: mov %r10d,%ebp 0x00000001063cee46: mov %r11d,0x8(%rsp) 0x00000001063cee4b: mov %rdx,0x10(%rsp) 0x00000001063cee50: mov %r8d,0x18(%rsp) 0x00000001063cee55: xchg %ax,%ax 0x00000001063cee57: callq 0x000000010637b900 ; ImmutableOopMap{[8]=NarrowOop [16]=Oop [24]=NarrowOop } ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cee5c: ud2 0x00000001063cee5e: mov $0xfffffff4,%esi 0x00000001063cee63: mov %r10d,%ebp 0x00000001063cee66: mov %r11d,0x8(%rsp) 0x00000001063cee6b: mov %rdx,0x10(%rsp) 0x00000001063cee70: data16 xchg %ax,%ax 0x00000001063cee73: callq 0x000000010637b900 ; ImmutableOopMap{[8]=NarrowOop [16]=Oop } ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cee78: ud2 ;*instanceof {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::equals@1 (line 1204) ; - java.util.HashMap::getNode@59 (line 567) ; - java.util.HashMap::get@6 (line 552) 0x00000001063cee7a: mov %rsi,(%rsp) 0x00000001063cee7e: mov %rdx,0x8(%rsp) 0x00000001063cee83: mov %rdx,0x10(%rsp) 0x00000001063cee88: mov $0xffffff4d,%esi 0x00000001063cee8d: xchg %ax,%ax 0x00000001063cee8f: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [8]=Oop [16]=Oop } ;*ifnonnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::hash@1 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063cee94: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@6 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063cee96: mov $0xffffff4d,%esi 0x00000001063cee9b: mov %r10d,%ebp 0x00000001063cee9e: mov %rdx,(%rsp) 0x00000001063ceea2: mov %r9d,0xc(%rsp) 0x00000001063ceea7: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [12]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@6 (line 564) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063ceeac: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@28 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceeae: mov $0xffffff4d,%esi 0x00000001063ceeb3: mov %r10d,%ebp 0x00000001063ceeb6: mov %rdx,(%rsp) 0x00000001063ceeba: mov %r11d,0xc(%rsp) 0x00000001063ceebf: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [12]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@28 (line 564) ; - java.util.HashMap::get@6 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063ceec4: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.HashMap::getNode@28 (line 564) ; - java.util.HashMap::get@6 (line 552) 0x00000001063ceec6: mov $0xfffffff6,%esi 0x00000001063ceecb: callq 0x000000010637b900 ; ImmutableOopMap{} ;*arraylength {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@13 (line 1503) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) ; {runtime_call UncommonTrapBlob} 0x00000001063ceed0: ud2 ;*iload_1 {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.String::hashCode@47 (line 1507) ; - java.util.HashMap::hash@9 (line 339) ; - java.util.HashMap::get@2 (line 552) 0x00000001063ceed2: hlt 0x00000001063ceed3: hlt 0x00000001063ceed4: hlt 0x00000001063ceed5: hlt 0x00000001063ceed6: hlt 0x00000001063ceed7: hlt 0x00000001063ceed8: hlt 0x00000001063ceed9: hlt 0x00000001063ceeda: hlt 0x00000001063ceedb: hlt 0x00000001063ceedc: hlt 0x00000001063ceedd: hlt 0x00000001063ceede: hlt 0x00000001063ceedf: hlt [Exception Handler] [Stub Code] 0x00000001063ceee0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063ceee5: callq 0x00000001063ceeea 0x00000001063ceeea: subq $0x5,(%rsp) 0x00000001063ceeef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063ceef4: hlt 0x00000001063ceef5: hlt 0x00000001063ceef6: hlt 0x00000001063ceef7: hlt ImmutableOopMap{rcx=Oop rdx=Oop xmm0=Oop xmm2=Oop }pc offsets: 619 ImmutableOopMap{[8]=NarrowOop [12]=NarrowOop [16]=Oop }pc offsets: 704 ImmutableOopMap{[0]=Oop [8]=NarrowOop }pc offsets: 736 768 804 ImmutableOopMap{[0]=Oop [8]=Oop }pc offsets: 828 ImmutableOopMap{rbp=Oop [0]=Oop [8]=Oop [16]=NarrowOop }pc offsets: 864 ImmutableOopMap{[0]=Oop [8]=Oop [24]=Oop }pc offsets: 892 ImmutableOopMap{[8]=NarrowOop [16]=Oop [24]=NarrowOop }pc offsets: 924 ImmutableOopMap{[8]=NarrowOop [16]=Oop }pc offsets: 952 ImmutableOopMap{[0]=Oop [8]=Oop [16]=Oop }pc offsets: 980 ImmutableOopMap{[0]=Oop [12]=NarrowOop }pc offsets: 1004 1028 ImmutableOopMap{}pc offsets: 1040 Compiled method (c2) 285 72 java.util.Optional::ofNullable (15 bytes) total in heap [0x00000001063ce510,0x00000001063ce8f8] = 1000 relocation [0x00000001063ce688,0x00000001063ce6a0] = 24 main code [0x00000001063ce6a0,0x00000001063ce7c0] = 288 stub code [0x00000001063ce7c0,0x00000001063ce7d8] = 24 metadata [0x00000001063ce7d8,0x00000001063ce7f8] = 32 scopes data [0x00000001063ce7f8,0x00000001063ce838] = 64 scopes pcs [0x00000001063ce838,0x00000001063ce8d8] = 160 dependencies [0x00000001063ce8d8,0x00000001063ce8e0] = 8 handler table [0x00000001063ce8e0,0x00000001063ce8f8] = 24 ---------------------------------------------------------------------- java/util/Optional.ofNullable(Ljava/lang/Object;)Ljava/util/Optional; [0x00000001063ce6a0, 0x00000001063ce7d8] 312 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011da6dbb0} 'ofNullable' '(Ljava/lang/Object;)Ljava/util/Optional;' in 'java/util/Optional' # parm0: rsi:rsi = 'java/lang/Object' # [sp+0x30] (sp of caller) 0x00000001063ce6a0: mov %eax,-0x14000(%rsp) 0x00000001063ce6a7: push %rbp 0x00000001063ce6a8: sub $0x20,%rsp ;*synchronization entry ; - java.util.Optional::ofNullable@-1 (line 133) 0x00000001063ce6ac: mov %rsi,%rbp 0x00000001063ce6af: test %rsi,%rsi 0x00000001063ce6b2: je 0x00000001063ce7a4 0x00000001063ce6b8: mov 0x118(%r15),%rbx 0x00000001063ce6bf: mov %rbx,%r10 0x00000001063ce6c2: add $0x10,%r10 0x00000001063ce6c6: cmp 0x128(%r15),%r10 0x00000001063ce6cd: jae 0x00000001063ce78c ;*putfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::<init>@9 (line 107) ; - java.util.Optional::of@5 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) 0x00000001063ce6d3: mov %r10,0x118(%r15) 0x00000001063ce6da: prefetchnta 0xc0(%r10) 0x00000001063ce6e2: mov $0x34bd8,%r10d ; {metadata('java/util/Optional')} 0x00000001063ce6e8: movabs $0x800000000,%r12 0x00000001063ce6f2: add %r12,%r10 0x00000001063ce6f5: xor %r12,%r12 0x00000001063ce6f8: mov 0xb8(%r10),%r10 0x00000001063ce6ff: mov %r10,(%rbx) 0x00000001063ce702: movl $0x34bd8,0x8(%rbx) ; {metadata('java/util/Optional')} 0x00000001063ce709: mov %rbp,%r10 0x00000001063ce70c: shr $0x3,%r10 0x00000001063ce710: mov %r10d,0xc(%rbx) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::of@0 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) 0x00000001063ce714: mov %rbp,%r10 0x00000001063ce717: mov %rbx,%r11 0x00000001063ce71a: xor %r11,%r10 0x00000001063ce71d: shr $0x14,%r10 0x00000001063ce721: test %r10,%r10 0x00000001063ce724: je 0x00000001063ce779 0x00000001063ce726: shr $0x9,%r11 0x00000001063ce72a: movabs $0x10f022000,%rdi 0x00000001063ce734: add %r11,%rdi 0x00000001063ce737: cmpb $0x20,(%rdi) 0x00000001063ce73a: je 0x00000001063ce779 0x00000001063ce73c: mov 0x70(%r15),%r10 0x00000001063ce740: mov 0x80(%r15),%r11 0x00000001063ce747: lock addl $0x0,-0x40(%rsp) 0x00000001063ce74d: cmpb $0x0,(%rdi) 0x00000001063ce750: je 0x00000001063ce779 0x00000001063ce752: movb $0x0,(%rdi) 0x00000001063ce755: test %r10,%r10 0x00000001063ce758: jne 0x00000001063ce76c 0x00000001063ce75a: mov %r15,%rsi 0x00000001063ce75d: movabs $0x1057038ce,%r10 0x00000001063ce767: callq *%r10 0x00000001063ce76a: jmp 0x00000001063ce779 0x00000001063ce76c: mov %rdi,-0x8(%r11,%r10,1) 0x00000001063ce771: add $0xfffffffffffffff8,%r10 0x00000001063ce775: mov %r10,0x70(%r15) ;*synchronization entry ; - java.util.Optional::of@-1 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) 0x00000001063ce779: mov %rbx,%rax 0x00000001063ce77c: add $0x20,%rsp 0x00000001063ce780: pop %rbp 0x00000001063ce781: mov 0x108(%r15),%r10 0x00000001063ce788: test %eax,(%r10) ; {poll_return} 0x00000001063ce78b: retq 0x00000001063ce78c: movabs $0x800034bd8,%rsi ; {metadata('java/util/Optional')} 0x00000001063ce796: nop 0x00000001063ce797: callq 0x00000001063b0100 ; ImmutableOopMap{rbp=Oop } ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.util.Optional::of@0 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) ; {runtime_call _new_instance_Java} 0x00000001063ce79c: mov %rax,%rbx 0x00000001063ce79f: jmpq 0x00000001063ce709 0x00000001063ce7a4: mov $0xffffff4d,%esi 0x00000001063ce7a9: xchg %ax,%ax 0x00000001063ce7ab: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*ifnonnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.Optional::ofNullable@1 (line 133) ; {runtime_call UncommonTrapBlob} 0x00000001063ce7b0: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::of@0 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) 0x00000001063ce7b2: mov %rax,%rsi 0x00000001063ce7b5: add $0x20,%rsp 0x00000001063ce7b9: pop %rbp 0x00000001063ce7ba: jmpq 0x00000001063b2700 ;*putfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::<init>@9 (line 107) ; - java.util.Optional::of@5 (line 120) ; - java.util.Optional::ofNullable@11 (line 133) ; {runtime_call _rethrow_Java} 0x00000001063ce7bf: hlt [Exception Handler] [Stub Code] 0x00000001063ce7c0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063ce7c5: callq 0x00000001063ce7ca 0x00000001063ce7ca: subq $0x5,(%rsp) 0x00000001063ce7cf: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063ce7d4: hlt 0x00000001063ce7d5: hlt 0x00000001063ce7d6: hlt 0x00000001063ce7d7: hlt ImmutableOopMap{rbp=Oop }pc offsets: 252 272 Compiled method (c2) 288 73 java.lang.invoke.DirectMethodHandle::internalMemberName (8 bytes) total in heap [0x00000001063ce210,0x00000001063ce4f0] = 736 relocation [0x00000001063ce388,0x00000001063ce398] = 16 main code [0x00000001063ce3a0,0x00000001063ce400] = 96 stub code [0x00000001063ce400,0x00000001063ce418] = 24 metadata [0x00000001063ce418,0x00000001063ce428] = 16 scopes data [0x00000001063ce428,0x00000001063ce458] = 48 scopes pcs [0x00000001063ce458,0x00000001063ce4d8] = 128 dependencies [0x00000001063ce4d8,0x00000001063ce4e0] = 8 nul chk table [0x00000001063ce4e0,0x00000001063ce4f0] = 16 ---------------------------------------------------------------------- java/lang/invoke/DirectMethodHandle.internalMemberName(Ljava/lang/Object;)Ljava/lang/Object; [0x00000001063ce3a0, 0x00000001063ce418] 120 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011d8953f8} 'internalMemberName' '(Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/DirectMethodHandle' # parm0: rsi:rsi = 'java/lang/Object' # [sp+0x20] (sp of caller) 0x00000001063ce3a0: mov %eax,-0x14000(%rsp) 0x00000001063ce3a7: push %rbp 0x00000001063ce3a8: sub $0x10,%rsp ;*synchronization entry ; - java.lang.invoke.DirectMethodHandle::internalMemberName@-1 (line 310) 0x00000001063ce3ac: mov 0x8(%rsi),%r11d ; implicit exception: dispatches to 0x00000001063ce3e6 0x00000001063ce3b0: cmp $0xc0e0,%r11d ; {metadata('java/lang/invoke/DirectMethodHandle')} 0x00000001063ce3b7: jne 0x00000001063ce3d4 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) 0x00000001063ce3b9: mov 0x1c(%rsi),%r11d 0x00000001063ce3bd: mov %r11,%rax 0x00000001063ce3c0: shl $0x3,%rax ;*getfield member {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@4 (line 310) 0x00000001063ce3c4: add $0x10,%rsp 0x00000001063ce3c8: pop %rbp 0x00000001063ce3c9: mov 0x108(%r15),%r10 0x00000001063ce3d0: test %eax,(%r10) ; {poll_return} 0x00000001063ce3d3: retq 0x00000001063ce3d4: mov %rsi,%rbp 0x00000001063ce3d7: mov $0xffffffde,%esi 0x00000001063ce3dc: data16 xchg %ax,%ax 0x00000001063ce3df: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; {runtime_call UncommonTrapBlob} 0x00000001063ce3e4: ud2 0x00000001063ce3e6: mov $0xfffffff4,%esi 0x00000001063ce3eb: callq 0x000000010637b900 ; ImmutableOopMap{} ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; {runtime_call UncommonTrapBlob} 0x00000001063ce3f0: ud2 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) 0x00000001063ce3f2: hlt 0x00000001063ce3f3: hlt 0x00000001063ce3f4: hlt 0x00000001063ce3f5: hlt 0x00000001063ce3f6: hlt 0x00000001063ce3f7: hlt 0x00000001063ce3f8: hlt 0x00000001063ce3f9: hlt 0x00000001063ce3fa: hlt 0x00000001063ce3fb: hlt 0x00000001063ce3fc: hlt 0x00000001063ce3fd: hlt 0x00000001063ce3fe: hlt 0x00000001063ce3ff: hlt [Exception Handler] [Stub Code] 0x00000001063ce400: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063ce405: callq 0x00000001063ce40a 0x00000001063ce40a: subq $0x5,(%rsp) 0x00000001063ce40f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063ce414: hlt 0x00000001063ce415: hlt 0x00000001063ce416: hlt 0x00000001063ce417: hlt ImmutableOopMap{rbp=Oop }pc offsets: 68 ImmutableOopMap{}pc offsets: 80 Compiled method (c2) 292 74 FunctionalHashMap::max100 (29 bytes) total in heap [0x00000001063d1290,0x00000001063d1978] = 1768 relocation [0x00000001063d1408,0x00000001063d1448] = 64 main code [0x00000001063d1460,0x00000001063d1620] = 448 stub code [0x00000001063d1620,0x00000001063d1648] = 40 oops [0x00000001063d1648,0x00000001063d1660] = 24 metadata [0x00000001063d1660,0x00000001063d16a0] = 64 scopes data [0x00000001063d16a0,0x00000001063d1788] = 232 scopes pcs [0x00000001063d1788,0x00000001063d1928] = 416 dependencies [0x00000001063d1928,0x00000001063d1930] = 8 handler table [0x00000001063d1930,0x00000001063d1960] = 48 nul chk table [0x00000001063d1960,0x00000001063d1978] = 24 ---------------------------------------------------------------------- FunctionalHashMap.max100(I)Ljava/lang/String; [0x00000001063d1460, 0x00000001063d1648] 488 bytes [Entry Point] [Constants] # {method} {0x000000011dc229f0} 'max100' '(I)Ljava/lang/String;' in 'FunctionalHashMap' # this: rsi:rsi = 'FunctionalHashMap' # parm0: rdx = int # [sp+0x30] (sp of caller) 0x00000001063d1460: mov 0x8(%rsi),%r10d 0x00000001063d1464: movabs $0x800000000,%r12 0x00000001063d146e: add %r12,%r10 0x00000001063d1471: xor %r12,%r12 0x00000001063d1474: cmp %r10,%rax 0x00000001063d1477: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063d147d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063d1480: mov %eax,-0x14000(%rsp) 0x00000001063d1487: push %rbp 0x00000001063d1488: sub $0x20,%rsp ;*synchronization entry ; - FunctionalHashMap::max100@-1 (line 49) 0x00000001063d148c: mov %edx,0x4(%rsp) 0x00000001063d1490: movabs $0x70fe0f540,%r10 ; {oop(a 'java/lang/Class'{0x000000070fe0f540} = 'FunctionalHashMap')} 0x00000001063d149a: mov 0x70(%r10),%r11d ;*getstatic map {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@0 (line 49) 0x00000001063d149e: mov %r11d,0x8(%rsp) 0x00000001063d14a3: cmp $0xffffff80,%edx 0x00000001063d14a6: jl 0x00000001063d15ae ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d14ac: cmp $0x7f,%edx 0x00000001063d14af: jle 0x00000001063d154d ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@10 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d14b5: mov 0x118(%r15),%rdx 0x00000001063d14bc: mov %rdx,%r10 0x00000001063d14bf: add $0x10,%r10 0x00000001063d14c3: cmp 0x128(%r15),%r10 0x00000001063d14ca: jae 0x00000001063d1578 0x00000001063d14d0: mov %r10,0x118(%r15) 0x00000001063d14d7: prefetchnta 0xc0(%r10) 0x00000001063d14df: mov $0x13c78,%r10d ; {metadata('java/lang/Integer')} 0x00000001063d14e5: movabs $0x800000000,%r12 0x00000001063d14ef: add %r12,%r10 0x00000001063d14f2: xor %r12,%r12 0x00000001063d14f5: mov 0xb8(%r10),%r10 0x00000001063d14fc: mov %r10,(%rdx) 0x00000001063d14ff: movl $0x13c78,0x8(%rdx) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; {metadata('java/lang/Integer')} 0x00000001063d1506: mov 0x4(%rsp),%r10d 0x00000001063d150b: mov %r10d,0xc(%rdx) ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d150f: mov 0x8(%rsp),%r11d 0x00000001063d1514: mov 0x8(%r12,%r11,8),%r10d ; implicit exception: dispatches to 0x00000001063d15e6 0x00000001063d1519: cmp $0x19838,%r10d ; {metadata('java/util/HashMap')} 0x00000001063d1520: jne 0x00000001063d1594 0x00000001063d1522: lea (%r12,%r11,8),%rsi 0x00000001063d1526: nop 0x00000001063d1527: callq 0x0000000106379f00 ; ImmutableOopMap{} ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=1} ; - FunctionalHashMap::max100@7 (line 49) ; {optimized virtual_call} 0x00000001063d152c: mov 0x8(%rax),%r11d ; implicit exception: dispatches to 0x00000001063d15f6 0x00000001063d1530: cmp $0x1808,%r11d ; {metadata('java/lang/String')} 0x00000001063d1537: jne 0x00000001063d15d2 ;*invokespecial <init> {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@5 ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@10 ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@5 ; - FunctionalHashMap::max100@17 (line 49) 0x00000001063d153d: add $0x20,%rsp 0x00000001063d1541: pop %rbp 0x00000001063d1542: mov 0x108(%r15),%r10 0x00000001063d1549: test %eax,(%r10) ; {poll_return} 0x00000001063d154c: retq 0x00000001063d154d: mov %edx,%ebp 0x00000001063d154f: add $0x80,%ebp ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@20 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d1555: cmp $0x100,%ebp 0x00000001063d155b: jae 0x00000001063d15c2 0x00000001063d155d: movslq %edx,%r10 0x00000001063d1560: movabs $0x70ff1e8c8,%r11 ; {oop(a 'java/lang/Integer'[256] {0x000000070ff1e8c8})} 0x00000001063d156a: mov 0x210(%r11,%r10,4),%r10d 0x00000001063d1572: lea (%r12,%r10,8),%rdx ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d1576: jmp 0x00000001063d150f 0x00000001063d1578: movabs $0x800013c78,%rsi ; {metadata('java/lang/Integer')} 0x00000001063d1582: mov 0x4(%rsp),%ebp 0x00000001063d1586: nop 0x00000001063d1587: callq 0x00000001063b0100 ; ImmutableOopMap{[8]=NarrowOop } ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; {runtime_call _new_instance_Java} 0x00000001063d158c: mov %rax,%rdx 0x00000001063d158f: jmpq 0x00000001063d1506 0x00000001063d1594: mov $0xffffffde,%esi 0x00000001063d1599: mov 0x4(%rsp),%ebp 0x00000001063d159d: mov %r11d,(%rsp) 0x00000001063d15a1: mov %rdx,0x8(%rsp) 0x00000001063d15a6: nop 0x00000001063d15a7: callq 0x000000010637b900 ; ImmutableOopMap{[0]=NarrowOop [8]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d15ac: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) 0x00000001063d15ae: mov $0xffffff4d,%esi 0x00000001063d15b3: mov %r11d,(%rsp) 0x00000001063d15b7: mov %edx,0x8(%rsp) 0x00000001063d15bb: callq 0x000000010637b900 ; ImmutableOopMap{[0]=NarrowOop } ;*if_icmplt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d15c0: ud2 ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d15c2: mov $0xffffffe4,%esi 0x00000001063d15c7: mov %edx,(%rsp) 0x00000001063d15ca: nop 0x00000001063d15cb: callq 0x000000010637b900 ; ImmutableOopMap{[8]=NarrowOop } ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d15d0: ud2 ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d15d2: mov $0xffffffde,%esi 0x00000001063d15d7: mov 0x4(%rsp),%ebp 0x00000001063d15db: mov %rax,(%rsp) 0x00000001063d15df: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d15e4: ud2 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) 0x00000001063d15e6: mov $0xfffffff6,%esi 0x00000001063d15eb: mov %rdx,%rbp 0x00000001063d15ee: nop 0x00000001063d15ef: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d15f4: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) 0x00000001063d15f6: mov $0xfffffff4,%esi 0x00000001063d15fb: mov 0x4(%rsp),%ebp 0x00000001063d15ff: callq 0x000000010637b900 ; ImmutableOopMap{} ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; {runtime_call UncommonTrapBlob} 0x00000001063d1604: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) 0x00000001063d1606: mov %rax,%rsi 0x00000001063d1609: jmp 0x00000001063d160e 0x00000001063d160b: mov %rax,%rsi ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) 0x00000001063d160e: add $0x20,%rsp 0x00000001063d1612: pop %rbp 0x00000001063d1613: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063d1618: hlt 0x00000001063d1619: hlt 0x00000001063d161a: hlt 0x00000001063d161b: hlt 0x00000001063d161c: hlt 0x00000001063d161d: hlt 0x00000001063d161e: hlt 0x00000001063d161f: hlt [Stub Code] 0x00000001063d1620: movabs $0x0,%rbx ; {no_reloc} 0x00000001063d162a: jmpq 0x00000001063d162a ; {runtime_call} [Exception Handler] 0x00000001063d162f: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063d1634: callq 0x00000001063d1639 0x00000001063d1639: subq $0x5,(%rsp) 0x00000001063d163e: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d1643: hlt 0x00000001063d1644: hlt 0x00000001063d1645: hlt 0x00000001063d1646: hlt 0x00000001063d1647: hlt ImmutableOopMap{}pc offsets: 204 ImmutableOopMap{[8]=NarrowOop }pc offsets: 300 ImmutableOopMap{[0]=NarrowOop [8]=Oop }pc offsets: 332 ImmutableOopMap{[0]=NarrowOop }pc offsets: 352 ImmutableOopMap{[8]=NarrowOop }pc offsets: 368 ImmutableOopMap{[0]=Oop }pc offsets: 388 ImmutableOopMap{rbp=Oop }pc offsets: 404 ImmutableOopMap{}pc offsets: 420 Compiled method (c2) 296 75 java.lang.invoke.Invokers$Holder::linkToTargetMethod (9 bytes) total in heap [0x00000001063cdd90,0x00000001063ce100] = 880 relocation [0x00000001063cdf08,0x00000001063cdf28] = 32 main code [0x00000001063cdf40,0x00000001063cdfc0] = 128 stub code [0x00000001063cdfc0,0x00000001063cdff8] = 56 metadata [0x00000001063cdff8,0x00000001063ce008] = 16 scopes data [0x00000001063ce008,0x00000001063ce040] = 56 scopes pcs [0x00000001063ce040,0x00000001063ce0d0] = 144 dependencies [0x00000001063ce0d0,0x00000001063ce0d8] = 8 handler table [0x00000001063ce0d8,0x00000001063ce0f0] = 24 nul chk table [0x00000001063ce0f0,0x00000001063ce100] = 16 ---------------------------------------------------------------------- java/lang/invoke/Invokers$Holder.linkToTargetMethod(ILjava/lang/Object;)Ljava/lang/Object; [0x00000001063cdf40, 0x00000001063cdff8] 184 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011dba3798} 'linkToTargetMethod' '(ILjava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/Invokers$Holder' # parm0: rsi = int # parm1: rdx:rdx = 'java/lang/Object' # [sp+0x30] (sp of caller) 0x00000001063cdf40: mov %eax,-0x14000(%rsp) 0x00000001063cdf47: push %rbp 0x00000001063cdf48: sub $0x20,%rsp ;*synchronization entry ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@-1 0x00000001063cdf4c: mov %esi,%r11d 0x00000001063cdf4f: mov 0x8(%rdx),%r10d ; implicit exception: dispatches to 0x00000001063cdf9b 0x00000001063cdf53: cmp $0xc0e0,%r10d ; {metadata('java/lang/invoke/DirectMethodHandle')} 0x00000001063cdf5a: jne 0x00000001063cdf78 0x00000001063cdf5c: mov %rdx,%rsi ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@1 0x00000001063cdf5f: mov %r11d,%edx 0x00000001063cdf62: nop 0x00000001063cdf63: callq 0x0000000106379f00 ; ImmutableOopMap{} ;*invokevirtual invokeBasic {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@5 ; {optimized virtual_call} 0x00000001063cdf68: add $0x20,%rsp 0x00000001063cdf6c: pop %rbp 0x00000001063cdf6d: mov 0x108(%r15),%r10 0x00000001063cdf74: test %eax,(%r10) ; {poll_return} 0x00000001063cdf77: retq 0x00000001063cdf78: mov $0xffffff6e,%esi 0x00000001063cdf7d: mov %r11d,%ebp 0x00000001063cdf80: mov %rdx,(%rsp) 0x00000001063cdf84: data16 xchg %ax,%ax 0x00000001063cdf87: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@1 ; {runtime_call UncommonTrapBlob} 0x00000001063cdf8c: ud2 ;*invokevirtual invokeBasic {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@5 0x00000001063cdf8e: mov %rax,%rsi 0x00000001063cdf91: add $0x20,%rsp 0x00000001063cdf95: pop %rbp 0x00000001063cdf96: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063cdf9b: mov $0xffffff64,%esi 0x00000001063cdfa0: mov %r11d,%ebp 0x00000001063cdfa3: callq 0x000000010637b900 ; ImmutableOopMap{} ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@1 ; {runtime_call UncommonTrapBlob} 0x00000001063cdfa8: ud2 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@1 0x00000001063cdfaa: hlt 0x00000001063cdfab: hlt 0x00000001063cdfac: hlt 0x00000001063cdfad: hlt 0x00000001063cdfae: hlt 0x00000001063cdfaf: hlt 0x00000001063cdfb0: hlt 0x00000001063cdfb1: hlt 0x00000001063cdfb2: hlt 0x00000001063cdfb3: hlt 0x00000001063cdfb4: hlt 0x00000001063cdfb5: hlt 0x00000001063cdfb6: hlt 0x00000001063cdfb7: hlt 0x00000001063cdfb8: hlt 0x00000001063cdfb9: hlt 0x00000001063cdfba: hlt 0x00000001063cdfbb: hlt 0x00000001063cdfbc: hlt 0x00000001063cdfbd: hlt 0x00000001063cdfbe: hlt 0x00000001063cdfbf: hlt [Stub Code] 0x00000001063cdfc0: movabs $0x0,%rbx ; {no_reloc} 0x00000001063cdfca: jmpq 0x00000001063cdfca ; {runtime_call} [Exception Handler] 0x00000001063cdfcf: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063cdfd4: callq 0x00000001063cdfd9 0x00000001063cdfd9: subq $0x5,(%rsp) 0x00000001063cdfde: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} [Deopt MH Handler Code] 0x00000001063cdfe3: callq 0x00000001063cdfe8 0x00000001063cdfe8: subq $0x5,(%rsp) 0x00000001063cdfed: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cdff2: hlt 0x00000001063cdff3: hlt 0x00000001063cdff4: hlt 0x00000001063cdff5: hlt 0x00000001063cdff6: hlt 0x00000001063cdff7: hlt ImmutableOopMap{}pc offsets: 40 ImmutableOopMap{[0]=Oop }pc offsets: 76 ImmutableOopMap{}pc offsets: 104 Compiled method (c2) 299 76 java.lang.invoke.DirectMethodHandle$Holder::invokeStatic (14 bytes) total in heap [0x00000001063d1990,0x00000001063d1d20] = 912 relocation [0x00000001063d1b08,0x00000001063d1b28] = 32 main code [0x00000001063d1b40,0x00000001063d1bc0] = 128 stub code [0x00000001063d1bc0,0x00000001063d1be8] = 40 metadata [0x00000001063d1be8,0x00000001063d1c00] = 24 scopes data [0x00000001063d1c00,0x00000001063d1c50] = 80 scopes pcs [0x00000001063d1c50,0x00000001063d1cf0] = 160 dependencies [0x00000001063d1cf0,0x00000001063d1cf8] = 8 handler table [0x00000001063d1cf8,0x00000001063d1d10] = 24 nul chk table [0x00000001063d1d10,0x00000001063d1d20] = 16 ---------------------------------------------------------------------- java/lang/invoke/DirectMethodHandle$Holder.invokeStatic(Ljava/lang/Object;I)Ljava/lang/Object; [0x00000001063d1b40, 0x00000001063d1be8] 168 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011db62110} 'invokeStatic' '(Ljava/lang/Object;I)Ljava/lang/Object;' in 'java/lang/invoke/DirectMethodHandle$Holder' # parm0: rsi:rsi = 'java/lang/Object' # parm1: rdx = int # [sp+0x30] (sp of caller) 0x00000001063d1b40: mov %eax,-0x14000(%rsp) 0x00000001063d1b47: push %rbp 0x00000001063d1b48: sub $0x20,%rsp ;*synchronization entry ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@-1 0x00000001063d1b4c: mov %edx,%r10d 0x00000001063d1b4f: mov 0x8(%rsi),%r8d ; implicit exception: dispatches to 0x00000001063d1b9f 0x00000001063d1b53: cmp $0xc0e0,%r8d ; {metadata('java/lang/invoke/DirectMethodHandle')} 0x00000001063d1b5a: jne 0x00000001063d1b80 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@1 0x00000001063d1b5c: mov 0x1c(%rsi),%r8d 0x00000001063d1b60: mov %r8,%rdx 0x00000001063d1b63: shl $0x3,%rdx ;*getfield member {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@4 (line 310) ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@1 0x00000001063d1b67: mov %r10d,%esi 0x00000001063d1b6a: nop 0x00000001063d1b6b: callq 0x000000010637a400 ; ImmutableOopMap{} ;*invokestatic linkToStatic {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@10 ; {static_call} 0x00000001063d1b70: add $0x20,%rsp 0x00000001063d1b74: pop %rbp 0x00000001063d1b75: mov 0x108(%r15),%r10 0x00000001063d1b7c: test %eax,(%r10) ; {poll_return} 0x00000001063d1b7f: retq 0x00000001063d1b80: mov %edx,%ebp 0x00000001063d1b82: mov %rsi,(%rsp) 0x00000001063d1b86: mov $0xffffff6e,%esi 0x00000001063d1b8b: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@1 ; {runtime_call UncommonTrapBlob} 0x00000001063d1b90: ud2 ;*invokestatic linkToStatic {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@10 0x00000001063d1b92: mov %rax,%rsi 0x00000001063d1b95: add $0x20,%rsp 0x00000001063d1b99: pop %rbp 0x00000001063d1b9a: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063d1b9f: mov $0xffffff64,%esi 0x00000001063d1ba4: mov %edx,%ebp 0x00000001063d1ba6: nop 0x00000001063d1ba7: callq 0x000000010637b900 ; ImmutableOopMap{} ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@1 ; {runtime_call UncommonTrapBlob} 0x00000001063d1bac: ud2 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.invoke.DirectMethodHandle::internalMemberName@1 (line 310) ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@1 0x00000001063d1bae: hlt 0x00000001063d1baf: hlt 0x00000001063d1bb0: hlt 0x00000001063d1bb1: hlt 0x00000001063d1bb2: hlt 0x00000001063d1bb3: hlt 0x00000001063d1bb4: hlt 0x00000001063d1bb5: hlt 0x00000001063d1bb6: hlt 0x00000001063d1bb7: hlt 0x00000001063d1bb8: hlt 0x00000001063d1bb9: hlt 0x00000001063d1bba: hlt 0x00000001063d1bbb: hlt 0x00000001063d1bbc: hlt 0x00000001063d1bbd: hlt 0x00000001063d1bbe: hlt 0x00000001063d1bbf: hlt [Stub Code] 0x00000001063d1bc0: movabs $0x0,%rbx ; {no_reloc} 0x00000001063d1bca: jmpq 0x00000001063d1bca ; {runtime_call} [Exception Handler] 0x00000001063d1bcf: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063d1bd4: callq 0x00000001063d1bd9 0x00000001063d1bd9: subq $0x5,(%rsp) 0x00000001063d1bde: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d1be3: hlt 0x00000001063d1be4: hlt 0x00000001063d1be5: hlt 0x00000001063d1be6: hlt 0x00000001063d1be7: hlt ImmutableOopMap{}pc offsets: 48 ImmutableOopMap{[0]=Oop }pc offsets: 80 ImmutableOopMap{}pc offsets: 108 Compiled method (c2) 301 77 FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda (9 bytes) total in heap [0x00000001063cf710,0x00000001063cfa18] = 776 relocation [0x00000001063cf888,0x00000001063cf8a0] = 24 main code [0x00000001063cf8a0,0x00000001063cf940] = 160 stub code [0x00000001063cf940,0x00000001063cf958] = 24 oops [0x00000001063cf958,0x00000001063cf960] = 8 metadata [0x00000001063cf960,0x00000001063cf970] = 16 scopes data [0x00000001063cf970,0x00000001063cf988] = 24 scopes pcs [0x00000001063cf988,0x00000001063cf9f8] = 112 dependencies [0x00000001063cf9f8,0x00000001063cfa00] = 8 handler table [0x00000001063cfa00,0x00000001063cfa18] = 24 ---------------------------------------------------------------------- FunctionalHashMap$$Lambda$1.get$Lambda(I)Ljava/util/function/Supplier; [0x00000001063cf8a0, 0x00000001063cf958] 184 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011dc24300} 'get$Lambda' '(I)Ljava/util/function/Supplier;' in 'FunctionalHashMap$$Lambda$1' # parm0: rsi = int # [sp+0x20] (sp of caller) 0x00000001063cf8a0: mov %eax,-0x14000(%rsp) 0x00000001063cf8a7: push %rbp 0x00000001063cf8a8: sub $0x10,%rsp ;*synchronization entry ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@-1 0x00000001063cf8ac: mov %esi,%ebp 0x00000001063cf8ae: mov 0x118(%r15),%rax 0x00000001063cf8b5: mov %rax,%r10 0x00000001063cf8b8: add $0x10,%r10 0x00000001063cf8bc: cmp 0x128(%r15),%r10 0x00000001063cf8c3: jae 0x00000001063cf90e 0x00000001063cf8c5: mov %r10,0x118(%r15) 0x00000001063cf8cc: prefetchnta 0xc0(%r10) 0x00000001063cf8d4: mov $0x60840,%r10d ; {metadata('FunctionalHashMap$$Lambda$1')} 0x00000001063cf8da: movabs $0x800000000,%r12 0x00000001063cf8e4: add %r12,%r10 0x00000001063cf8e7: xor %r12,%r12 0x00000001063cf8ea: mov 0xb8(%r10),%r10 0x00000001063cf8f1: mov %r10,(%rax) 0x00000001063cf8f4: movl $0x60840,0x8(%rax) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@0 ; {metadata('FunctionalHashMap$$Lambda$1')} 0x00000001063cf8fb: mov %ebp,0xc(%rax) ;*synchronization entry ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@-1 0x00000001063cf8fe: add $0x10,%rsp 0x00000001063cf902: pop %rbp 0x00000001063cf903: mov 0x108(%r15),%r10 0x00000001063cf90a: test %eax,(%r10) ; {poll_return} 0x00000001063cf90d: retq 0x00000001063cf90e: movabs $0x800060840,%rsi ; {metadata('FunctionalHashMap$$Lambda$1')} 0x00000001063cf918: data16 xchg %ax,%ax 0x00000001063cf91b: callq 0x00000001063b0100 ; ImmutableOopMap{} ;*new {reexecute=0 rethrow=0 return_oop=1} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@0 ; {runtime_call _new_instance_Java} 0x00000001063cf920: jmp 0x00000001063cf8fb ;*new {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@0 0x00000001063cf922: mov %rax,%rsi 0x00000001063cf925: add $0x10,%rsp 0x00000001063cf929: pop %rbp 0x00000001063cf92a: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063cf92f: hlt 0x00000001063cf930: hlt 0x00000001063cf931: hlt 0x00000001063cf932: hlt 0x00000001063cf933: hlt 0x00000001063cf934: hlt 0x00000001063cf935: hlt 0x00000001063cf936: hlt 0x00000001063cf937: hlt 0x00000001063cf938: hlt 0x00000001063cf939: hlt 0x00000001063cf93a: hlt 0x00000001063cf93b: hlt 0x00000001063cf93c: hlt 0x00000001063cf93d: hlt 0x00000001063cf93e: hlt 0x00000001063cf93f: hlt [Exception Handler] [Stub Code] 0x00000001063cf940: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063cf945: callq 0x00000001063cf94a 0x00000001063cf94a: subq $0x5,(%rsp) 0x00000001063cf94f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063cf954: hlt 0x00000001063cf955: hlt 0x00000001063cf956: hlt 0x00000001063cf957: hlt ImmutableOopMap{}pc offsets: 128 Compiled method (c2) 303 78 FunctionalHashMap$$Lambda$1/0x0000000800060840::<init> (10 bytes) total in heap [0x00000001063d1d90,0x00000001063d1fe0] = 592 relocation [0x00000001063d1f08,0x00000001063d1f18] = 16 main code [0x00000001063d1f20,0x00000001063d1f60] = 64 stub code [0x00000001063d1f60,0x00000001063d1f78] = 24 oops [0x00000001063d1f78,0x00000001063d1f80] = 8 metadata [0x00000001063d1f80,0x00000001063d1f88] = 8 scopes data [0x00000001063d1f88,0x00000001063d1f98] = 16 scopes pcs [0x00000001063d1f98,0x00000001063d1fd8] = 64 dependencies [0x00000001063d1fd8,0x00000001063d1fe0] = 8 ---------------------------------------------------------------------- FunctionalHashMap$$Lambda$1.<init>(I)V [0x00000001063d1f20, 0x00000001063d1f78] 88 bytes [Entry Point] [Constants] # {method} {0x000000011dc24260} '<init>' '(I)V' in 'FunctionalHashMap$$Lambda$1' # this: rsi:rsi = 'FunctionalHashMap$$Lambda$1' # parm0: rdx = int # [sp+0x20] (sp of caller) 0x00000001063d1f20: mov 0x8(%rsi),%r10d 0x00000001063d1f24: movabs $0x800000000,%r12 0x00000001063d1f2e: add %r12,%r10 0x00000001063d1f31: xor %r12,%r12 0x00000001063d1f34: cmp %r10,%rax 0x00000001063d1f37: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063d1f3d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063d1f40: sub $0x18,%rsp 0x00000001063d1f47: mov %rbp,0x10(%rsp) ;*synchronization entry ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::<init>@-1 0x00000001063d1f4c: mov %edx,0xc(%rsi) ;*putfield arg$1 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::<init>@6 0x00000001063d1f4f: add $0x10,%rsp 0x00000001063d1f53: pop %rbp 0x00000001063d1f54: mov 0x108(%r15),%r10 0x00000001063d1f5b: test %eax,(%r10) ; {poll_return} 0x00000001063d1f5e: retq 0x00000001063d1f5f: hlt [Exception Handler] [Stub Code] 0x00000001063d1f60: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063d1f65: callq 0x00000001063d1f6a 0x00000001063d1f6a: subq $0x5,(%rsp) 0x00000001063d1f6f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d1f74: hlt 0x00000001063d1f75: hlt 0x00000001063d1f76: hlt 0x00000001063d1f77: hlt Compiled method (c2) 304 79 java.util.Optional::orElseGet (21 bytes) total in heap [0x00000001063d2010,0x00000001063d22f0] = 736 relocation [0x00000001063d2188,0x00000001063d2198] = 16 main code [0x00000001063d21a0,0x00000001063d2220] = 128 stub code [0x00000001063d2220,0x00000001063d2238] = 24 metadata [0x00000001063d2238,0x00000001063d2240] = 8 scopes data [0x00000001063d2240,0x00000001063d2268] = 40 scopes pcs [0x00000001063d2268,0x00000001063d22e8] = 128 dependencies [0x00000001063d22e8,0x00000001063d22f0] = 8 ---------------------------------------------------------------------- java/util/Optional.orElseGet(Ljava/util/function/Supplier;)Ljava/lang/Object; [0x00000001063d21a0, 0x00000001063d2238] 152 bytes [Entry Point] [Constants] # {method} {0x000000011da6e548} 'orElseGet' '(Ljava/util/function/Supplier;)Ljava/lang/Object;' in 'java/util/Optional' # this: rsi:rsi = 'java/util/Optional' # parm0: rdx:rdx = 'java/util/function/Supplier' # [sp+0x30] (sp of caller) 0x00000001063d21a0: mov 0x8(%rsi),%r10d 0x00000001063d21a4: movabs $0x800000000,%r12 0x00000001063d21ae: add %r12,%r10 0x00000001063d21b1: xor %r12,%r12 0x00000001063d21b4: cmp %r10,%rax 0x00000001063d21b7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063d21bd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063d21c0: mov %eax,-0x14000(%rsp) 0x00000001063d21c7: push %rbp 0x00000001063d21c8: sub $0x20,%rsp ;*synchronization entry ; - java.util.Optional::orElseGet@-1 (line 369) 0x00000001063d21cc: mov 0xc(%rsi),%r11d ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::orElseGet@1 (line 369) 0x00000001063d21d0: test %r11d,%r11d 0x00000001063d21d3: je 0x00000001063d21ec ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::orElseGet@4 (line 369) 0x00000001063d21d5: mov %r11,%rax 0x00000001063d21d8: shl $0x3,%rax ;*getfield value {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::orElseGet@1 (line 369) 0x00000001063d21dc: add $0x20,%rsp 0x00000001063d21e0: pop %rbp 0x00000001063d21e1: mov 0x108(%r15),%r10 0x00000001063d21e8: test %eax,(%r10) ; {poll_return} 0x00000001063d21eb: retq 0x00000001063d21ec: mov %rsi,%rbp 0x00000001063d21ef: mov %rdx,(%rsp) 0x00000001063d21f3: mov %r11d,0x8(%rsp) 0x00000001063d21f8: mov $0xffffff4d,%esi 0x00000001063d21fd: xchg %ax,%ax 0x00000001063d21ff: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [0]=Oop [8]=NarrowOop } ;*ifnull {reexecute=1 rethrow=0 return_oop=0} ; - java.util.Optional::orElseGet@4 (line 369) ; {runtime_call UncommonTrapBlob} 0x00000001063d2204: ud2 ;*ifnull {reexecute=0 rethrow=0 return_oop=0} ; - java.util.Optional::orElseGet@4 (line 369) 0x00000001063d2206: hlt 0x00000001063d2207: hlt 0x00000001063d2208: hlt 0x00000001063d2209: hlt 0x00000001063d220a: hlt 0x00000001063d220b: hlt 0x00000001063d220c: hlt 0x00000001063d220d: hlt 0x00000001063d220e: hlt 0x00000001063d220f: hlt 0x00000001063d2210: hlt 0x00000001063d2211: hlt 0x00000001063d2212: hlt 0x00000001063d2213: hlt 0x00000001063d2214: hlt 0x00000001063d2215: hlt 0x00000001063d2216: hlt 0x00000001063d2217: hlt 0x00000001063d2218: hlt 0x00000001063d2219: hlt 0x00000001063d221a: hlt 0x00000001063d221b: hlt 0x00000001063d221c: hlt 0x00000001063d221d: hlt 0x00000001063d221e: hlt 0x00000001063d221f: hlt [Exception Handler] [Stub Code] 0x00000001063d2220: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063d2225: callq 0x00000001063d222a 0x00000001063d222a: subq $0x5,(%rsp) 0x00000001063d222f: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d2234: hlt 0x00000001063d2235: hlt 0x00000001063d2236: hlt 0x00000001063d2237: hlt ImmutableOopMap{rbp=Oop [0]=Oop [8]=NarrowOop }pc offsets: 100 Compiled method (c2) 308 80 FunctionalHashMap::runTest (25 bytes) total in heap [0x00000001063d2310,0x00000001063d2588] = 632 relocation [0x00000001063d2488,0x00000001063d2498] = 16 main code [0x00000001063d24a0,0x00000001063d24e0] = 64 stub code [0x00000001063d24e0,0x00000001063d24f8] = 24 oops [0x00000001063d24f8,0x00000001063d2500] = 8 metadata [0x00000001063d2500,0x00000001063d2508] = 8 scopes data [0x00000001063d2508,0x00000001063d2530] = 40 scopes pcs [0x00000001063d2530,0x00000001063d2580] = 80 dependencies [0x00000001063d2580,0x00000001063d2588] = 8 ---------------------------------------------------------------------- FunctionalHashMap.runTest()Ljava/lang/String; [0x00000001063d24a0, 0x00000001063d24f8] 88 bytes [Entry Point] [Constants] # {method} {0x000000011dc22920} 'runTest' '()Ljava/lang/String;' in 'FunctionalHashMap' # [sp+0x20] (sp of caller) 0x00000001063d24a0: mov 0x8(%rsi),%r10d 0x00000001063d24a4: movabs $0x800000000,%r12 0x00000001063d24ae: add %r12,%r10 0x00000001063d24b1: xor %r12,%r12 0x00000001063d24b4: cmp %r10,%rax 0x00000001063d24b7: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063d24bd: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063d24c0: mov %eax,-0x14000(%rsp) 0x00000001063d24c7: push %rbp 0x00000001063d24c8: sub $0x10,%rsp ;*synchronization entry ; - FunctionalHashMap::runTest@-1 (line 41) 0x00000001063d24cc: mov %rsi,%rbp 0x00000001063d24cf: mov $0xffffffbe,%esi 0x00000001063d24d4: data16 xchg %ax,%ax 0x00000001063d24d7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@8 (line 42) ; {runtime_call UncommonTrapBlob} 0x00000001063d24dc: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@8 (line 42) 0x00000001063d24de: hlt 0x00000001063d24df: hlt [Exception Handler] [Stub Code] 0x00000001063d24e0: jmpq 0x00000001063b0680 ; {no_reloc} [Deopt Handler Code] 0x00000001063d24e5: callq 0x00000001063d24ea 0x00000001063d24ea: subq $0x5,(%rsp) 0x00000001063d24ef: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d24f4: hlt 0x00000001063d24f5: hlt 0x00000001063d24f6: hlt 0x00000001063d24f7: hlt ImmutableOopMap{rbp=Oop }pc offsets: 60 Compiled method (c2) 313 81 % FunctionalHashMap::runTest @ 4 (25 bytes) total in heap [0x00000001063d0990,0x00000001063d1248] = 2232 relocation [0x00000001063d0b08,0x00000001063d0b58] = 80 main code [0x00000001063d0b60,0x00000001063d0e00] = 672 stub code [0x00000001063d0e00,0x00000001063d0e28] = 40 oops [0x00000001063d0e28,0x00000001063d0e38] = 16 metadata [0x00000001063d0e38,0x00000001063d0e70] = 56 scopes data [0x00000001063d0e70,0x00000001063d0fc8] = 344 scopes pcs [0x00000001063d0fc8,0x00000001063d11f8] = 560 dependencies [0x00000001063d11f8,0x00000001063d1200] = 8 handler table [0x00000001063d1200,0x00000001063d1230] = 48 nul chk table [0x00000001063d1230,0x00000001063d1248] = 24 ---------------------------------------------------------------------- FunctionalHashMap.runTest()Ljava/lang/String; [0x00000001063d0b60, 0x00000001063d0e28] 712 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011dc22920} 'runTest' '()Ljava/lang/String;' in 'FunctionalHashMap' 0x00000001063d0b60: callq 0x0000000105a107f4 ; {runtime_call os::breakpoint()} 0x00000001063d0b65: data16 data16 nopw 0x0(%rax,%rax,1) 0x00000001063d0b70: mov %eax,-0x14000(%rsp) 0x00000001063d0b77: push %rbp 0x00000001063d0b78: sub $0x30,%rsp 0x00000001063d0b7c: mov 0x10(%rsi),%r13 0x00000001063d0b80: mov 0x8(%rsi),%r14 0x00000001063d0b84: mov (%rsi),%ebx 0x00000001063d0b86: mov %rsi,%rdi 0x00000001063d0b89: movabs $0x105a91a82,%r10 0x00000001063d0b93: callq *%r10 0x00000001063d0b96: test %r13,%r13 0x00000001063d0b99: je 0x00000001063d0d46 0x00000001063d0b9f: mov 0x8(%r13),%r10d 0x00000001063d0ba3: cmp $0x60040,%r10d ; {metadata('FunctionalHashMap')} 0x00000001063d0baa: jne 0x00000001063d0da6 0x00000001063d0bb0: mov %r13,%r11 0x00000001063d0bb3: test %r14,%r14 0x00000001063d0bb6: je 0x00000001063d0d4e 0x00000001063d0bbc: mov 0x8(%r14),%r8d 0x00000001063d0bc0: cmp $0x1808,%r8d ; {metadata('java/lang/String')} 0x00000001063d0bc7: jne 0x00000001063d0da6 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@4 (line 42) 0x00000001063d0bcd: test %r11,%r11 0x00000001063d0bd0: je 0x00000001063d0d8e 0x00000001063d0bd6: mov $0x13c78,%r8d ; {metadata('java/lang/Integer')} 0x00000001063d0bdc: movabs $0x800000000,%r9 0x00000001063d0be6: add %r8,%r9 0x00000001063d0be9: jmpq 0x00000001063d0c67 0x00000001063d0bee: xchg %ax,%ax ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) 0x00000001063d0bf0: mov %r8,0x118(%r15) 0x00000001063d0bf7: prefetchnta 0xc0(%r8) 0x00000001063d0bff: mov 0xb8(%r9),%r8 0x00000001063d0c06: mov %r8,(%rdx) 0x00000001063d0c09: movl $0x13c78,0x8(%rdx) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {metadata('java/lang/Integer')} 0x00000001063d0c10: mov %ebx,0xc(%rdx) ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0c13: mov 0x8(%r12,%r10,8),%r8d ; implicit exception: dispatches to 0x00000001063d0dd2 0x00000001063d0c18: cmp $0x19838,%r8d ; {metadata('java/util/HashMap')} 0x00000001063d0c1f: jne 0x00000001063d0d29 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0c25: mov %r9,0x8(%rsp) 0x00000001063d0c2a: mov %r11,%rbp 0x00000001063d0c2d: mov %ebx,(%rsp) ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0c30: lea (%r12,%r10,8),%rsi 0x00000001063d0c34: data16 xchg %ax,%ax 0x00000001063d0c37: callq 0x0000000106379f00 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=1} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {optimized virtual_call} 0x00000001063d0c3c: mov %rax,%r14 0x00000001063d0c3f: mov 0x8(%rax),%r11d ; implicit exception: dispatches to 0x00000001063d0de2 0x00000001063d0c43: cmp $0x1808,%r11d ; {metadata('java/lang/String')} 0x00000001063d0c4a: jne 0x00000001063d0dbe ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) 0x00000001063d0c50: mov 0x108(%r15),%r10 0x00000001063d0c57: mov (%rsp),%ebx 0x00000001063d0c5a: inc %ebx ; ImmutableOopMap{rbp=Oop r14=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) 0x00000001063d0c5c: test %eax,(%r10) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) ; {poll} 0x00000001063d0c5f: mov %rbp,%r11 0x00000001063d0c62: mov 0x8(%rsp),%r9 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@4 (line 42) 0x00000001063d0c67: cmp $0x3e8,%ebx 0x00000001063d0c6d: jge 0x00000001063d0d16 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@8 (line 42) 0x00000001063d0c73: movabs $0x70fe0f540,%r10 ; {oop(a 'java/lang/Class'{0x000000070fe0f540} = 'FunctionalHashMap')} 0x00000001063d0c7d: mov 0x70(%r10),%r10d ;*getstatic map {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@0 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0c81: cmp $0xffffff80,%ebx 0x00000001063d0c84: jl 0x00000001063d0d56 ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0c8a: cmp $0x7f,%ebx 0x00000001063d0c8d: jle 0x00000001063d0ce4 0x00000001063d0c8f: mov 0x118(%r15),%rdx 0x00000001063d0c96: mov %rdx,%r8 0x00000001063d0c99: add $0x10,%r8 ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) 0x00000001063d0c9d: cmp 0x128(%r15),%r8 0x00000001063d0ca4: jb 0x00000001063d0bf0 0x00000001063d0caa: mov %r10d,0x10(%rsp) 0x00000001063d0caf: mov %r9,0x8(%rsp) 0x00000001063d0cb4: mov %r11,(%rsp) 0x00000001063d0cb8: mov %ebx,%ebp ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@10 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0cba: movabs $0x800013c78,%rsi ; {metadata('java/lang/Integer')} 0x00000001063d0cc4: data16 xchg %ax,%ax 0x00000001063d0cc7: callq 0x00000001063b0100 ; ImmutableOopMap{[0]=Oop [16]=NarrowOop } ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call _new_instance_Java} 0x00000001063d0ccc: mov %rax,%rdx 0x00000001063d0ccf: mov %ebp,%ebx 0x00000001063d0cd1: mov (%rsp),%r11 0x00000001063d0cd5: mov 0x8(%rsp),%r9 0x00000001063d0cda: mov 0x10(%rsp),%r10d 0x00000001063d0cdf: jmpq 0x00000001063d0c10 0x00000001063d0ce4: mov %ebx,%ebp 0x00000001063d0ce6: add $0x80,%ebp ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@20 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0cec: cmp $0x100,%ebp 0x00000001063d0cf2: jae 0x00000001063d0d72 0x00000001063d0cf8: movslq %ebx,%r8 0x00000001063d0cfb: movabs $0x70ff1e8c8,%rcx ; {oop(a 'java/lang/Integer'[256] {0x000000070ff1e8c8})} 0x00000001063d0d05: mov 0x210(%rcx,%r8,4),%r8d 0x00000001063d0d0d: lea (%r12,%r8,8),%rdx ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0d11: jmpq 0x00000001063d0c13 0x00000001063d0d16: mov %r14,%rax 0x00000001063d0d19: add $0x30,%rsp 0x00000001063d0d1d: pop %rbp 0x00000001063d0d1e: mov 0x108(%r15),%r10 0x00000001063d0d25: test %eax,(%r10) ; {poll_return} 0x00000001063d0d28: retq 0x00000001063d0d29: mov $0xffffffde,%esi 0x00000001063d0d2e: mov %r11,%rbp 0x00000001063d0d31: mov %ebx,0x4(%rsp) 0x00000001063d0d35: mov %r10d,0x8(%rsp) 0x00000001063d0d3a: mov %rdx,0x10(%rsp) 0x00000001063d0d3f: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=NarrowOop [16]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0d44: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0d46: xor %r11d,%r11d 0x00000001063d0d49: jmpq 0x00000001063d0bb3 0x00000001063d0d4e: xor %r14d,%r14d 0x00000001063d0d51: jmpq 0x00000001063d0bcd ;*if_icmplt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0d56: mov $0xffffff4d,%esi 0x00000001063d0d5b: mov %r11,%rbp 0x00000001063d0d5e: mov %ebx,0x4(%rsp) 0x00000001063d0d62: mov %r10d,0x8(%rsp) 0x00000001063d0d67: mov %ebx,0xc(%rsp) 0x00000001063d0d6b: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=NarrowOop } ;*if_icmplt {reexecute=1 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@3 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0d70: ud2 0x00000001063d0d72: mov $0xffffffe4,%esi 0x00000001063d0d77: mov %r11,(%rsp) 0x00000001063d0d7b: mov %ebx,0xc(%rsp) 0x00000001063d0d7f: mov %r10d,0x10(%rsp) 0x00000001063d0d84: data16 xchg %ax,%ax 0x00000001063d0d87: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [16]=NarrowOop } ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0d8c: ud2 0x00000001063d0d8e: mov $0xffffffbe,%esi 0x00000001063d0d93: mov %r11,%rbp 0x00000001063d0d96: mov %r14,(%rsp) 0x00000001063d0d9a: mov %ebx,0x8(%rsp) 0x00000001063d0d9e: nop 0x00000001063d0d9f: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [0]=Oop } ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@4 (line 42) ; {runtime_call UncommonTrapBlob} 0x00000001063d0da4: ud2 0x00000001063d0da6: mov $0xffffff95,%esi 0x00000001063d0dab: mov %r14,%rbp 0x00000001063d0dae: mov %ebx,(%rsp) 0x00000001063d0db1: mov %r13,0x8(%rsp) 0x00000001063d0db6: nop 0x00000001063d0db7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=Oop } ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@4 (line 42) ; {runtime_call UncommonTrapBlob} 0x00000001063d0dbc: ud2 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@4 (line 42) 0x00000001063d0dbe: mov $0xffffffde,%esi 0x00000001063d0dc3: mov %rax,0x8(%rsp) 0x00000001063d0dc8: data16 xchg %ax,%ax 0x00000001063d0dcb: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0dd0: ud2 0x00000001063d0dd2: mov $0xfffffff6,%esi 0x00000001063d0dd7: mov %rdx,%rbp 0x00000001063d0dda: nop 0x00000001063d0ddb: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0de0: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0de2: mov $0xfffffff4,%esi 0x00000001063d0de7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0dec: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0dee: mov %rax,%rsi 0x00000001063d0df1: jmp 0x00000001063d0df6 0x00000001063d0df3: mov %rax,%rsi ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0df6: add $0x30,%rsp 0x00000001063d0dfa: pop %rbp 0x00000001063d0dfb: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} [Stub Code] 0x00000001063d0e00: movabs $0x0,%rbx ; {no_reloc} 0x00000001063d0e0a: jmpq 0x00000001063d0e0a ; {runtime_call} [Exception Handler] 0x00000001063d0e0f: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063d0e14: callq 0x00000001063d0e19 0x00000001063d0e19: subq $0x5,(%rsp) 0x00000001063d0e1e: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d0e23: hlt 0x00000001063d0e24: hlt 0x00000001063d0e25: hlt 0x00000001063d0e26: hlt 0x00000001063d0e27: hlt ImmutableOopMap{rbp=Oop }pc offsets: 220 ImmutableOopMap{rbp=Oop r14=Oop }pc offsets: 252 ImmutableOopMap{[0]=Oop [16]=NarrowOop }pc offsets: 364 ImmutableOopMap{rbp=Oop [8]=NarrowOop [16]=Oop }pc offsets: 484 ImmutableOopMap{rbp=Oop [8]=NarrowOop }pc offsets: 528 ImmutableOopMap{[0]=Oop [16]=NarrowOop }pc offsets: 556 ImmutableOopMap{rbp=Oop [0]=Oop }pc offsets: 580 ImmutableOopMap{rbp=Oop [8]=Oop }pc offsets: 604 624 ImmutableOopMap{rbp=Oop }pc offsets: 640 652 Compiled method (c2) 322 82 FunctionalHashMap::runTest (25 bytes) total in heap [0x00000001063d0190,0x00000001063d0938] = 1960 relocation [0x00000001063d0308,0x00000001063d0348] = 64 main code [0x00000001063d0360,0x00000001063d0580] = 544 stub code [0x00000001063d0580,0x00000001063d05a8] = 40 oops [0x00000001063d05a8,0x00000001063d05c0] = 24 metadata [0x00000001063d05c0,0x00000001063d0608] = 72 scopes data [0x00000001063d0608,0x00000001063d0738] = 304 scopes pcs [0x00000001063d0738,0x00000001063d08e8] = 432 dependencies [0x00000001063d08e8,0x00000001063d08f0] = 8 handler table [0x00000001063d08f0,0x00000001063d0920] = 48 nul chk table [0x00000001063d0920,0x00000001063d0938] = 24 ---------------------------------------------------------------------- FunctionalHashMap.runTest()Ljava/lang/String; [0x00000001063d0360, 0x00000001063d05a8] 584 bytes [Entry Point] [Constants] # {method} {0x000000011dc22920} 'runTest' '()Ljava/lang/String;' in 'FunctionalHashMap' # [sp+0x40] (sp of caller) 0x00000001063d0360: mov 0x8(%rsi),%r10d 0x00000001063d0364: movabs $0x800000000,%r12 0x00000001063d036e: add %r12,%r10 0x00000001063d0371: xor %r12,%r12 0x00000001063d0374: cmp %r10,%rax 0x00000001063d0377: jne 0x0000000106379c80 ; {runtime_call ic_miss_stub} 0x00000001063d037d: data16 xchg %ax,%ax [Verified Entry Point] 0x00000001063d0380: mov %eax,-0x14000(%rsp) 0x00000001063d0387: push %rbp 0x00000001063d0388: sub $0x30,%rsp ;*synchronization entry ; - FunctionalHashMap::runTest@-1 (line 41) 0x00000001063d038c: mov %rsi,(%rsp) 0x00000001063d0390: mov $0x13c78,%r11d ; {metadata('java/lang/Integer')} 0x00000001063d0396: movabs $0x800000000,%rcx 0x00000001063d03a0: add %r11,%rcx 0x00000001063d03a3: xor %r10d,%r10d 0x00000001063d03a6: jmpq 0x00000001063d0421 0x00000001063d03ab: nopl 0x0(%rax,%rax,1) 0x00000001063d03b0: mov %r11,0x118(%r15) 0x00000001063d03b7: prefetchnta 0xc0(%r11) 0x00000001063d03bf: mov 0xb8(%rcx),%r11 0x00000001063d03c6: mov %r11,(%rdx) 0x00000001063d03c9: movl $0x13c78,0x8(%rdx) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {metadata('java/lang/Integer')} 0x00000001063d03d0: mov %r10d,0xc(%rdx) ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d03d4: mov 0x8(%r12,%r9,8),%r8d ; implicit exception: dispatches to 0x00000001063d051e 0x00000001063d03d9: cmp $0x19838,%r8d ; {metadata('java/util/HashMap')} 0x00000001063d03e0: jne 0x00000001063d04bd 0x00000001063d03e6: mov %r10d,0x8(%rsp) 0x00000001063d03eb: mov %rcx,%rbp 0x00000001063d03ee: lea (%r12,%r9,8),%rsi 0x00000001063d03f2: nop 0x00000001063d03f3: callq 0x0000000106379f00 ; ImmutableOopMap{[0]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=1} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {optimized virtual_call} 0x00000001063d03f8: mov 0x8(%rax),%r10d ; implicit exception: dispatches to 0x00000001063d052e 0x00000001063d03fc: cmp $0x1808,%r10d ; {metadata('java/lang/String')} 0x00000001063d0403: jne 0x00000001063d04f6 ;*invokespecial <init> {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@5 ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@10 ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@5 ; - FunctionalHashMap::max100@17 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0409: mov 0x8(%rsp),%r10d 0x00000001063d040e: inc %r10d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@17 (line 42) 0x00000001063d0411: cmp $0x3e8,%r10d 0x00000001063d0418: jge 0x00000001063d04ad ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@8 (line 42) 0x00000001063d041e: mov %rbp,%rcx ;*aload_0 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@11 (line 43) 0x00000001063d0421: movabs $0x70fe0f540,%r11 ; {oop(a 'java/lang/Class'{0x000000070fe0f540} = 'FunctionalHashMap')} 0x00000001063d042b: mov 0x70(%r11),%r9d ;*getstatic map {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@0 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d042f: cmp $0x7f,%r10d 0x00000001063d0433: jle 0x00000001063d0481 ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@10 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0435: mov 0x118(%r15),%rdx 0x00000001063d043c: mov %rdx,%r11 0x00000001063d043f: add $0x10,%r11 0x00000001063d0443: cmp 0x128(%r15),%r11 0x00000001063d044a: jb 0x00000001063d03b0 0x00000001063d0450: mov %r9d,0xc(%rsp) 0x00000001063d0455: mov %r10d,0x8(%rsp) 0x00000001063d045a: mov %rcx,%rbp 0x00000001063d045d: movabs $0x800013c78,%rsi ; {metadata('java/lang/Integer')} 0x00000001063d0467: callq 0x00000001063b0100 ; ImmutableOopMap{[0]=Oop [12]=NarrowOop } ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call _new_instance_Java} 0x00000001063d046c: mov %rax,%rdx 0x00000001063d046f: mov %rbp,%rcx 0x00000001063d0472: mov 0x8(%rsp),%r10d 0x00000001063d0477: mov 0xc(%rsp),%r9d 0x00000001063d047c: jmpq 0x00000001063d03d0 0x00000001063d0481: mov %r10d,%ebp 0x00000001063d0484: add $0x80,%ebp ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@20 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d048a: cmp $0x100,%ebp 0x00000001063d0490: jae 0x00000001063d04de 0x00000001063d0492: movabs $0x70ff1e8c8,%r11 ; {oop(a 'java/lang/Integer'[256] {0x000000070ff1e8c8})} 0x00000001063d049c: mov 0x210(%r11,%r10,4),%r11d 0x00000001063d04a4: lea (%r12,%r11,8),%rdx ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d04a8: jmpq 0x00000001063d03d4 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d04ad: add $0x30,%rsp 0x00000001063d04b1: pop %rbp 0x00000001063d04b2: mov 0x108(%r15),%r10 0x00000001063d04b9: test %eax,(%r10) ; {poll_return} 0x00000001063d04bc: retq 0x00000001063d04bd: mov $0xffffffde,%esi 0x00000001063d04c2: mov (%rsp),%rbp 0x00000001063d04c6: mov %r10d,0x4(%rsp) 0x00000001063d04cb: mov %r9d,0x8(%rsp) 0x00000001063d04d0: mov %rdx,0x10(%rsp) 0x00000001063d04d5: xchg %ax,%ax 0x00000001063d04d7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=NarrowOop [16]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d04dc: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d04de: mov $0xffffffe4,%esi 0x00000001063d04e3: mov %r10d,0xc(%rsp) 0x00000001063d04e8: mov %r9d,0x10(%rsp) 0x00000001063d04ed: xchg %ax,%ax 0x00000001063d04ef: callq 0x000000010637b900 ; ImmutableOopMap{[0]=Oop [16]=NarrowOop } ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d04f4: ud2 ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d04f6: mov $0xffffffde,%esi 0x00000001063d04fb: mov (%rsp),%rbp 0x00000001063d04ff: mov %rax,-0x8(%rsp) 0x00000001063d0504: mov 0x8(%rsp),%eax 0x00000001063d0508: mov %eax,(%rsp) 0x00000001063d050b: mov -0x8(%rsp),%rax 0x00000001063d0510: mov %rax,0x8(%rsp) 0x00000001063d0515: xchg %ax,%ax 0x00000001063d0517: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [8]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d051c: ud2 ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d051e: mov $0xfffffff6,%esi 0x00000001063d0523: mov %rdx,%rbp 0x00000001063d0526: nop 0x00000001063d0527: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d052c: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d052e: mov $0xfffffff4,%esi 0x00000001063d0533: mov (%rsp),%rbp 0x00000001063d0537: mov %rax,-0x8(%rsp) 0x00000001063d053c: mov 0x8(%rsp),%eax 0x00000001063d0540: mov %eax,(%rsp) 0x00000001063d0543: mov -0x8(%rsp),%rax 0x00000001063d0548: data16 xchg %ax,%ax 0x00000001063d054b: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; {runtime_call UncommonTrapBlob} 0x00000001063d0550: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) 0x00000001063d0552: mov %rax,%rsi 0x00000001063d0555: jmp 0x00000001063d055a 0x00000001063d0557: mov %rax,%rsi ;*synchronization entry ; - FunctionalHashMap::runTest@-1 (line 41) 0x00000001063d055a: add $0x30,%rsp 0x00000001063d055e: pop %rbp 0x00000001063d055f: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063d0564: hlt 0x00000001063d0565: hlt 0x00000001063d0566: hlt 0x00000001063d0567: hlt 0x00000001063d0568: hlt 0x00000001063d0569: hlt 0x00000001063d056a: hlt 0x00000001063d056b: hlt 0x00000001063d056c: hlt 0x00000001063d056d: hlt 0x00000001063d056e: hlt 0x00000001063d056f: hlt 0x00000001063d0570: hlt 0x00000001063d0571: hlt 0x00000001063d0572: hlt 0x00000001063d0573: hlt 0x00000001063d0574: hlt 0x00000001063d0575: hlt 0x00000001063d0576: hlt 0x00000001063d0577: hlt 0x00000001063d0578: hlt 0x00000001063d0579: hlt 0x00000001063d057a: hlt 0x00000001063d057b: hlt 0x00000001063d057c: hlt 0x00000001063d057d: hlt 0x00000001063d057e: hlt 0x00000001063d057f: hlt [Stub Code] 0x00000001063d0580: movabs $0x0,%rbx ; {no_reloc} 0x00000001063d058a: jmpq 0x00000001063d058a ; {runtime_call} [Exception Handler] 0x00000001063d058f: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063d0594: callq 0x00000001063d0599 0x00000001063d0599: subq $0x5,(%rsp) 0x00000001063d059e: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d05a3: hlt 0x00000001063d05a4: hlt 0x00000001063d05a5: hlt 0x00000001063d05a6: hlt 0x00000001063d05a7: hlt ImmutableOopMap{[0]=Oop }pc offsets: 152 ImmutableOopMap{[0]=Oop [12]=NarrowOop }pc offsets: 268 ImmutableOopMap{rbp=Oop [8]=NarrowOop [16]=Oop }pc offsets: 380 ImmutableOopMap{[0]=Oop [16]=NarrowOop }pc offsets: 404 ImmutableOopMap{rbp=Oop [8]=Oop }pc offsets: 444 ImmutableOopMap{rbp=Oop }pc offsets: 460 496 Compiled method (c2) 498 83 % FunctionalHashMap::main @ 36 (72 bytes) total in heap [0x00000001063d4010,0x00000001063d4970] = 2400 relocation [0x00000001063d4188,0x00000001063d41d0] = 72 main code [0x00000001063d41e0,0x00000001063d4460] = 640 stub code [0x00000001063d4460,0x00000001063d4488] = 40 oops [0x00000001063d4488,0x00000001063d44a0] = 24 metadata [0x00000001063d44a0,0x00000001063d44f8] = 88 scopes data [0x00000001063d44f8,0x00000001063d46b8] = 448 scopes pcs [0x00000001063d46b8,0x00000001063d4918] = 608 dependencies [0x00000001063d4918,0x00000001063d4920] = 8 handler table [0x00000001063d4920,0x00000001063d4950] = 48 nul chk table [0x00000001063d4950,0x00000001063d4970] = 32 ---------------------------------------------------------------------- FunctionalHashMap.main([Ljava/lang/String;)V [0x00000001063d41e0, 0x00000001063d4488] 680 bytes [Entry Point] [Verified Entry Point] [Constants] # {method} {0x000000011dc22790} 'main' '([Ljava/lang/String;)V' in 'FunctionalHashMap' 0x00000001063d41e0: callq 0x0000000105a107f4 ; {runtime_call os::breakpoint()} 0x00000001063d41e5: data16 data16 nopw 0x0(%rax,%rax,1) 0x00000001063d41f0: mov %eax,-0x14000(%rsp) 0x00000001063d41f7: push %rbp 0x00000001063d41f8: sub $0x40,%rsp 0x00000001063d41fc: mov 0x8(%rsi),%r13 0x00000001063d4200: mov (%rsi),%ebx 0x00000001063d4202: mov %rsi,%rdi 0x00000001063d4205: movabs $0x105a91a82,%r10 0x00000001063d420f: callq *%r10 0x00000001063d4212: mov 0x8(%r13),%r11d ; implicit exception: dispatches to 0x00000001063d4444 0x00000001063d4216: cmp $0x60040,%r11d ; {metadata('FunctionalHashMap')} 0x00000001063d421d: jne 0x00000001063d43e2 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) 0x00000001063d4223: mov $0x13c78,%r11d ; {metadata('java/lang/Integer')} 0x00000001063d4229: movabs $0x800000000,%r9 0x00000001063d4233: add %r11,%r9 0x00000001063d4236: jmp 0x00000001063d4251 ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4238: mov 0x108(%r15),%r10 0x00000001063d423f: mov (%rsp),%ebx 0x00000001063d4242: inc %ebx ; ImmutableOopMap{[8]=Oop } ;*goto {reexecute=1 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@50 (line 24) 0x00000001063d4244: test %eax,(%r10) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@50 (line 24) ; {poll} 0x00000001063d4247: mov 0x8(%rsp),%r13 0x00000001063d424c: mov 0x10(%rsp),%r9 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) 0x00000001063d4251: cmp $0x7a120,%ebx 0x00000001063d4257: jge 0x00000001063d43ce ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@39 (line 24) 0x00000001063d425d: xor %r10d,%r10d 0x00000001063d4260: jmpq 0x00000001063d42f7 0x00000001063d4265: data16 data16 nopw 0x0(%rax,%rax,1) ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4270: mov %r11,0x118(%r15) 0x00000001063d4277: prefetchnta 0xc0(%r11) 0x00000001063d427f: mov 0xb8(%r9),%r11 0x00000001063d4286: mov %r11,(%rax) 0x00000001063d4289: movl $0x13c78,0x8(%rax) ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {metadata('java/lang/Integer')} 0x00000001063d4290: mov %r10d,0xc(%rax) 0x00000001063d4294: mov %rax,%rdx ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4297: mov 0x8(%r12,%rbp,8),%r8d ; implicit exception: dispatches to 0x00000001063d440e 0x00000001063d429c: cmp $0x19838,%r8d ; {metadata('java/util/HashMap')} 0x00000001063d42a3: jne 0x00000001063d438d ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42a9: mov %r10d,0x4(%rsp) 0x00000001063d42ae: mov %r9,0x10(%rsp) 0x00000001063d42b3: mov %ebx,(%rsp) 0x00000001063d42b6: mov %r13,0x8(%rsp) ;*invokestatic valueOf {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42bb: lea (%r12,%rbp,8),%rsi 0x00000001063d42bf: callq 0x0000000106379f00 ; ImmutableOopMap{[8]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=1} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {optimized virtual_call} 0x00000001063d42c4: mov 0x8(%rax),%r10d ; implicit exception: dispatches to 0x00000001063d441e 0x00000001063d42c8: cmp $0x1808,%r10d ; {metadata('java/lang/String')} 0x00000001063d42cf: jne 0x00000001063d43f6 ;*invokespecial <init> {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap$$Lambda$1/0x0000000800060840::get$Lambda@5 ; - java.lang.invoke.DirectMethodHandle$Holder::invokeStatic@10 ; - java.lang.invoke.Invokers$Holder::linkToTargetMethod@5 ; - FunctionalHashMap::max100@17 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42d5: mov 0x4(%rsp),%r10d 0x00000001063d42da: inc %r10d ;*iinc {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@17 (line 42) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42dd: cmp $0x3e8,%r10d 0x00000001063d42e4: jge 0x00000001063d4238 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@8 (line 42) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42ea: mov 0x8(%rsp),%r13 0x00000001063d42ef: mov (%rsp),%ebx 0x00000001063d42f2: mov 0x10(%rsp),%r9 ;*aload_0 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@11 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d42f7: movabs $0x70661ef90,%r11 ; {oop(a 'java/lang/Class'{0x000000070661ef90} = 'FunctionalHashMap')} 0x00000001063d4301: mov 0x70(%r11),%ebp ;*getstatic map {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@0 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4305: cmp $0x7f,%r10d 0x00000001063d4309: jle 0x00000001063d435f 0x00000001063d430b: mov 0x118(%r15),%rax 0x00000001063d4312: mov %rax,%r11 0x00000001063d4315: add $0x10,%r11 ;*goto {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::runTest@20 (line 42) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4319: cmp 0x128(%r15),%r11 0x00000001063d4320: jb 0x00000001063d4270 0x00000001063d4326: mov %r10d,0xc(%rsp) 0x00000001063d432b: mov %r9,0x10(%rsp) 0x00000001063d4330: mov %ebx,0x8(%rsp) 0x00000001063d4334: mov %r13,(%rsp) ;*if_icmpgt {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@10 (line 1048) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4338: movabs $0x800013c78,%rsi ; {metadata('java/lang/Integer')} 0x00000001063d4342: nop 0x00000001063d4343: callq 0x00000001063b0100 ; ImmutableOopMap{rbp=NarrowOop [0]=Oop } ;*new {reexecute=0 rethrow=0 return_oop=1} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call _new_instance_Java} 0x00000001063d4348: mov (%rsp),%r13 0x00000001063d434c: mov 0x8(%rsp),%ebx 0x00000001063d4350: mov 0x10(%rsp),%r9 0x00000001063d4355: mov 0xc(%rsp),%r10d 0x00000001063d435a: jmpq 0x00000001063d4290 0x00000001063d435f: mov %r10d,%r8d 0x00000001063d4362: add $0x80,%r8d ;*iadd {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@20 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4369: cmp $0x100,%r8d 0x00000001063d4370: jae 0x00000001063d43ae 0x00000001063d4372: movabs $0x70661f008,%r11 ; {oop(a 'java/lang/Integer'[256] {0x000000070661f008})} 0x00000001063d437c: mov 0x210(%r11,%r10,4),%r8d 0x00000001063d4384: lea (%r12,%r8,8),%rdx ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4388: jmpq 0x00000001063d4297 0x00000001063d438d: mov $0xffffffde,%esi 0x00000001063d4392: mov %ebx,0x8(%rsp) 0x00000001063d4396: mov %r13,0x10(%rsp) 0x00000001063d439b: mov %r10d,0x18(%rsp) 0x00000001063d43a0: mov %rdx,0x20(%rsp) 0x00000001063d43a5: xchg %ax,%ax 0x00000001063d43a7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=NarrowOop [16]=Oop [32]=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call UncommonTrapBlob} 0x00000001063d43ac: ud2 0x00000001063d43ae: mov $0xffffffe4,%esi 0x00000001063d43b3: mov %ebx,0x8(%rsp) 0x00000001063d43b7: mov %r13,0x10(%rsp) 0x00000001063d43bc: mov %r10d,0x18(%rsp) 0x00000001063d43c1: mov %r8d,0x1c(%rsp) 0x00000001063d43c6: nop 0x00000001063d43c7: callq 0x000000010637b900 ; ImmutableOopMap{rbp=NarrowOop [16]=Oop } ;*aaload {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@21 (line 1049) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call UncommonTrapBlob} 0x00000001063d43cc: ud2 ;*if_icmpge {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@39 (line 24) 0x00000001063d43ce: mov $0xffffff4d,%esi 0x00000001063d43d3: mov %r13,%rbp 0x00000001063d43d6: mov %ebx,0x4(%rsp) 0x00000001063d43da: nop 0x00000001063d43db: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*if_icmpge {reexecute=1 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@39 (line 24) ; {runtime_call UncommonTrapBlob} 0x00000001063d43e0: ud2 0x00000001063d43e2: mov $0xffffff95,%esi 0x00000001063d43e7: mov %r13,%rbp 0x00000001063d43ea: mov %ebx,(%rsp) 0x00000001063d43ed: xchg %ax,%ax 0x00000001063d43ef: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) ; {runtime_call UncommonTrapBlob} 0x00000001063d43f4: ud2 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) 0x00000001063d43f6: mov $0xffffffde,%esi 0x00000001063d43fb: mov 0x8(%rsp),%rbp 0x00000001063d4400: mov %rax,0x18(%rsp) 0x00000001063d4405: xchg %ax,%ax 0x00000001063d4407: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop [24]=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call UncommonTrapBlob} 0x00000001063d440c: ud2 0x00000001063d440e: mov $0xfffffff6,%esi 0x00000001063d4413: mov %rdx,%rbp 0x00000001063d4416: nop 0x00000001063d4417: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call UncommonTrapBlob} 0x00000001063d441c: ud2 ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d441e: mov $0xfffffff4,%esi 0x00000001063d4423: mov 0x8(%rsp),%rbp 0x00000001063d4428: data16 xchg %ax,%ax 0x00000001063d442b: callq 0x000000010637b900 ; ImmutableOopMap{rbp=Oop } ;*checkcast {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@10 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) ; {runtime_call UncommonTrapBlob} 0x00000001063d4430: ud2 ;*new {reexecute=0 rethrow=0 return_oop=0} ; - java.lang.Integer::valueOf@23 (line 1050) ; - FunctionalHashMap::max100@4 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d4432: mov %rax,%rsi 0x00000001063d4435: jmp 0x00000001063d443a 0x00000001063d4437: mov %rax,%rsi ;*invokevirtual get {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::max100@7 (line 49) ; - FunctionalHashMap::runTest@13 (line 43) ; - FunctionalHashMap::main@43 (line 25) 0x00000001063d443a: add $0x40,%rsp 0x00000001063d443e: pop %rbp 0x00000001063d443f: jmpq 0x00000001063b2700 ; {runtime_call _rethrow_Java} 0x00000001063d4444: mov $0xffffff7e,%esi 0x00000001063d4449: mov %ebx,%ebp 0x00000001063d444b: callq 0x000000010637b900 ; ImmutableOopMap{} ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) ; {runtime_call UncommonTrapBlob} 0x00000001063d4450: ud2 ;*iload_2 {reexecute=0 rethrow=0 return_oop=0} ; - FunctionalHashMap::main@36 (line 24) 0x00000001063d4452: hlt 0x00000001063d4453: hlt 0x00000001063d4454: hlt 0x00000001063d4455: hlt 0x00000001063d4456: hlt 0x00000001063d4457: hlt 0x00000001063d4458: hlt 0x00000001063d4459: hlt 0x00000001063d445a: hlt 0x00000001063d445b: hlt 0x00000001063d445c: hlt 0x00000001063d445d: hlt 0x00000001063d445e: hlt 0x00000001063d445f: hlt [Stub Code] 0x00000001063d4460: movabs $0x0,%rbx ; {no_reloc} 0x00000001063d446a: jmpq 0x00000001063d446a ; {runtime_call} [Exception Handler] 0x00000001063d446f: jmpq 0x00000001063b0680 ; {runtime_call ExceptionBlob} [Deopt Handler Code] 0x00000001063d4474: callq 0x00000001063d4479 0x00000001063d4479: subq $0x5,(%rsp) 0x00000001063d447e: jmpq 0x000000010637b520 ; {runtime_call DeoptimizationBlob} 0x00000001063d4483: hlt 0x00000001063d4484: hlt 0x00000001063d4485: hlt 0x00000001063d4486: hlt 0x00000001063d4487: hlt ImmutableOopMap{[8]=Oop }pc offsets: 100 228 ImmutableOopMap{rbp=NarrowOop [0]=Oop }pc offsets: 360 ImmutableOopMap{rbp=NarrowOop [16]=Oop [32]=Oop }pc offsets: 460 ImmutableOopMap{rbp=NarrowOop [16]=Oop }pc offsets: 492 ImmutableOopMap{rbp=Oop }pc offsets: 512 532 ImmutableOopMap{rbp=Oop [24]=Oop }pc offsets: 556 ImmutableOopMap{rbp=Oop }pc offsets: 572 592 ImmutableOopMap{}pc offsets: 624 Test phase Time elapsed: 0.009 ms result=337
source/stm32-f4-address_map.ads
Vovanium/stm32-ada
1
16708
package STM32.F4.Address_Map is pragma Pure; TIM2: constant := 16#4000_0000#; TIM3: constant := 16#4000_0400#; TIM4: constant := 16#4000_0800#; TIM5: constant := 16#4000_0C00#; TIM6: constant := 16#4000_1000#; TIM7: constant := 16#4000_1400#; TIM12: constant := 16#4000_1800#; TIM13: constant := 16#4000_1C00#; TIM14: constant := 16#4000_2000#; RTC_and_BKP: constant := 16#4000_2800#; WWDG: constant := 16#4000_2C00#; IWDG: constant := 16#4000_3000#; I2S2ext: constant := 16#4000_3400#; SPI2_I2S2: constant := 16#4000_3800#; SPI3_I2S3: constant := 16#4000_3C00#; I2S3ext: constant := 16#4000_4000#; USART2: constant := 16#4000_4400#; USART3: constant := 16#4000_4800#; UART4: constant := 16#4000_4C00#; UART5: constant := 16#4000_5000#; I2C1: constant := 16#4000_5400#; I2C2: constant := 16#4000_5800#; I2C3: constant := 16#4000_5C00#; CAN1: constant := 16#4000_6400#; CAN2: constant := 16#4000_6800#; PWR: constant := 16#4000_7000#; DAC: constant := 16#4000_7400#; UART7: constant := 14#4000_7800#; UART8: constant := 14#4000_7C00#; TIM1: constant := 16#4001_0000#; TIM8: constant := 16#4001_0400#; USART1: constant := 16#4001_1000#; USART6: constant := 16#4001_1400#; ADC1_2_3: constant := 16#4001_2000#; SDIO: constant := 16#4001_2C00#; SPI1: constant := 16#4001_3000#; SPI4: constant := 16#4001_3400#; SYSCFG: constant := 16#4001_3800#; EXTI: constant := 16#4001_3C00#; TIM9: constant := 16#4001_4000#; TIM10: constant := 16#4001_4400#; TIM11: constant := 16#4001_4800#; GPIOA: constant := 16#4002_0000#; GPIOB: constant := 16#4002_0400#; GPIOC: constant := 16#4002_0800#; GPIOD: constant := 16#4002_0C00#; GPIOE: constant := 16#4002_1000#; GPIOF: constant := 16#4002_1400#; GPIOG: constant := 16#4002_1800#; GPIOH: constant := 16#4002_1C00#; GPIOI: constant := 16#4002_2000#; GPIOJ: constant := 16#4002_2400#; GPIOK: constant := 16#4002_2800#; CRC: constant := 16#4002_3000#; RCC: constant := 16#4002_3800#; Flash_IR: constant := 16#4002_3C00#; BKPSRAM: constant := 16#4002_4000#; DMA1: constant := 16#4002_6000#; DMA2: constant := 16#4002_6400#; Ethernet_MAC:constant := 16#4002_8000#; DMA2D: constant := 16#4002_B000#; USB_OTG_HS: constant := 16#4004_0000#; USB_OTG_FS: constant := 16#5000_0000#; DCMI: constant := 16#5005_0000#; CRYP: constant := 16#5006_0000#; HASH: constant := 16#5006_0400#; RNG: constant := 16#5006_0800#; FSMC_Bank1: constant := 16#6000_0000#; FSMC_Bank2: constant := 16#7000_0000#; FSMC_Bank3: constant := 16#8000_0000#; FSMC_Bank4: constant := 16#9000_0000#; FMC_FSMC: constant := 16#A000_0000#; end STM32.F4.Address_Map;
Lenkung1.asm
onnoeberhard/avr-projects
0
11662
<reponame>onnoeberhard/avr-projects<filename>Lenkung1.asm ;pin B0 = Lenkspule ;pin B1 = enable .include "m8def.inc" .def temp1 = r17 ldi temp1, LOW(RAMEND) ; Stack-Pointer initialisieren out SPL, temp1 ldi temp1, HIGH(RAMEND) out SPH, temp1 ldi r16, 0x00 out DDRB, r16 loop: ; Lenker links ldi r16, 0b00000001 out DDRB, r16 rcall delay_sm ;<NAME> ldi r16, 0b00000011 out DDRB, r16 rcall delay_sm ;<NAME> ldi r16, 0b00000000 out DDRB, r16 rcall delay_sm ;Lenker geradeaus ldi r16, 0b00000010 out DDRB, r16 rcall delay_sm rjmp loop delay_sm: ldi temp1, 16 WGLOOP0: ldi r18, 255 WGLOOP1: ldi r19, 255 WGLOOP2: dec r19 brne WGLOOP2 dec r18 brne WGLOOP1 dec temp1 brne WGLOOP0 ret
engine/titlescreen.asm
AmateurPanda92/pokemon-rby-dx
9
7221
; copy text of fixed length NAME_LENGTH (like player name, rival name, mon names, ...) CopyFixedLengthText: ld bc, NAME_LENGTH jp CopyData SetDefaultNamesBeforeTitlescreen: ld hl, NintenText ld de, wPlayerName call CopyFixedLengthText ld hl, SonyText ld de, wRivalName call CopyFixedLengthText xor a ld [hWY], a ld [wLetterPrintingDelayFlags], a ld hl, wd732 ld [hli], a ld [hli], a ld [hl], a ld a, BANK(Music_TitleScreen) ld [wAudioROMBank], a ld [wAudioSavedROMBank], a DisplayTitleScreen: call GBPalWhiteOut ld a, $1 ld [H_AUTOBGTRANSFERENABLED], a xor a ld [hTilesetType], a ld [hSCX], a ld a, $40 ld [hSCY], a ld a, $90 ld [hWY], a call ClearScreen call DisableLCD call LoadFontTilePatterns ld hl, NintendoCopyrightLogoGraphics ld de, vTitleLogo2 + $100 ld bc, $50 ld a, BANK(NintendoCopyrightLogoGraphics) call FarCopyData2 ld hl, GamefreakLogoGraphics ld de, vTitleLogo2 + $100 + $50 ld bc, $90 ld a, BANK(GamefreakLogoGraphics) call FarCopyData2 ld hl, PokemonLogoGraphics ld de, vTitleLogo ld bc, $600 ld a, BANK(PokemonLogoGraphics) call FarCopyData2 ; first chunk ld hl, PokemonLogoGraphics+$600 ld de, vTitleLogo2 ld bc, $100 ld a, BANK(PokemonLogoGraphics) call FarCopyData2 ; second chunk ld hl, Version_GFX ld de, vChars2 + $600 - (Version_GFXEnd - Version_GFX - $50) ld bc, Version_GFXEnd - Version_GFX ld a, BANK(Version_GFX) call FarCopyDataDouble call ClearBothBGMaps ; place tiles for pokemon logo (except for the last row) coord hl, 2, 1 ld a, $80 ld de, SCREEN_WIDTH ld c, 6 .pokemonLogoTileLoop ld b, $10 push hl .pokemonLogoTileRowLoop ; place tiles for one row ld [hli], a inc a dec b jr nz, .pokemonLogoTileRowLoop pop hl add hl, de dec c jr nz, .pokemonLogoTileLoop ; place tiles for the last row of the pokemon logo coord hl, 2, 7 ld a, $31 ld b, $10 .pokemonLogoLastTileRowLoop ld [hli], a inc a dec b jr nz, .pokemonLogoLastTileRowLoop call DrawPlayerCharacter ; put a pokeball in the player's hand ld hl, wOAMBuffer + $28 ld a, $74 ld [hl], a ; place tiles for title screen copyright coord hl, 2, 17 ld de, .tileScreenCopyrightTiles ld b, $10 .tileScreenCopyrightTilesLoop ld a, [de] ld [hli], a inc de dec b jr nz, .tileScreenCopyrightTilesLoop jr .next .tileScreenCopyrightTiles db $41,$42,$43,$42,$44,$42,$45,$46,$47,$48,$49,$4A,$4B,$4C,$4D,$4E ; ©'95.'96.'98 GAME FREAK inc. .next call SaveScreenTilesToBuffer2 call LoadScreenTilesFromBuffer2 call EnableLCD IF DEF(_RED) ld a, CHARMANDER ; which Pokemon to show first on the title screen ENDC IF DEF(_BLUE) ld a, SQUIRTLE ; which Pokemon to show first on the title screen ENDC ld [wTitleMonSpecies], a call LoadTitleMonSprite ld a, (vBGMap0 + $300) / $100 call TitleScreenCopyTileMapToVRAM call SaveScreenTilesToBuffer1 ld a, $40 ld [hWY], a call LoadScreenTilesFromBuffer2 ld a, vBGMap0 / $100 call TitleScreenCopyTileMapToVRAM ld b, SET_PAL_TITLE_SCREEN call RunPaletteCommand call GBPalNormal ld a, %11100100 ld [rOBP0], a ; make pokemon logo bounce up and down ld bc, hSCY ; background scroll Y ld hl, .TitleScreenPokemonLogoYScrolls .bouncePokemonLogoLoop ld a, [hli] and a jr z, .finishedBouncingPokemonLogo ld d, a cp -3 jr nz, .skipPlayingSound ld a, SFX_INTRO_CRASH call PlaySound .skipPlayingSound ld a, [hli] ld e, a call .ScrollTitleScreenPokemonLogo jr .bouncePokemonLogoLoop .TitleScreenPokemonLogoYScrolls: ; Controls the bouncing effect of the Pokemon logo on the title screen db -4,16 ; y scroll amount, number of times to scroll db 3,4 db -3,4 db 2,2 db -2,2 db 1,2 db -1,2 db 0 ; terminate list with 0 .ScrollTitleScreenPokemonLogo: ; Scrolls the Pokemon logo on the title screen to create the bouncing effect ; Scrolls d pixels e times call DelayFrame ld a, [bc] ; background scroll Y add d ld [bc], a dec e jr nz, .ScrollTitleScreenPokemonLogo ret .finishedBouncingPokemonLogo call LoadScreenTilesFromBuffer1 ld c, 36 call DelayFrames ld a, SFX_INTRO_WHOOSH call PlaySound ; scroll game version in from the right call PrintGameVersionOnTitleScreen ld a, SCREEN_HEIGHT_PIXELS ld [hWY], a ld d, 144 .scrollTitleScreenGameVersionLoop ld h, d ld l, 64 call ScrollTitleScreenGameVersion ld h, 0 ld l, 80 call ScrollTitleScreenGameVersion ld a, d add 4 ld d, a and a jr nz, .scrollTitleScreenGameVersionLoop ld a, vBGMap1 / $100 call TitleScreenCopyTileMapToVRAM call LoadScreenTilesFromBuffer2 call PrintGameVersionOnTitleScreen call Delay3 call WaitForSoundToFinish ld a, MUSIC_TITLE_SCREEN ld [wNewSoundID], a call PlaySound xor a ld [wUnusedCC5B], a ; Keep scrolling in new mons indefinitely until the user performs input. .awaitUserInterruptionLoop ld c, 200 call CheckForUserInterruption jr c, .finishedWaiting call TitleScreenScrollInMon ld c, 1 call CheckForUserInterruption jr c, .finishedWaiting callba TitleScreenAnimateBallIfStarterOut call TitleScreenPickNewMon jr .awaitUserInterruptionLoop .finishedWaiting ld a, [wTitleMonSpecies] call PlayCry call WaitForSoundToFinish call GBPalWhiteOutWithDelay3 call ClearSprites xor a ld [hWY], a inc a ld [H_AUTOBGTRANSFERENABLED], a call ClearScreen ld a, vBGMap0 / $100 call TitleScreenCopyTileMapToVRAM ld a, vBGMap1 / $100 call TitleScreenCopyTileMapToVRAM call Delay3 call LoadGBPal ld a, [hJoyHeld] ld b, a and D_UP | SELECT | B_BUTTON cp D_UP | SELECT | B_BUTTON jp z, .doClearSaveDialogue jp MainMenu .doClearSaveDialogue jpba DoClearSaveDialogue TitleScreenPickNewMon: ld a, vBGMap0 / $100 call TitleScreenCopyTileMapToVRAM .loop ; Keep looping until a mon different from the current one is picked. call Random and $f ld c, a ld b, 0 ld hl, TitleMons add hl, bc ld a, [hl] ld hl, wTitleMonSpecies ; Can't be the same as before. cp [hl] jr z, .loop ld [hl], a call LoadTitleMonSprite ld a, $90 ld [hWY], a ld d, 1 ; scroll out callba TitleScroll ret TitleScreenScrollInMon: ld d, 0 ; scroll in callba TitleScroll xor a ld [hWY], a ret ScrollTitleScreenGameVersion: .wait ld a, [rLY] cp l jr nz, .wait ld a, h ld [rSCX], a .wait2 ld a, [rLY] cp h jr z, .wait2 ret DrawPlayerCharacter: ld hl, PlayerCharacterTitleGraphics ld de, vSprites ld bc, PlayerCharacterTitleGraphicsEnd - PlayerCharacterTitleGraphics ld a, BANK(PlayerCharacterTitleGraphics) call FarCopyData2 call ClearSprites xor a ld [wPlayerCharacterOAMTile], a ld hl, wOAMBuffer ld de, $605a ld b, 7 .loop push de ld c, 5 .innerLoop ld a, d ld [hli], a ; Y ld a, e ld [hli], a ; X add 8 ld e, a ld a, [wPlayerCharacterOAMTile] ld [hli], a ; tile inc a ld [wPlayerCharacterOAMTile], a inc hl dec c jr nz, .innerLoop pop de ld a, 8 add d ld d, a dec b jr nz, .loop ret ClearBothBGMaps: ld hl, vBGMap0 ld bc, $400 * 2 ld a, " " jp FillMemory LoadTitleMonSprite: ld [wcf91], a ld [wd0b5], a coord hl, 5, 10 call GetMonHeader jp LoadFrontSpriteByMonIndex TitleScreenCopyTileMapToVRAM: ld [H_AUTOBGTRANSFERDEST + 1], a jp Delay3 LoadCopyrightAndTextBoxTiles: xor a ld [hWY], a call ClearScreen call LoadTextBoxTilePatterns LoadCopyrightTiles: ld de, NintendoCopyrightLogoGraphics ld hl, vChars2 + $600 lb bc, BANK(NintendoCopyrightLogoGraphics), (GamefreakLogoGraphicsEnd - NintendoCopyrightLogoGraphics) / $10 call CopyVideoData coord hl, 2, 7 ld de, CopyrightTextString jp PlaceString CopyrightTextString: db $60,$61,$62,$61,$63,$61,$64,$7F,$65,$66,$67,$68,$69,$6A ; ©'95.'96.'98 Nintendo next $60,$61,$62,$61,$63,$61,$64,$7F,$6B,$6C,$6D,$6E,$6F,$70,$71,$72 ; ©'95.'96.'98 Creatures inc. next $60,$61,$62,$61,$63,$61,$64,$7F,$73,$74,$75,$76,$77,$78,$79,$7A,$7B ; ©'95.'96.'98 GAME FREAK inc. db "@" INCLUDE "data/title_mons.asm" ; prints version text (red, blue) PrintGameVersionOnTitleScreen: coord hl, 7, 8 ld de, VersionOnTitleScreenText jp PlaceString ; these point to special tiles specifically loaded for that purpose and are not usual text VersionOnTitleScreenText: IF DEF(_RED) db $60,$61,$7F,$65,$66,$67,$68,$69,"@" ; "Red Version" ENDC IF DEF(_BLUE) db $61,$62,$63,$64,$65,$66,$67,$68,"@" ; "Blue Version" ENDC NintenText: db "NINTEN@" SonyText: db "SONY@"
5.SSE/SSEPackedAlignedIntAverage.asm
KDahir247/X86AssemblyPratice
1
2633
<filename>5.SSE/SSEPackedAlignedIntAverage.asm .model flat, c ;Simple Streaming SIMD Extensions example note that variables are aligned ;Implementation for this Assembly File ;extern "C" void SsePackedInt_Average(const Xmm * a, const Xmm* b, Xmm* result); ;c++ file below commented .code SsePackedInt_Average proc push ebp mov ebp, esp mov eax, [ebp + 8] mov ecx, [ebp + 12] mov edx, [ebp + 16] movdqa xmm0, [eax] movdqa xmm1, [ecx] pavgw xmm0, xmm1 movdqa [edx], xmm0 pop ebp ret SsePackedInt_Average endp end ;#include <iostream> ; ;struct Xmm ;{ ; __int16 i16[8]; ;}; ; ;extern "C" void SsePackedInt_Average(const Xmm * a, const Xmm* b, Xmm* result); ; ;int main() ;{ ; ;__declspec(align(16)) Xmm a{5,20,30,1,-20,-25,-35, -20}; ;__declspec(align(16)) Xmm a{5,20,30,1,-20,-25,-35, -20}; ; __declspec(align(16)) Xmm c{}; ; ; ; SsePackedInt_Average(&a, &b, &c); ; ; for (int i = 0; i < 8; i++) { ; printf("Result %i = %d \n",i, c.i16[i]); ; } ;}
archs/exec_ppc.als
mpardalos/memalloy
20
1753
<reponame>mpardalos/memalloy module exec_ppc[E] open exec_H[E] sig Exec_PPC extends Exec_H { SYNC, LWSYNC, ISYNC : set E }{ LWSYNC + ISYNC = F disj [ISYNC, LWSYNC] SYNC in LWSYNC } one sig rm_SYNC extends PTag {} fun ISYNC[e:PTag->E, X:Exec_PPC] : set E { X.ISYNC - e[rm_EV] } fun SYNC[e:PTag->E, X:Exec_PPC] : set E { X.SYNC - e[rm_EV] - e[rm_SYNC] } fun LWSYNC[e:PTag->E, X:Exec_PPC] : set E { X.LWSYNC - e[rm_EV] } fun isync[e:PTag->E, X:Exec_PPC] : E->E { addsb[e,X,ISYNC[e,X]] } fun sync[e:PTag->E, X:Exec_PPC] : E->E { addsb[e,X,SYNC[e,X]] } fun lwsync[e:PTag->E, X:Exec_PPC] : E->E { addsb[e,X,LWSYNC[e,X]] }
sorting-algorithms/insertion.asm
informramiz/Assembly-Language-Programs
0
7585
INSERT_SORT PROC ;use bx and si as input and sort the string pointed by si PUSH DI PUSH SI PUSH CX PUSH DX PUSH BX DEC BX MOV DI,1H INSERT: ;main loop which runs untill string is sorted MOV DL,STRING[DI] MOV SI,DI WHILE_: ;sorts a portion of string CMP SI,0H JE NEXT2 CMP STRING[SI-1],DL JNG NEXT2 MOV DH,STRING[SI-1] MOV STRING[SI],DH DEC SI JMP WHILE_ NEXT2: MOV STRING[SI],DL CALL ITERATION_PROC INC DI CMP DI,BX JNG INSERT POP BX POP DX POP CX POP SI POP DI RET INSERT_SORT ENDP
dev/emm386/dmaps2.asm
minblock/msdos
0
245013
<filename>dev/emm386/dmaps2.asm<gh_stars>0 .386p page 58,132 ;****************************************************************************** title DMAPS2 ;****************************************************************************** ; ; (C) Copyright MICROSOFT Corp. 1989-1991 ; (C) Copyright COMPAQ Computer Corp. 1989-1991 ; ; Title: EMM386.EXE - MICROSOFT Expanded Memory Manager 386 Driver ; ; Module: DMAPS2 - Routines to virtualize the PS2 DMA ports ; ; Version: 1.0 ; ; Date: Sep. 19,1989 ; ; Author: <NAME> ; ;****************************************************************************** ; ; Change log: ; ; DATE REVISION DESCRIPTION ; -------- -------- ------------------------------------------------------- ; 09/19/89 Original ; ;****************************************************************************** ; ; Functional Description: ; ; ;****************************************************************************** include vdmseg.inc include dma.inc include emmdata.inc include emm386.inc ;****************************************************************************** ; P U B L I C S ;****************************************************************************** public DMA_FuncReg public DMA_ExecFunc ;****************************************************************************** ; D E F I N E S ;****************************************************************************** ;****************************************************************************** ; E X T E R N A L R E F E R E N C E S ;****************************************************************************** extrn DMASinMsk1:near extrn DMASinMsk2:near extrn DMAMask1:near extrn DMAMask2:near extrn DMACheckTC:near extrn DMARegSav:byte ;****************************************************************************** ; C O D E S E G M E N T ;****************************************************************************** _TEXT segment assume cs:_TEXT, ds:_DATA, es:_DATA, gs:R_CODE, ss:STACK ;############################################################################ ; ; Procedure name : DMA_FuncReg ; ; ENTRY : Protected mode ; AL = byte to output to port ; DS = _DATA ; BX = port address ; DX = 0 => Emulate Input ; DX <> 0 => Emulate Output ; ; EXIT : if input AL = byte ; else output virtulaized ; ; REGs MOD : ; ; written : HKN 9/19/89 ; ; Description: ; ;############################################################################ DMA_FuncReg: jmp short DMA_proc FuncHandler label word dw OFFSET PS2_DMA_Set_IO_Adr ; 0 dw OFFSET PS2_DMA_Bad_Func ; 1 dw OFFSET PS2_DMA_Set_Mem_Adr ; 2 dw OFFSET PS2_DMA_Get_Mem_Adr ; 3 dw OFFSET PS2_DMA_Set_Count ; 4 dw OFFSET PS2_DMA_Get_Count ; 5 dw OFFSET PS2_DMA_Get_Status ; 6 dw OFFSET PS2_DMA_Set_Mode ; 7 dw OFFSET PS2_DMA_Set_Arbus ; 8 dw OFFSET PS2_DMA_Set_Chn_Mask ; 9 dw OFFSET PS2_DMA_Reset_Chn_Mask ; A dw OFFSET PS2_DMA_Bad_Func ; B dw OFFSET PS2_DMA_Bad_Func ; C dw OFFSET PS2_DMA_Master_Clear ; D dw OFFSET PS2_DMA_Bad_Func ; E dw OFFSET PS2_DMA_Bad_Func ; F DMA_proc: push eax push di push ebx xor di,di call DMACheckTC ifdef ROMIDMCA cmp [ROMID],ROMIDISA ;Q: ISA/EISA system? je short DFRNoEm ; Y: don't emulate this port? endif test gs:[GenFlags], fMCA ; Q: MCA system jz short DFRNoEm ; N: don't emulate this port? or dx,dx ;Q: Read? jz short DFRNoEm ; Y: don't emulate mov bl, al ; save original cmd byte and eax, PS2_CHANNEL_MASK ; eax = channel # cmp al, 4 ; Q; 2nd controller jb short first_ctl mov di, 1 ; 2nd controller index first_ctl: mov al, bl ; al = original cmd byte and ebx, PS2_FUNCTION_MASK shr ebx, 3 ; make function # into offset into ; the FuncHandler table call word ptr cs:[FuncHandler+ebx] clc pop ebx pop di pop eax ret PS2_DMA_Bad_Func: ; invalid function code. just let it go thru. DFRNoEm: stc pop ebx pop di pop eax ret ;############################################################################ ; ; Procedure name : DMA_ExecFunc ; ; ENTRY : Protected mode ; AL = byte to output to port ; DS = _DATA ; BX = port address ; DX = 0 => Emulate Input ; DX <> 0 => Emulate Output ; ; EXIT : if input AL = byte ; else output virtulaized ; ; REGs MOD : ; ; Description: ; ;############################################################################ DMA_ExecFunc: push eax push esi push ebx push edx push edi push ebp mov ebp, esp call DMACheckTC ifdef ROMIDMCA cmp [ROMID],ROMIDISA ;Q: ISA/EISA system? je DEFNoEm ; Y: don't emulate this port? endif test gs:[GenFlags], fMCA ; Q: MCA system jz DEFNoEm ; N: don't emulate this port? lea esi, [DMARegSav] ; ds:si points to DMA save area or dx,dx ; Q: reading jnz short PS2_Put_DMA_Byte ; N: goto write ; ; Let the user read the port even though he has'nt set up for it. ; ; cmp [esi.DMA_writing], FALSE; Q: is it a read operation ; jne DEFNoEm ; N: bad read. attempting to read ; ; port 1A while executing a write ; command. movzx ebx, [esi.DMA_byteptr] mov al, byte ptr [ebx+esi.DMA_data] mov byte ptr [ebp+20], al ; put al on the stack. jmp PS2_Inc_Byte_ptr PS2_Put_DMA_Byte: cmp [esi.DMA_writing], TRUE ; Q: is it a write operation jne bad_write ; N: attempting to write to port 1A ; without properly programming the ; function register. movzx edx, [esi.DMA_PS2_cmd] and edx, PS2_FUNCTION_MASK cmp edx, Set_Mem_Adr ; Q: is it a mem. addrd write je PS2_New_Adr ; Y: go write a byte cmp edx, Set_Count ; Q: is it a count write je short PS2_New_Count ; Y: go write a byte cmp edx, Set_Mode ; Q: writing extended mode je short PS2_New_Mode ; Y: go write a byte cmp edx, Set_Arbus ; Q: writing Arbus je PS2_Set_Arbus ; Y: go write Arbus cmp edx,Set_IO_Adr ; Q: writing to set IO address jne bad_write ; N: illegal command PS2_IO_Addr: call PS2_Get_data_Ptr ; edi-> channel info within dma save ; area movzx ebx, [esi.DMA_bytePtr] ; obtain the virtual byte ptr out 1ah, al ; no need to virtulaize IO addr reg. jmp PS2_Inc_Byte_Ptr PS2_Set_Arbus: out 1ah, al jmp PS2_write_done PS2_New_Mode: call PS2_Get_data_Ptr ; edi -> channel within dma save area ; translate the extended mode info into that which is required in ; DMAChnFlgs by the bufferred DMA code in dmatrap.asm and [esi][edi].DMAChnFlgs,not (fReadOp+fWriteOp+fWordTx) test al, Transfer_data ; Q: verify op? jz short no_transfer ; Y: test al, Write_Mem ; Q: write memory? jnz short PS2_write ; Y: or [esi][edi].DMAChnFlgs,freadop ; N: jmp short PS2_read PS2_write: or [esi][edi].DMAChnFlgs,fwriteop PS2_read: test al, _16_bit_xfer ; Q: is this a 16 bit transfer jz short byte_transfer ; N: or [esi][edi].DMAChnFlgs,fWordTx byte_transfer: no_transfer: ; indicate channel is programmed ; using extended PI or [esi+edi.DMAChnFlgs],fExtPI jmp short PS2_prog_port PS2_New_Count: call PS2_Get_data_Ptr ; edi-> channel within dma save area movzx ebx, [esi.DMA_bytePtr] ; obtain virtual byte ptr in ebx lea edi, [esi+edi] ; store count byte mov byte ptr [ebx+edi.DMACount], al mov byte ptr [ebx+esi.DMA_data], al ; indicate channel is programmed ; using extended PI or [edi.DMAChnFlgs],fExtPI+fDirtyCount jmp short PS2_Inc_Byte_Ptr PS2_New_Adr: call PS2_Get_data_Ptr ; edi-> channel info within dma save ; area movzx ebx, [esi.DMA_bytePtr] ; obtain the virtual byte ptr lea edi, [esi+edi] ; store the appropriate byte mov byte ptr [ebx+edi.DMALinAdr], al mov byte ptr [ebx+esi.DMA_data], al ; indicate channel is programmed ; using extended PI or [edi.DMAChnFlgs],fExtPI+fDirtyAddr ; ; Increment the bytr ptr for the controller PS2_Inc_Byte_Ptr: inc ebx cmp bl, [esi.DMA_dataBytes] jb short next_ok xor ebx, ebx next_ok: mov [esi.DMA_bytePtr], bl jmp short PS2_write_done PS2_write_done: clc ; IO emulated pop ebp pop edi pop edx pop ebx pop esi pop eax ret bad_write: PS2_prog_port: DEFNoEm: stc pop ebp pop edi pop edx pop ebx pop esi pop eax ret ;############################################################################ ; ; Procedure name : PS2_DMA_Set_IO_Adr ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; EXIT : DMARegSav structure updated with information ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Set_IO_Adr: push esi lea esi, [DMARegSav] ; ds:si DMA save area mov [esi.DMA_PS2_cmd], al ; save cmd byte mov [esi.DMA_bytePtr], 0 ; reset internal byte ptr mov [esi.DMA_databytes],2 ; allow for writing 2 bytes mov [esi.DMA_writing], TRUE out 18h,al pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Set_Mem_Adr ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; EXIT : DMARegSav structure updated with information ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Set_Mem_Adr: push esi lea esi, [DMARegSav] ; ds:si DMA save area mov [esi.DMA_PS2_cmd], al ; save cmd byte mov [esi.DMA_bytePtr], 0 ; reset internal byte ptr mov [esi.DMA_databytes],3 ; allow for writing 3 bytes mov [esi.DMA_writing], TRUE pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Set_Count ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; EXIT : DMARegSav structure updated with information ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Set_Count: push esi lea esi, [DMARegSav] ; ds:si DMA save area mov [esi.DMA_PS2_cmd], al ; save cmd byte mov [esi.DMA_bytePtr], 0 ; reset internal byte ptr mov [esi.DMA_databytes],2 ; allow for writing 2 bytes mov [esi.DMA_writing], TRUE pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Set_Mode & PS2_DMA_Set_Arbus: ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; EXIT : DMARegSav structure updated with information ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Set_Arbus: PS2_DMA_Set_Mode: push esi lea esi, [DMARegSav] ; ds:si DMA save area mov [esi.DMA_PS2_cmd], al ; save cmd byte mov [esi.DMA_bytePtr], 0 ; reset internal byte ptr mov [esi.DMA_databytes],1 ; allow for writing 1 byte mov [esi.DMA_writing], TRUE out DMA_XFN,al ; actually do IO ;LEO pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Get_Mem_Adr ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; REGs MOD : NONE ; ; Description: ; When port 18H is programmed for reading the adddr., the ; appropriate addr is obtained and placed in the DMA save area ; by calling PS2_Setup_Read. The next in to port 1AH will result ; in the appropriate byte being read from the DMA save area (see ; DMA_ExecFunc for reads). ; ; ;############################################################################ PS2_DMA_Get_Mem_Adr: push esi push eax push edi push ecx lea esi, [DMARegSav] ; ds:si DMA save area and eax, PS2_CHANNEL_MASK mov cx, SIZE DMARegREc mul cx ; eax -> channel within dma ; save area mov edi,eax lea edi, [esi+edi] mov eax, [edi.DMALinAdr] mov ecx, 3 call PS2_Setup_Read pop ecx pop edi pop eax pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Get_Count ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; REGs MOD : NONE ; ; Description: ; When port 18H is programmed for reading the count, the ; appropriate count is obtained and placed in the DMA save area ; by calling PS2_Setup_Read. The next in to port 1AH will result ; in the appropriate byte being read from the DMA save area (see ; DMA_ExecFunc for reads). ; ; ;############################################################################ PS2_DMA_Get_Count: push esi push edi push ecx push eax lea esi, [DMARegSav] ; ds:si DMA save area and eax, PS2_CHANNEL_MASK mov cx, SIZE DMARegRec mul cx ; eax -> channel within dma ; save area mov edi,eax lea edi, [esi+edi] test [edi.DMAChnFlgs], fDirtyCount ; Q: count virtualized? jz short get_phy_cnt ; N: get physical mov eax, [edi.DMACount] ; Y: virtual count ret_cnt: mov ecx, 2 call PS2_Setup_Read pop eax pop ecx pop edi pop esi ret get_phy_cnt: pop eax ; recover orig cmd byte in al push eax out DMA_XFN, al ; issue get count cmd for channel jmp $+2 jmp $+2 xor eax, eax ; clear high word of count in al, DMA_EXE ; get low byte of count jmp $+2 jmp $+2 mov ah, al ; save low byte in ah in al, DMA_EXE ; get high byte of count jmp $+2 jmp $+2 xchg ah, al ; ah = high, al = low jmp short ret_cnt ;############################################################################ ; ; Procedure name : PS2_DMA_Get_Status ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; REGs MOD : NONE ; ; Description: ; When port 18H is programmed for reading the status, the ; appropriate status is obtained and placed in the DMA save area ; by calling PS2_Setup_Read. The next in to port 1AH will result ; in the appropriate byte being read from the DMA save area (see ; DMA_ExecFunc for reads). ; ; ;############################################################################ PS2_DMA_Get_Status: push esi push eax push edi push ecx lea esi, [DMARegSav] ; ds:si DMA save area ; save area xor al, al xchg al, [DMARegSav][di].DMAStatus ; status register must be ; cleared after a read mov ecx, 1 call PS2_Setup_Read pop ecx pop edi pop eax pop esi ret ;############################################################################ ; ; Procedure name : PS2_DMA_Set_Chn_Mask ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Set_Chn_Mask: and al, PS2_CHANNEL_MASK cmp al, 4 pushf ; save result of comparison and al, 00000011b ; get channel # within controller ; modulo 4 or al, 00000100b ; set bit in order to set mask popf ; restore result of original compare jb short msk_cont1 ; less than 4 then controller 1 call DMASinMsk2 ; else controller 2 jmp short setmskexit msk_cont1: call DMASinMsk1 setmskexit: ret ;############################################################################ ; ; Procedure name : PS2_DMA_Reset_Chn_Mask ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Reset_Chn_Mask: and al, PS2_CHANNEL_MASK cmp al, 4 pushf ; save result of comparison and al, 00000011b ; get channel # within controller ; modulo 4 and also reset bit 2 for ; unmask operation. popf ; restore result of original compare jb short unmsk_cont1 ; less than 4 then controller 1 call DMASinMsk2 ; else controller 2 jmp short resetmskexit unmsk_cont1: call DMASinMsk1 resetmskexit: ret ;############################################################################ ; ; Procedure name : PS2_DMA_Master_Clear ; ; ENTRY : al = original cmd byte ; : ebx = function # * 2 ; : di = controller index ; ; ; REGs MOD : NONE ; ;############################################################################ PS2_DMA_Master_Clear: push esi push eax lea esi, [DMARegSav] xor eax, eax mov [esi.DMAStatus][0], al mov [esi.DMAStatus][1], al mov [esi.DMAFF][0], al mov [esi.DMAFF][1], al mov [esi.DMA_PS2_cmd], al mov [esi.DMA_writing], al mov [esi.DMA_bytePtr], al mov [esi.DMA_dataBytes], al mov [esi.DMA_data], eax mov al, 0fh call DMAMask1 mov al, 0fh call DMAMask2 pop eax pop esi ret ;############################################################################ ; ; Procedure name : PS2_Get_data_ptr ; ; ENTRY : esi = dma save area ; ; EXIT : edi -> the appropriate channel data within dma ; save area ; ; ;############################################################################ PS2_Get_data_Ptr proc near push eax movzx eax, [esi.DMA_PS2_cmd] and al, PS2_CHANNEL_MASK mov di, SIZE DMARegRec mul di mov edi, eax pop eax ret PS2_Get_data_Ptr endp ;############################################################################ ; ; Procedure name : PS2_Setup_Read ; ; ENTRY : EAX is data (1, 2 or 3 bytes) ; : ECX is # of bytes ; : ESI -> dma save area ; ; REGs MOD : NONE ; ;############################################################################ PS2_Setup_Read proc near mov [esi.DMA_writing], FALSE mov [esi.DMA_byteptr], 0 mov [esi.DMA_databytes], cl mov [esi.DMA_data], eax ret PS2_Setup_Read endp _TEXT ends end 
dcf/src/dcf-unzip-decompress.adb
onox/dcf-ada
5
5199
<reponame>onox/dcf-ada -- SPDX-License-Identifier: MIT -- -- Copyright (c) 2007 - 2018 <NAME> -- SWITZERLAND -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -- THE SOFTWARE. with DCF.Unzip.Decompress.Huffman; with DCF.Zip.CRC; package body DCF.Unzip.Decompress is procedure Decompress_Data (Zip_File : in out DCF.Streams.Root_Zipstream_Type'Class; Format : Pkzip_Method; Output_Stream_Access : P_Stream; -- \ = write_to_stream Data_Descriptor_After_Data : Boolean; Hint : in out Zip.Headers.Local_File_Header; Verify_Integrity : Boolean) is -- I/O Buffers: Size of input buffer Inbuf_Size : constant := 16#8000#; -- (orig: 16#1000# B = 4 KB) -- I/O Buffers: Size of sliding dictionary and output buffer Wsize : constant := 16#10000#; -- (orig: 16#8000# B = 32 KB) CRC_Value : Unsigned_32; -- CRC calculated from data Compressed_Size : constant Unzip.File_Size_Type := Unzip.File_Size_Type'Min (Hint.Dd.Compressed_Size, File_Size_Type'Last - 2); -- Compressed size of file ---------------------------------------------------------------------------- -- Specifications of UnZ_* packages (remain of Info Zip's code structure) -- ---------------------------------------------------------------------------- package Unz_Glob is -- Not global anymore, since local to Decompress_data :-) -- I/O Buffers: Sliding dictionary for unzipping, and output buffer as well Slide : Zip.Byte_Buffer (0 .. Wsize); Slide_Index : Integer := 0; -- Current Position in slide -- I/O Buffers: Input buffer Inbuf : Zip.Byte_Buffer (0 .. Inbuf_Size - 1); Inpos, Readpos : Integer; -- pos. in input buffer, pos. read from file Reachedsize : Unzip.File_Size_Type; -- Number of bytes read from zipfile end Unz_Glob; Zip_Eof : Boolean; -- read over end of zip section for this file package Unz_Io is procedure Init_Buffers; function Read_Byte_Decrypted return Unsigned_8; -- NB: reading goes on a while even if pragma Inline (Read_Byte_Decrypted); -- Zip_EOF is set: just gives garbage package Bit_Buffer is procedure Init; -- Read at least n bits into the bit buffer, returns the n first bits function Read (N : Natural) return Integer; pragma Inline (Read); function Read_U32 (N : Natural) return Unsigned_32; pragma Inline (Read_U32); -- Dump n bits no longer needed from the bit buffer procedure Dump (N : Natural); pragma Inline (Dump); procedure Dump_To_Byte_Boundary; function Read_And_Dump (N : Natural) return Integer; pragma Inline (Read_And_Dump); function Read_And_Dump_U32 (N : Natural) return Unsigned_32; pragma Inline (Read_And_Dump_U32); end Bit_Buffer; procedure Flush (X : Natural); -- directly from slide to output stream procedure Flush_If_Full (W : in out Integer); pragma Inline (Flush_If_Full); procedure Copy (Distance, Length : Natural; Index : in out Natural); pragma Inline (Copy); end Unz_Io; package Unz_Meth is procedure Copy_Stored (Size : Ada.Streams.Stream_Element_Offset); procedure Inflate; end Unz_Meth; ------------------------------ -- Bodies of UnZ_* packages -- ------------------------------ package body Unz_Io is procedure Init_Buffers is begin Unz_Glob.Inpos := 0; -- Input buffer position Unz_Glob.Readpos := -1; -- Nothing read Unz_Glob.Slide_Index := 0; Unz_Glob.Reachedsize := 0; Zip_Eof := False; Zip.CRC.Init (CRC_Value); Bit_Buffer.Init; end Init_Buffers; procedure Process_Compressed_End_Reached is begin if Zip_Eof then -- We came already here once raise Zip.Archive_Corrupted with "Decoding went past compressed data size plus one buffer length"; -- Avoid infinite loop on data with exactly buffer's length and no end marker else Unz_Glob.Readpos := Unz_Glob.Inbuf'Length; -- Simulates reading -> no blocking. -- The buffer is full of "random" data and we hope for a wrong code or a CRC error Zip_Eof := True; end if; end Process_Compressed_End_Reached; procedure Read_Buffer is begin if Unz_Glob.Reachedsize > Compressed_Size + 2 then -- +2: last code is smaller than requested! Process_Compressed_End_Reached; else begin Zip.Blockread (Stream => Zip_File, Buffer => Unz_Glob.Inbuf, Actually_Read => Unz_Glob.Readpos); exception when others => -- I/O error Process_Compressed_End_Reached; end; if Unz_Glob.Readpos = 0 then -- No byte at all was read Process_Compressed_End_Reached; end if; Unz_Glob.Reachedsize := Unz_Glob.Reachedsize + Unzip.File_Size_Type (Unz_Glob.Readpos); Unz_Glob.Readpos := Unz_Glob.Readpos - 1; -- Reason: index of inbuf starts at 0 end if; Unz_Glob.Inpos := 0; end Read_Buffer; function Read_Byte_Decrypted return Unsigned_8 is Bt : Zip.Byte; begin if Unz_Glob.Inpos > Unz_Glob.Readpos then Read_Buffer; end if; Bt := Unz_Glob.Inbuf (Unz_Glob.Inpos); Unz_Glob.Inpos := Unz_Glob.Inpos + 1; return Bt; end Read_Byte_Decrypted; package body Bit_Buffer is B : Unsigned_32; K : Integer; procedure Init is begin B := 0; K := 0; end Init; procedure Need (N : Natural) is pragma Inline (Need); begin while K < N loop B := B or Shift_Left (Unsigned_32 (Read_Byte_Decrypted), K); K := K + 8; end loop; end Need; procedure Dump (N : Natural) is begin B := Shift_Right (B, N); K := K - N; end Dump; procedure Dump_To_Byte_Boundary is begin Dump (K mod 8); end Dump_To_Byte_Boundary; function Read_U32 (N : Natural) return Unsigned_32 is begin Need (N); return B and (Shift_Left (1, N) - 1); end Read_U32; function Read (N : Natural) return Integer is begin return Integer (Read_U32 (N)); end Read; function Read_And_Dump (N : Natural) return Integer is Res : Integer; begin Res := Read (N); Dump (N); return Res; end Read_And_Dump; function Read_And_Dump_U32 (N : Natural) return Unsigned_32 is Res : Unsigned_32; begin Res := Read_U32 (N); Dump (N); return Res; end Read_And_Dump_U32; end Bit_Buffer; procedure Flush (X : Natural) is use Zip; use Ada.Streams; begin begin Blockwrite (Output_Stream_Access.all, Unz_Glob.Slide (0 .. X - 1)); exception when others => raise Unzip.Write_Error; end; Zip.CRC.Update (CRC_Value, Unz_Glob.Slide (0 .. X - 1)); end Flush; procedure Flush_If_Full (W : in out Integer) is begin if W = Wsize then Flush (Wsize); W := 0; end if; end Flush_If_Full; ---------------------------------------------------- -- Reproduction of sequences in the output slide. -- ---------------------------------------------------- -- Internal: procedure Adjust_To_Slide (Source : in out Integer; Remain : in out Natural; Part : out Integer; Index : Integer) is pragma Inline (Adjust_To_Slide); begin Source := Source mod Wsize; -- Source and Index are now in 0..WSize-1 if Source > Index then Part := Wsize - Source; else Part := Wsize - Index; end if; -- NB: part is in 1..WSize (part cannot be 0) if Part > Remain then Part := Remain; end if; -- Now part <= remain Remain := Remain - Part; -- NB: remain cannot be < 0 end Adjust_To_Slide; procedure Copy_Range (Source, Index : in out Natural; Amount : Positive) is pragma Inline (Copy_Range); begin if abs (Index - Source) < Amount then -- if source >= index, the effect of copy is just like the non-overlapping case for Count in reverse 1 .. Amount loop Unz_Glob.Slide (Index) := Unz_Glob.Slide (Source); Index := Index + 1; Source := Source + 1; end loop; else -- non-overlapping -> copy slice Unz_Glob.Slide (Index .. Index + Amount - 1) := Unz_Glob.Slide (Source .. Source + Amount - 1); Index := Index + Amount; Source := Source + Amount; end if; end Copy_Range; -- The copying routines: procedure Copy (Distance, Length : Natural; Index : in out Natural) is Source, Part, Remain : Integer; begin Source := Index - Distance; Remain := Length; loop Adjust_To_Slide (Source, Remain, Part, Index); Copy_Range (Source, Index, Part); Flush_If_Full (Index); exit when Remain = 0; end loop; end Copy; end Unz_Io; package body Unz_Meth is --------[ Method: Copy stored ]-------- procedure Copy_Stored (Size : Ada.Streams.Stream_Element_Offset) is use Ada.Streams; Buffer_Size : constant := 64 * 1024; -- 64 KiB Read : Stream_Element_Offset := 0; begin while Read < Size loop declare Remaining : constant Stream_Element_Offset := Stream_Element_Offset'Min (Size - Read, Buffer_Size); Buffer : Stream_Element_Array (1 .. Remaining); Last : Stream_Element_Offset; begin Zip_File.Read (Item => Buffer, Last => Last); Read := Read + Last; if Last /= Remaining then raise Zip.Archive_Corrupted with "Expected to read " & Remaining'Image & " bytes"; end if; begin Output_Stream_Access.all.Write (Buffer); exception when others => raise Unzip.Write_Error; end; if Verify_Integrity then Zip.CRC.Update_Stream_Array (CRC_Value, Buffer); end if; end; end loop; end Copy_Stored; --------[ Method: Inflate ]-------- use Unzip.Decompress.Huffman; procedure Inflate_Codes (Tl, Td : P_Table_List; Bl, Bd : Integer) is Ct : P_Huft_Table; -- Current table Ct_Idx : Natural; -- Current table's index Length : Natural; E : Integer; -- Table entry flag/number of extra bits W : Integer := Unz_Glob.Slide_Index; -- More local variable for slide index Literal : Zip.Byte; begin -- Inflate the coded data Main_Loop : while not Zip_Eof loop if Tl = null then raise Zip.Archive_Corrupted with "Null table list (on data decoding, Huffman tree for literals or LZ lengths)"; end if; Ct := Tl.Table; Ct_Idx := Unz_Io.Bit_Buffer.Read (Bl); loop E := Ct (Ct_Idx).Extra_Bits; exit when E <= 16; if E = Invalid then raise Zip.Archive_Corrupted; end if; -- Then it's a literal Unz_Io.Bit_Buffer.Dump (Ct (Ct_Idx).Bits); E := E - 16; Ct := Ct (Ct_Idx).Next_Table; Ct_Idx := Unz_Io.Bit_Buffer.Read (E); end loop; Unz_Io.Bit_Buffer.Dump (Ct (Ct_Idx).Bits); case E is when 16 => -- CT(CT_idx).N is a Literal (code 0 .. 255) Literal := Zip.Byte (Ct (Ct_Idx).N); Unz_Glob.Slide (W) := Literal; W := W + 1; Unz_Io.Flush_If_Full (W); when 15 => -- End of block (EOB, code 256) exit Main_Loop; when others => -- We have a length/distance code -- Get length of block to copy: Length := Ct (Ct_Idx).N + Unz_Io.Bit_Buffer.Read_And_Dump (E); -- Decode distance of block to copy: if Td = null then raise Zip.Archive_Corrupted with "Null table list (on data decoding, Huffman tree for LZ distances)"; end if; Ct := Td.Table; Ct_Idx := Unz_Io.Bit_Buffer.Read (Bd); loop E := Ct (Ct_Idx).Extra_Bits; exit when E <= 16; if E = Invalid then raise Zip.Archive_Corrupted; end if; Unz_Io.Bit_Buffer.Dump (Ct (Ct_Idx).Bits); E := E - 16; Ct := Ct (Ct_Idx).Next_Table; Ct_Idx := Unz_Io.Bit_Buffer.Read (E); end loop; Unz_Io.Bit_Buffer.Dump (Ct (Ct_Idx).Bits); Unz_Io.Copy (Distance => Ct (Ct_Idx).N + Unz_Io.Bit_Buffer.Read_And_Dump (E), Length => Length, Index => W); end case; end loop Main_Loop; Unz_Glob.Slide_Index := W; end Inflate_Codes; procedure Inflate_Stored_Block is -- Actually, nothing to inflate N : Integer; begin Unz_Io.Bit_Buffer.Dump_To_Byte_Boundary; -- Get the block length and its complement N := Unz_Io.Bit_Buffer.Read_And_Dump (16); if N /= Integer ((not Unz_Io.Bit_Buffer.Read_And_Dump_U32 (16)) and 16#ffff#) then raise Zip.Archive_Corrupted; end if; while N > 0 and then not Zip_Eof loop -- Read and output the non-compressed data N := N - 1; Unz_Glob.Slide (Unz_Glob.Slide_Index) := Zip.Byte (Unz_Io.Bit_Buffer.Read_And_Dump (8)); Unz_Glob.Slide_Index := Unz_Glob.Slide_Index + 1; Unz_Io.Flush_If_Full (Unz_Glob.Slide_Index); end loop; end Inflate_Stored_Block; -- Copy lengths for literal codes 257..285 Copy_Lengths_Literal : constant Length_Array (0 .. 30) := (3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0); -- Extra bits for literal codes 257..285 Extra_Bits_Literal : constant Length_Array (0 .. 30) := (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, Invalid, Invalid); -- Copy offsets for distance codes 0..29 (30..31: deflate_e) Copy_Offset_Distance : constant Length_Array (0 .. 31) := (1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 32769, 49153); -- Extra bits for distance codes Extra_Bits_Distance : constant Length_Array (0 .. 31) := (0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14); Max_Dist : constant Integer := 29; -- changed to 31 for deflate_e Length_List_For_Fixed_Block_Literals : constant Length_Array (0 .. 287) := (0 .. 143 => 8, 144 .. 255 => 9, 256 .. 279 => 7, 280 .. 287 => 8); procedure Inflate_Fixed_Block is Tl, -- literal/length code table Td : P_Table_List; -- distance code table Bl, Bd : Integer; -- lookup bits for tl/bd Huft_Incomplete : Boolean; begin -- Make a complete, but wrong [why ?] code set (see Appnote: 5.5.2, RFC 1951: 3.2.6) Bl := 7; Huft_Build (Length_List_For_Fixed_Block_Literals, 257, Copy_Lengths_Literal, Extra_Bits_Literal, Tl, Bl, Huft_Incomplete); -- Make an incomplete code set (see Appnote: 5.5.2, RFC 1951: 3.2.6) Bd := 5; begin Huft_Build ((0 .. Max_Dist => 5), 0, Copy_Offset_Distance, Extra_Bits_Distance, Td, Bd, Huft_Incomplete); exception when Huft_Out_Of_Memory | Huft_Error => Huft_Free (Tl); raise Zip.Archive_Corrupted; end; -- Decompress the block's data, until an end-of-block code. Inflate_Codes (Tl, Td, Bl, Bd); -- Done with this block, free resources. Huft_Free (Tl); Huft_Free (Td); end Inflate_Fixed_Block; Bit_Order_For_Dynamic_Block : constant array (0 .. 18) of Natural := (16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15); procedure Inflate_Dynamic_Block is Lbits : constant := 9; Dbits : constant := 6; Current_Length : Natural; Defined, Number_Of_Lengths : Natural; Tl : P_Table_List; -- literal/length code tables Td : P_Table_List; -- distance code tables Ct : P_Huft_Table; -- current table Ct_Idx : Natural; -- current table's index Bl, Bd : Integer; -- lookup bits for tl/bd Nb : Natural; -- number of bit length codes Nl : Natural; -- number of literal length codes Nd : Natural; -- number of distance codes -- literal/length and distance code lengths Ll : Length_Array (0 .. 288 + 32 - 1) := (others => 0); Huft_Incomplete : Boolean; procedure Repeat_Length_Code (Amount : Natural) is begin if Defined + Amount > Number_Of_Lengths then raise Zip.Archive_Corrupted; end if; for C in reverse 1 .. Amount loop Ll (Defined) := Current_Length; Defined := Defined + 1; end loop; end Repeat_Length_Code; begin -- Read in table lengths Nl := 257 + Unz_Io.Bit_Buffer.Read_And_Dump (5); Nd := 1 + Unz_Io.Bit_Buffer.Read_And_Dump (5); Nb := 4 + Unz_Io.Bit_Buffer.Read_And_Dump (4); if Nl > 288 or else Nd > 32 then raise Zip.Archive_Corrupted; end if; -- Read in bit-length-code lengths for decoding the compression structure. -- The rest, Ll( Bit_Order( Nb .. 18 ) ), is already = 0 for J in 0 .. Nb - 1 loop Ll (Bit_Order_For_Dynamic_Block (J)) := Unz_Io.Bit_Buffer.Read_And_Dump (3); end loop; -- Build decoding table for trees--single level, 7 bit lookup Bl := 7; begin Huft_Build (Ll (0 .. 18), 19, Empty, Empty, Tl, Bl, Huft_Incomplete); if Huft_Incomplete then Huft_Free (Tl); raise Zip.Archive_Corrupted with "Incomplete code set for compression structure"; end if; exception when Zip.Archive_Corrupted => raise; when others => raise Zip.Archive_Corrupted with "Error when building tables for compression structure"; end; -- Read in the compression structure: literal and distance code lengths Number_Of_Lengths := Nl + Nd; Defined := 0; Current_Length := 0; while Defined < Number_Of_Lengths loop if Tl = null then raise Zip.Archive_Corrupted with "Null table list (on compression structure)"; end if; Ct := Tl.Table; Ct_Idx := Unz_Io.Bit_Buffer.Read (Bl); Unz_Io.Bit_Buffer.Dump (Ct (Ct_Idx).Bits); case Ct (Ct_Idx).N is when 0 .. 15 => -- Length of code for symbol of index 'defined', in bits (0..15) Current_Length := Ct (Ct_Idx).N; Ll (Defined) := Current_Length; Defined := Defined + 1; when 16 => -- 16 means: repeat last bit length 3 to 6 times if Defined = 0 then -- Nothing in the Ll array has been defined so far. -- Then, current_length is (theoretically) undefined -- and cannot be repeated. This unspecified case is -- treated as an error by zlib's inflate.c. raise Zip.Archive_Corrupted with "Illegal data for compression structure" & " (repeat an undefined code length)"; end if; Repeat_Length_Code (3 + Unz_Io.Bit_Buffer.Read_And_Dump (2)); when 17 => -- 17 means: the next 3 to 10 symbols' codes have zero bit lengths Current_Length := 0; Repeat_Length_Code (3 + Unz_Io.Bit_Buffer.Read_And_Dump (3)); when 18 => -- 18 means: the next 11 to 138 symbols' codes have zero bit lengths Current_Length := 0; Repeat_Length_Code (11 + Unz_Io.Bit_Buffer.Read_And_Dump (7)); when others => -- Shouldn't occur if this tree is correct raise Zip.Archive_Corrupted with "Illegal data for compression structure" & " (values should be in the range 0 .. 18): " & Integer'Image (Ct (Ct_Idx).N); end case; end loop; -- Free the Huffman tree that was used for decoding the compression -- structure, which is contained now in Ll. Huft_Free (Tl); if Ll (256) = 0 then -- No code length for the End-Of-Block symbol, implies infinite stream! -- This case is unspecified but obviously we must stop here. raise Zip.Archive_Corrupted with "No code for End-Of-Block symbol #256"; end if; -- Build the decoding tables for literal/length codes Bl := Lbits; begin Huft_Build (Ll (0 .. Nl - 1), 257, Copy_Lengths_Literal, Extra_Bits_Literal, Tl, Bl, Huft_Incomplete); if Huft_Incomplete then Huft_Free (Tl); raise Zip.Archive_Corrupted with "Incomplete code set for literals/lengths"; end if; exception when Zip.Archive_Corrupted => raise; when others => raise Zip.Archive_Corrupted with "Error when building tables for literals/lengths"; end; -- Build the decoding tables for distance codes Bd := Dbits; begin Huft_Build (Ll (Nl .. Nl + Nd - 1), 0, Copy_Offset_Distance, Extra_Bits_Distance, Td, Bd, Huft_Incomplete); if Huft_Incomplete then -- Incomplete Huffman code set for decoding LZ distances raise Zip.Archive_Corrupted with "Incomplete code set for distances"; end if; exception when Huft_Out_Of_Memory | Huft_Error => Huft_Free (Tl); raise Zip.Archive_Corrupted with "Error when building tables for distances"; end; -- Decompress the block's data, until an end-of-block code. Inflate_Codes (Tl, Td, Bl, Bd); -- Done with this block, free resources. Huft_Free (Tl); Huft_Free (Td); end Inflate_Dynamic_Block; procedure Inflate_Block (Last_Block : out Boolean; Fix, Dyn : in out Long_Integer) is begin Last_Block := Boolean'Val (Unz_Io.Bit_Buffer.Read_And_Dump (1)); case Unz_Io.Bit_Buffer.Read_And_Dump (2) is -- Block type = 0,1,2,3 when 0 => Inflate_Stored_Block; when 1 => Inflate_Fixed_Block; Fix := Fix + 1; when 2 => Inflate_Dynamic_Block; Dyn := Dyn + 1; when others => raise Zip.Archive_Corrupted; -- Bad block type (3) end case; end Inflate_Block; procedure Inflate is Is_Last_Block : Boolean; Blocks, Blocks_Fix, Blocks_Dyn : Long_Integer := 0; begin loop Blocks := Blocks + 1; Inflate_Block (Is_Last_Block, Blocks_Fix, Blocks_Dyn); exit when Is_Last_Block; end loop; Unz_Io.Flush (Unz_Glob.Slide_Index); Unz_Glob.Slide_Index := 0; end Inflate; end Unz_Meth; procedure Process_Descriptor_Store (Descriptor : out Zip.Headers.Data_Descriptor) is Buffer : Ada.Streams.Stream_Element_Array (1 .. 16); begin Zip.Blockread (Zip_File, Buffer); Zip.Headers.Copy_And_Check (Buffer, Descriptor); end Process_Descriptor_Store; procedure Process_Descriptor_Deflate (Descriptor : out Zip.Headers.Data_Descriptor) is Buffer : Ada.Streams.Stream_Element_Array (1 .. 16); begin Unz_Io.Bit_Buffer.Dump_To_Byte_Boundary; for I in Buffer'Range loop Buffer (I) := Ada.Streams.Stream_Element (Unz_Io.Read_Byte_Decrypted); end loop; Zip.Headers.Copy_And_Check (Buffer, Descriptor); end Process_Descriptor_Deflate; use Zip; begin Unz_Io.Init_Buffers; -- Unzip correct type case Format is when Store => Unz_Meth.Copy_Stored (Ada.Streams.Stream_Element_Offset (Compressed_Size)); when Deflate => Unz_Meth.Inflate; end case; if Verify_Integrity then CRC_Value := Zip.CRC.Final (CRC_Value); end if; if Data_Descriptor_After_Data then -- Sizes and CRC at the end declare Memo_Uncomp_Size : constant Unsigned_32 := Hint.Dd.Uncompressed_Size; begin case Format is when Store => Process_Descriptor_Store (Hint.Dd); when Deflate => Process_Descriptor_Deflate (Hint.Dd); end case; -- CRC is for checking; sizes are for informing user if Memo_Uncomp_Size < Unsigned_32'Last and then Memo_Uncomp_Size /= Hint.Dd.Uncompressed_Size then raise Uncompressed_Size_Error; end if; exception when Zip.Headers.Bad_Data_Descriptor => raise Zip.Archive_Corrupted; end; end if; if Verify_Integrity and then Hint.Dd.Crc_32 /= CRC_Value then raise CRC_Error with "CRC stored in archive: " & Zip.CRC.Image (Hint.Dd.Crc_32) & "; CRC computed now: " & Zip.CRC.Image (CRC_Value); end if; end Decompress_Data; end DCF.Unzip.Decompress;
archive/agda-2/Oscar/Property/IsReflexive.agda
m0davis/oscar
0
6934
module Oscar.Property.IsReflexive where open import Oscar.Level record IsReflexive {𝔬} (⋆ : Set 𝔬) {ℓ} (_≣_ : ⋆ → ⋆ → Set ℓ) : Set (𝔬 ⊔ ℓ) where field reflexivity : ∀ x → x ≣ x
orgcomp/autumn/lab2/src/int.asm
chebykinn/university
2
172807
<filename>orgcomp/autumn/lab2/src/int.asm<gh_stars>1-10 DIV_VARS SEGMENT DATA RSEG DIV_VARS DIVIDEND: DS 2H DIVISOR: DS 1H QUOTIENT: DS 2H REMAINDER: DS 1H dseg at 0x20 x: ds 2 cseg at 0x00 mov SP, #0x28 jmp x_to_P2P3 P0P1_to_x: ;(P0 & 0x0f) * 100 mov a, P0 jnb ACC.4, skip setb 2Fh.0 ;if (P0 & 0x10) c = 1; skip: anl a, #0x0F mov b, #0x64 mul ab mov r0, b mov r1, a ;(P1 >> 4) * 10 mov a, P1 anl a, #0xF0 swap a mov b, #0x0a mul ab mov r2, a ;(P1 & 0x0f) mov a, P1 anl a, #0x0f add a, r2 add a, r1 mov r1, a ;if (P0 & 0x10) x *= -1; jnb 2Fh.0, skip2 mov a, r1 cpl a add a, #0x01 mov r1, a mov a, r0 cpl a addc a, #0x00 mov r0, a skip2: mov x, r0 mov x + 1, r1 jmp finish x_to_P2P3: mov x, #0xFC mov x + 1, #0x39 ;if (x & 0x8000) { x *= -1; P2 = 0xd0; } mov P2, #0xC0 mov a, x jnb ACC.7, skip3 mov a, x + 1 cpl a add a, #0x01 mov x + 1, a mov a, x cpl a addc a, #0x00 mov x, a mov P2, #0xD0 skip3: ;P2 |= x / 100; mov DIVIDEND, x + 1 mov DIVIDEND + 1, x mov DIVISOR, #0x64 call D16BY8 mov a, P2 orl a, QUOTIENT mov P2, a ;P3 = (((x % 100) / 10) << 4) | x % 10; mov DIVIDEND, REMAINDER mov DIVIDEND + 1, #0x00 mov DIVISOR, #0x0A call D16BY8 mov a, QUOTIENT anl a, #0x0F swap a orl a, REMAINDER mov P3, a jmp finish D16BY8: CLR A CJNE A,DIVISOR,OK DIVIDE_BY_ZERO: SETB OV RET OK: MOV QUOTIENT,A MOV R4,#8 MOV R5,DIVIDEND MOV R6,DIVIDEND+1 MOV R7,A MOV A,R6 MOV B,DIVISOR DIV AB MOV QUOTIENT+1,A MOV R6,B TIMES_TWO: MOV A,R5 RLC A MOV R5,A MOV A,R6 RLC A MOV R6,A MOV A,R7 RLC A MOV R7,A COMPARE: CJNE A,#0,DONE MOV A,R6 CJNE A,DIVISOR,DONE CJNE R5,#0,DONE DONE: CPL C BUILD_QUOTIENT: MOV A,QUOTIENT RLC A MOV QUOTIENT,A JNB ACC.0,LOOP SUBTRACT: MOV A,R6 SUBB A,DIVISOR MOV R6,A MOV A,R7 SUBB A,#0 MOV R7,A LOOP: DJNZ R4,TIMES_TWO MOV A,DIVISOR MOV B,QUOTIENT MUL AB MOV B,A MOV A,DIVIDEND SUBB A,B MOV REMAINDER,A CLR OV RET finish: END
test/interaction/Issue835.agda
cruhland/agda
1,989
1747
module Issue835 where data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x postulate A : Set x y : A F : x ≡ y → Set F ()
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_449.asm
ljhsiun2/medusa
9
601
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xa0dd, %r11 nop nop nop nop dec %rsi mov (%r11), %ebx nop nop nop nop xor %rsi, %rsi lea addresses_D_ht+0xdcbd, %rsi lea addresses_WC_ht+0x121c7, %rdi nop nop nop dec %r14 mov $41, %rcx rep movsl nop nop nop nop nop and $18748, %rbx lea addresses_A_ht+0x95d1, %rsi nop and %r13, %r13 movw $0x6162, (%rsi) nop and %r14, %r14 lea addresses_D_ht+0x7055, %rbx nop nop nop nop xor %r13, %r13 movb $0x61, (%rbx) and %rcx, %rcx lea addresses_A_ht+0x93f9, %r11 clflush (%r11) nop nop nop nop nop sub %r14, %r14 vmovups (%r11), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rcx nop nop nop inc %rbx lea addresses_D_ht+0x154dd, %r14 nop nop nop nop add %rcx, %rcx mov (%r14), %r13w nop nop sub %r13, %r13 lea addresses_D_ht+0x16134, %rbx nop nop nop nop nop add $41494, %rdi movups (%rbx), %xmm2 vpextrq $0, %xmm2, %r13 nop nop nop nop cmp %rdi, %rdi lea addresses_WC_ht+0xc321, %r14 nop nop nop xor $29316, %rcx mov $0x6162636465666768, %r13 movq %r13, (%r14) nop nop nop nop nop xor %r11, %r11 lea addresses_WT_ht+0x114dd, %rsi lea addresses_WT_ht+0xd6dd, %rdi dec %r12 mov $119, %rcx rep movsb nop and %r14, %r14 lea addresses_normal_ht+0x1501d, %rsi lea addresses_UC_ht+0xd0dd, %rdi nop nop cmp $16303, %r11 mov $115, %rcx rep movsb cmp $28792, %r14 lea addresses_normal_ht+0x1bc7d, %rsi nop nop nop dec %rdi mov $0x6162636465666768, %r14 movq %r14, %xmm2 movups %xmm2, (%rsi) cmp $7340, %rcx lea addresses_A_ht+0x158dd, %rsi cmp $36589, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm4 movups %xmm4, (%rsi) nop and $17122, %r11 lea addresses_normal_ht+0x165dd, %rsi inc %r12 movb (%rsi), %bl nop nop nop add $36934, %rcx lea addresses_D_ht+0x56b9, %rsi lea addresses_A_ht+0xfddd, %rdi nop nop nop nop cmp %rbx, %rbx mov $75, %rcx rep movsw nop nop nop nop sub %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rax push %rbx push %rdi push %rdx // Store lea addresses_UC+0xe6dd, %rdi cmp $50744, %r15 movb $0x51, (%rdi) nop nop nop add $47072, %rdx // Faulty Load mov $0x1d9ef200000008dd, %rax nop cmp $43380, %rdx movb (%rax), %r15b lea oracles, %rdx and $0xff, %r15 shlq $12, %r15 mov (%rdx,%r15,1), %r15 pop %rdx pop %rdi pop %rbx pop %rax pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 3}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}} {'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}} {'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 7}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
src/Processors/LaTeX/project_processor-processors-latex.ads
fintatarta/eugen
0
3851
<reponame>fintatarta/eugen<filename>src/Processors/LaTeX/project_processor-processors-latex.ads with EU_Projects.Projects; with Ada.Strings.Bounded; with Latex_Writer; use Latex_Writer; package Project_Processor.Processors.LaTeX is type Processor_Type is new Abstract_Processor with private; overriding function Create (Params : not null access Processor_Parameter) return Processor_Type; overriding procedure Process (Processor : Processor_Type; Input : EU_Projects.Projects.Project_Descriptor); private package Bounded_Filenames is new Ada.Strings.Bounded.Generic_Bounded_Length (2048); subtype Bounded_Filename is Bounded_Filenames.Bounded_String; function Bless (X : String) return Bounded_Filename is (Bounded_Filenames.To_Bounded_String (X)); function To_S (X : Bounded_Filename) return String is (Bounded_Filenames.To_String (X)); type Target_Class is (File, Standard_Output, None); type Target_Spec (Class : Target_Class := File) is record case Class is when None | Standard_Output => null; when File => Filename : Bounded_Filename; end case; end record; type GANTT_Parameters is record Font_Size : Latex_Length; Textwidth : Latex_Length; Pre_Label_Skip : Em_Length; Post_Label_Skip : Em_Length; Header_Skip : Em_Length; Tick_Length : Em_Length; Task_Indent : Natural; Show_Deliverables : Boolean; end record; type Processor_Type is new Abstract_Processor with record Wp_Target : Target_Spec; Wp_Summary_Target : Target_Spec; Partner_Target : Target_Spec; Deliverable_Target : Target_Spec; Deliv_Summary_Target : Target_Spec; Deliv_Compact_Summary_Target : Target_Spec; Milestone_Target : Target_Spec; Effort_Summary_Target : Target_Spec; Gantt_Target : Target_Spec; Gantt_Style : GANTT_Parameters; end record; end Project_Processor.Processors.LaTeX;
tier-1/xcb/source/thin/xcb-xcb_create_window_request_t.ads
charlie5/cBound
2
26943
<filename>tier-1/xcb/source/thin/xcb-xcb_create_window_request_t.ads -- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_create_window_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; depth : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; wid : aliased xcb.xcb_window_t; parent : aliased xcb.xcb_window_t; x : aliased Interfaces.Integer_16; y : aliased Interfaces.Integer_16; width : aliased Interfaces.Unsigned_16; height : aliased Interfaces.Unsigned_16; border_width : aliased Interfaces.Unsigned_16; a_class : aliased Interfaces.Unsigned_16; visual : aliased xcb.xcb_visualid_t; value_mask : aliased Interfaces.Unsigned_32; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_create_window_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_create_window_request_t.Item, Element_Array => xcb.xcb_create_window_request_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_create_window_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_create_window_request_t.Pointer, Element_Array => xcb.xcb_create_window_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_create_window_request_t;
base/mvdm/wow16/win87em/emdecode.asm
npocmaka/Windows-Server-2003
17
20059
page ,132 subttl emdecode.asm - Instruction decoding ;*** ;emdecode.asm - Instruction decoding ; ; Copyright (c) 1987-89, Microsoft Corporation ; ;Purpose: ; Instruction decoding. ; Further decoding of instructions done here. ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; ;Revision History: ; See emulator.hst ; ;******************************************************************************* ProfBegin DECODE even pub eFLDsdri MOV BX,CX ; Dispatch on MF AND ebx,6H ifdef i386 JMP FLDsdriTab[2*ebx] else JMP FLDsdriTab[ebx] endif pub eFSTsdri MOV BX,CX ; Dispatch on MF AND ebx,6H ifdef i386 JMP FSTsdriTab[2*ebx] else JMP FSTsdriTab[ebx] endif even pub eFSTPsdri mov bx, cx ; Dispatch on MF and ebx, 6h ifdef i386 call FSTsdriTab[2*ebx] else call FSTsdriTab[ebx] endif mov esi, [CURstk] cmp esi, [BASstk] ; Do we have an empty stack? jbe short FSTPSTUnder ; Yes, Underflow. FSTPSTOk: sub esi, Reg87Len ; decrement SI to previous register mov [CURstk], esi ; set current top of stack ret FSTPSTUnder: call UnderStk ; stack underflow error jmp FSTPSTOk pub eFLDtempORcw MOV BX,CX ; Dispatch on MF AND ebx,6H ifdef i386 JMP FLDtempORcwTab[2*ebx] else JMP FLDtempORcwTab[ebx] endif pub eFSTtempORcw MOV BX,CX ; Dispatch on MF AND ebx,6H ifdef i386 JMP FSTtempORcwTab[2*ebx] else JMP FSTtempORcwTab[ebx] endif pub eFLDregOrFFREE ; We only emulate FLD ST (Duplicate TOS) ;CX = |Op|r/m|MOD|esc|MF|Arith| test cx,06h ; test MF. MF=01 is FFREE, MF=00 is FLD ST(i) jnz short jmpeFFREE ; go emulate FFREE jmp eFLDreg ; emulate FLD ST(i) jmpeFFREE: jmp eFFREE ; emulate FFREE ST(i) pub eMISCELANEOUS ; We only emulate FCHS, FABS, FTST, & FXAM ; FCLEX is emulated in non-IBM version TEST CX,0806H ; We already have match on Op,MOD,&Arith jz short MFzero ; MF = 0, must be FCHS, FABS, FTST or FXAM ; check for FCLEX (cx = 8B03) xor cx,00203h ; toggle low bit of MF and middle bit of r/m test cx,00603h ; test for zero in MF and r/m fields jnz short jnzUNUSED ; MF <> 01 and/or r/m <> 010 => unemulated cmp cx,8104h ; check for FSTSW AX je short eFSTSWAX ; yes mov [StatusWord],0 ; FCLEX: clear status word ret pub eFSTSWAX ifdef XENIX xor eax,eax ; UNDONE - set to non-zero - cleanup code else push sp ; test for 286 !!! pop ax cmp ax,sp endif pub jnzUNUSED jnz UNUSED ; UNUSED if not 286 mov ax,[StatusWord] ; FSTSW AX: save status word in AX mov [ebp].regAX,ax ; overwrite AX stack entry ret MFzero: TEST CX,1000H JZ short FABSorFCHS TEST CX,0400H ; r/m = 101 for FXAM JNZ short JMPeFXAM ; r/m = 100 for FTST JMP eFTST pub JMPeFXAM JMP eFXAM pub FABSorFCHS TEST CX,0400H ; r/m = 001 for FABS JNZ short JMPeFABS ; r/m = 000 for FCHS JMP eFCHS pub JMPeFABS JMP eFABS pub eFLDconstants MOV BL,CH ; Mov r/m field to BX for jump SHR BL,1 AND ebx,0EH ifdef i386 JMP FLDconstantsTab[2*ebx] else JMP FLDconstantsTab[ebx] endif pub eTranscendental MOV BL,CH ; Mov r/m field to BX for jump SHR BL,1 AND ebx,0EH ifdef i386 JMP TranscendentalTab[2*ebx] else JMP TranscendentalTab[ebx] endif pub eVARIOUS MOV BL,CH ; Mov r/m field to BX for jump SHR BL,1 AND ebx,0EH ifdef i386 JMP VariousTab[2*ebx] else JMP VariousTab[ebx] endif pub eFXCHGreg ; only valid FXCHG is with r/m = 001, MF = 00 TEST CX,06h ; only valid FXCHG is with MF = 0 JNZ short UNUSED ; unemulated JMP eFXCHG ; emulate FXCH ST(i) pub eFSTPreg xor cl,04h ; test for MF = 10, valid encoding of FSTP ST(x) test cx,06h jne short UNUSED ; MF <> 10, no such instruction mov ax,1 ; indicate stack should be popped after xfer jmp eFST_Preg ; emulate FSTP ST(x) ;*** eFSTreg - decode FST ST(i),FNOP ; ; ARGUMENTS ; CX = |Op|r/m|MOD|esc|MF|Arith| ; ; DESCRIPTION ; All parts of the instruction except MF and r/m have already ; been decoded. If MF=0, the instruction is FNOP, which is ; unemulated. Otherwise, clear AX to indicate FST ST(i), then ; jump to eFST_Preg, the common emulator routine for ; FST ST(i) and FSTP ST(i). ; eFSTreg: test cl,06h ;test for MF = 0 jz short UNUSED ;MF=0 ==> FNOP, which is unemulated ;otherwise this is FST ST(i) xor ax,ax ;clear ax to indicate FST ST(i), not FSTP ST(i) jmp eFST_Preg ; emulate FSTP ST(x) ; This sets the error flag indicating Unemulated functions eFXTRACT: eFDECSTP: eFINCSTP: ifdef frontend ; unused instructions for frontend version eFLDL2T: eFLDL2E: eFLDPI: eFLDLG2: eFLDLN2: eFPREM: eF2XM1: eFYL2X: eFPTAN: eFPATAN: eFYL2XP1: eFSQRT: endif ;frontend ifdef SMALL_EMULATOR eFLDL2T: eFLDL2E: eFLDPI: eFLDLG2: eFLDLN2: eFPREM: eF2XM1: eFYL2X: eFPTAN: eFPATAN: eFYL2XP1: eFSQRT: endif ;SMALL_EMULATOR pub UNUSED OR [CURerr],Unemulated RET ProfEnd DECODE
Test/Z80/test z80 cpu - prelim.asm
sparks-c16/zasm
43
167883
#!/usr/local/bin/zasm -o original/ .title 'Preliminary Z80 tests' ; prelim.z80 - Preliminary Z80 tests ; Copyright (C) 1994 <NAME> ; ; This program is free software; you can redistribute it and/or ; modify it under the terms of the GNU General Public License ; as published by the Free Software Foundation; either version 2 ; of the License, or (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ; These tests have two goals. To start with, we assume the worst and ; successively test the instructions needed to continue testing. ; Then we try to test all instructions which cannot be handled by ; zexlax - the crc-based instruction exerciser. ; Initially errors are 'reported' by jumping to 0. This should reboot ; cp/m, so if the program terminates without any output one of the ; early tests failed. Later errors are reported by outputting an ; address via the bdos conout routine. The address can be located in ; a listing of this program. ; If the program runs to completion it displays a suitable message. aseg org 100h start: ld a,1 ; test simple compares and z/nz jumps cp 2 jp z,0 cp 1 jp nz,0 jp lab0 halt ; emergency exit db 0ffh lab0: call lab2 ; does a simple call work? lab1: jp 0 ; fail lab2: pop hl ; check return address ld a,h cp hi(lab1) jp z,lab3 jp 0 lab3: ld a,l cp lo(lab1) jp z,lab4 jp 0 ; test presence and uniqueness of all machine registers ; (except ir) lab4: ld sp,regs1 pop af pop bc pop de pop hl ex af,af' exx pop af pop bc pop de pop hl pop ix pop iy ld sp,regs2+20 push iy push ix push hl push de push bc push af ex af,af' exx push hl push de push bc push af v: set 0 rept 20 ld a,(regs2+v/2) v: set v+2 cp v jp nz,0 endm ; test access to memory via (hl) ld hl,hlval ld a,(hl) cp 0a5h jp nz,0 ld hl,hlval+1 ld a,(hl) cp 03ch jp nz,0 ; test unconditional return ld sp,stack ld hl,reta push hl ret jp 0 ; test instructions needed for hex output reta: ld a,255 and a,15 cp 15 jp nz,0 ld a,05ah and 15 cp 00ah jp nz,0 rrca cp 005h jp nz,0 rrca cp 082h jp nz,0 rrca cp 041h jp nz,0 rrca cp 0a0h jp nz,0 ld hl,01234h push hl pop bc ld a,b cp 012h jp nz,0 ld a,c cp 034h jp nz,0 ; from now on we can report errors by displaying an address ; test conditional call, ret, jp, jr tcond: macro flag,pcond,ncond,rel ld hl,&flag push hl pop af call &pcond,lab1&pcond jp error lab1&pcond: pop hl ld hl,0d7h xor &flag push hl pop af call &ncond,lab2&pcond jp error lab2&pcond: pop hl ld hl,lab3&pcond push hl ld hl,&flag push hl pop af ret &pcond call error lab3&pcond: ld hl,lab4&pcond push hl ld hl,0d7h xor &flag push hl pop af ret &ncond call error lab4&pcond: ld hl,&flag push hl pop af jp &pcond,lab5&pcond call error lab5&pcond: ld hl,0d7h xor &flag push hl pop af jp &ncond,lab6&pcond call error lab6&pcond: if &rel ld hl,&flag push hl pop af jr &pcond,lab7&pcond call error lab7&pcond: ld hl,0d7h xor &flag push hl pop af jr &ncond,lab8&pcond call error lab8&pcond: endif endm tcond 1,c,nc,1 tcond 4,pe,po,0 tcond 040h,z,nz,1 tcond 080h,m,p,0 ; test indirect jumps ld hl,lab5 jp (hl) call error lab5: ld hl,lab6 push hl pop ix jp (ix) call error lab6: ld hl,lab7 push hl pop iy jp (iy) call error ; djnz (and (partially) inc a, inc hl) lab7: ld a,0a5h ld b,4 lab8: rrca djnz lab8 cp 05ah call nz,error ld b,16 lab9: inc a djnz lab9 cp 06ah call nz,error ld b,0 ld hl,0 lab10: inc hl djnz lab10 ld a,h cp 1 call nz,error ld a,l cp 0 call nz,error ; relative addressing reladr: macro r ld &r,hlval ld a,(&r) cp 0a5h call nz,error ld a,(&r+1) cp 03ch call nz,error inc &r ld a,(&r-1) cp 0a5h call nz,error ld &r,hlval-126 ld a,(&r+127) cp 03ch call nz,error ld &r,hlval+128 ld a,(&r-128) cp 0a5h call nz,error endm reladr ix reladr iy allok: ld de,okmsg ld c,9 call 5 jp 0 okmsg: db 'Preliminary tests complete$' ; display address at top of stack and exit error: pop bc ld h,hi(hextab) ld a,b rrca rrca rrca rrca and 15 ld l,a ld a,(hl) call conout ld a,b and 15 ld l,a ld a,(hl) call conout ld a,c rrca rrca rrca rrca and 15 ld l,a ld a,(hl) call conout ld a,c and 15 ld l,a ld a,(hl) call conout ld a,13 call conout ld a,10 call conout jp 0 conout: push af push bc push de push hl ld c,2 ld e,a call 5 pop hl pop de pop bc pop af ret v: set 0 regs1: rept 20 v: set v+2 db v endm regs2: ds 20,0 hlval: db 0a5h,03ch ; skip to next page boundary org (($+255)/256)*256 hextab: db '0123456789abcdef' ds 240 stack: equ $ end
oeis/015/A015585.asm
neoneye/loda-programs
11
22626
; A015585: a(n) = 9*a(n-1) + 10*a(n-2). ; 0,1,9,91,909,9091,90909,909091,9090909,90909091,909090909,9090909091,90909090909,909090909091,9090909090909,90909090909091,909090909090909,9090909090909091,90909090909090909,909090909090909091,9090909090909090909,90909090909090909091,909090909090909090909,9090909090909090909091,90909090909090909090909,909090909090909090909091,9090909090909090909090909,90909090909090909090909091,909090909090909090909090909,9090909090909090909090909091,90909090909090909090909090909,909090909090909090909090909091 mov $1,10 pow $1,$0 mul $1,9 add $1,10 div $1,10 mul $1,10 div $1,99 mov $0,$1
src/System/IO/Transducers/IO.agda
ilya-fiveisky/agda-system-io
10
8702
{-# OPTIONS --no-termination-check #-} -- TODO: switch the termination checker back on. open import Coinduction using ( ∞ ; ♭ ; ♯_ ) open import Data.Bool using ( Bool ; true ; false ) open import Data.Maybe using ( Maybe ; just ; nothing ) open import Data.Sum using ( _⊎_ ; inj₁ ; inj₂ ) open import Data.Product using ( ∃ ; _,_ ) open import Data.ByteString using ( ByteString ; strict ; null ) open import System.IO using ( IO ; Command ; return ; _>>_ ; _>>=_ ; skip ; getBytes ; putBytes ; commit ) open import System.IO.Transducers.Lazy using ( _⇒_ ; _⤇_ ; inp ; out ; done ; ι⁻¹ ) open import System.IO.Transducers.Session using ( I ; Σ ; Bytes ) open import System.IO.Transducers.Strict using ( _⇛_ ) module System.IO.Transducers.IO where infixl 5 _$_ postulate IOError : Set _catch_ : ∀ {A} → (IO A) → (IOError → (IO A)) → (IO A) {-# COMPILED_TYPE IOError IOError #-} {-# COMPILED _catch_ (\ _ -> catch) #-} _$_ : ∀ {A V F T} → (Σ {A} V F ⤇ T) → (a : A) → (♭ F a ⤇ T) inp P $ a = ♭ P a out b P $ a = out b (P $ a) getBytes? : IO (Maybe (ByteString strict)) getBytes? = (getBytes >>= λ x → return (just x)) catch (λ e → return nothing) runI : (I ⤇ Bytes) → Command runI (out true (out x P)) = putBytes x >> commit >> runI P runI (out false P) = skip mutual run? : (Bytes ⤇ Bytes) → (Maybe (ByteString strict)) → Command run? P (just b) = run' (P $ true $ b) run? P nothing = runI (P $ false) run' : (Bytes ⤇ Bytes) → Command run' (out true (out b P)) = putBytes b >> commit >> run' P run' (out false P) = skip run' P = getBytes? >>= run? P run : (Bytes ⇒ Bytes) → Command run P = run' (ι⁻¹ P)
minijava.asm
lffloyd/pyva
0
171995
<reponame>lffloyd/pyva<filename>minijava.asm Factorial: move $fp $sp sw $ra 0($sp) addiu $sp $sp -40 jal System.out.println lw $ra 40($sp) addiu $sp $sp 40 lw $fp 0($sp) jr $ra Fac: ComputeFac: li $a0 0 : move $fp $sp sw $ra 0($sp) addiu $sp $sp -4 li $a0 0 sw $a0 0($sp) addiu $sp $sp -4 li $a0 0 sw $a0 0($sp) addiu $sp $sp -4 lw $ra 4($sp) addiu $sp $sp 12 lw $fp 0($sp) jr $ra
libsrc/stdio/nascom/fputc_cons.asm
grancier/z180
0
167858
; ; ROM Console routine for the NASCOM1/2 ; By <NAME> - 19/6/2003 ; ; $Id: fputc_cons.asm,v 1.5 2016/05/15 20:15:45 dom Exp $ ; SECTION code_clib PUBLIC fputc_cons_native EXTERN montest .fputc_cons_native ld hl,2 add hl,sp ld a,(hl) push af call montest jr nz,nassys ; T monitor pop af cp 12 jr nz,notcls ld a,1eh .notcls IF STANDARDESCAPECHARS cp 10 ELSE cp 13 ENDIF jr nz,notcr ld a,1fh .notcr jp 0c4ah .nassys ; NASSYS monitor pop af cp 12 jr nz,nocls ld a,0ch .nocls defb 0f7h ret
oeis/111/A111939.asm
neoneye/loda-programs
11
81958
; A111939: Number of primes < semiprime(n). ; Submitted by <NAME> ; 2,3,4,4,6,6,8,8,9,9,11,11,11,12,12,14,15,15,16,16,16,18,18,19,21,21,22,23,23,23,24,24,24,24,27,29,30,30,30,30,30,30,31,32,32,34,34,34,34,34,36,37,37,37,38,39,40,40,42,42,42,44,46,46,46,46,46,46,47,47,47,47,47 seq $0,186621 ; Semiprimes - 1. seq $0,720 ; pi(n), the number of primes <= n. Sometimes called PrimePi(n) to distinguish it from the number 3.14159...
programs/oeis/259/A259665.asm
neoneye/loda
22
85552
<filename>programs/oeis/259/A259665.asm ; A259665: a(0)=0, a(1)=1, a(n) = min{4 a(k) + (4^(n-k)-1)/3, k=0..(n-1)} for n>=2. ; 0,1,5,9,25,41,57,121,185,249,313,569,825,1081,1337,1593,2617,3641,4665,5689,6713,7737,11833,15929,20025,24121,28217,32313,36409,52793,69177,85561,101945,118329,134713,151097,167481,233017,298553,364089,429625,495161,560697,626233,691769,757305,1019449,1281593,1543737,1805881,2068025,2330169,2592313,2854457,3116601,3378745,4427321,5475897,6524473,7573049,8621625,9670201,10718777,11767353,12815929,13864505,14913081,19107385,23301689,27495993,31690297,35884601,40078905,44273209,48467513,52661817,56856121,61050425,65244729,82021945,98799161,115576377,132353593,149130809,165908025,182685241,199462457,216239673,233016889,249794105,266571321,283348537,350457401,417566265,484675129,551783993,618892857,686001721,753110585,820219449 mov $7,$0 mov $9,$0 lpb $9 mov $0,$7 sub $9,1 sub $0,$9 lpb $2 add $0,1 mov $3,$2 mov $5,$2 add $5,1 mov $6,$0 mul $0,$4 add $6,$2 sub $6,3 lpb $6 add $3,1 trn $6,$3 lpe mov $2,$0 sub $3,1 mov $8,$5 mul $8,2 lpe add $2,1 pow $8,$3 add $1,$8 lpe mov $0,$1
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_756.asm
ljhsiun2/medusa
9
2065
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xfcdd, %r13 nop nop nop nop nop and %r14, %r14 mov (%r13), %r11w nop nop nop add %r9, %r9 lea addresses_A_ht+0x11bdd, %rsi lea addresses_UC_ht+0xcdc1, %rdi nop nop nop nop nop and $41786, %rax mov $65, %rcx rep movsl nop nop nop nop add %rax, %rax lea addresses_A_ht+0xdbdd, %r13 nop nop nop sub $40691, %r11 and $0xffffffffffffffc0, %r13 vmovntdqa (%r13), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rax nop nop nop sub %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi // Faulty Load lea addresses_A+0x97dd, %rbx nop nop nop nop nop xor %rcx, %rcx movb (%rbx), %dl lea oracles, %rbp and $0xff, %rdx shlq $12, %rdx mov (%rbp,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': True, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
verify/lxp32/src/firmware/test014.asm
roneissu/bonfire-cpu
38
19259
/* * Test "hlt" instruction */ lc r100, 0x10000000 // test result output pointer lc r101, halt lc r103, 0x20000000 // timer: number of pulses (0xFFFFFFFF - infinite) lc r104, 0x20000004 // timer: delay between pulses (in cycles) lc iv0, timer_handler mov r10, 2 mov cr, 1 // enable interrupt 0 lc r0, 1000 sw r104, r0 sw r103, 1 hlt sw r100, r10 // r10 will be 2 if interrupt hasn't been called, which is a failure code halt: hlt jmp r101 // halt timer_handler: mov r10, 1 iret
server/jason-applications.adb
stcarrez/jason
2
11604
<gh_stars>1-10 ----------------------------------------------------------------------- -- jason -- jason applications -- Copyright (C) 2016, 2018, 2021 Stephane.Carrez -- Written by Stephane.Carrez (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.IO_Exceptions; with Util.Log.Loggers; with Util.Properties; with ASF.Applications; with AWA.Applications.Factory; package body Jason.Applications is use AWA.Applications; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Jason"); -- ------------------------------ -- Create the Jason application instance. -- ------------------------------ function Create return Application_Access is App : constant Application_Access := new Application; begin App.Self := App; return App; end Create; -- ------------------------------ -- Initialize the application: -- <ul> -- <li>Register the servlets and filters. -- <li>Register the application modules. -- <li>Define the servlet and filter mappings. -- </ul> -- ------------------------------ procedure Initialize (App : in Application_Access) is Fact : AWA.Applications.Factory.Application_Factory; C : ASF.Applications.Config; begin App.Self := App; begin C.Load_Properties ("jason.properties"); Util.Log.Loggers.Initialize (Util.Properties.Manager (C)); exception when Ada.IO_Exceptions.Name_Error => Log.Error ("Cannot read application configuration file {0}", CONFIG_PATH); end; App.Initialize (C, Fact); App.Set_Global ("contextPath", CONTEXT_PATH); end Initialize; -- ------------------------------ -- Initialize the servlets provided by the application. -- This procedure is called by <b>Initialize</b>. -- It should register the application servlets. -- ------------------------------ overriding procedure Initialize_Servlets (App : in out Application) is begin Log.Info ("Initializing application servlets..."); AWA.Applications.Application (App).Initialize_Servlets; App.Add_Servlet (Name => "faces", Server => App.Self.Faces'Access); App.Add_Servlet (Name => "files", Server => App.Self.Files'Access); App.Add_Servlet (Name => "ajax", Server => App.Self.Ajax'Access); App.Add_Servlet (Name => "measures", Server => App.Self.Measures'Access); App.Add_Servlet (Name => "auth", Server => App.Self.Auth'Access); App.Add_Servlet (Name => "verify-auth", Server => App.Self.Verify_Auth'Access); end Initialize_Servlets; -- ------------------------------ -- Initialize the filters provided by the application. -- This procedure is called by <b>Initialize</b>. -- It should register the application filters. -- ------------------------------ overriding procedure Initialize_Filters (App : in out Application) is begin Log.Info ("Initializing application filters..."); AWA.Applications.Application (App).Initialize_Filters; App.Add_Filter (Name => "dump", Filter => App.Self.Dump'Access); App.Add_Filter (Name => "measures", Filter => App.Self.Measures'Access); App.Add_Filter (Name => "service", Filter => App.Self.Service_Filter'Access); end Initialize_Filters; -- ------------------------------ -- Initialize the AWA modules provided by the application. -- This procedure is called by <b>Initialize</b>. -- It should register the modules used by the application. -- ------------------------------ overriding procedure Initialize_Modules (App : in out Application) is begin Log.Info ("Initializing application modules..."); Register (App => App.Self.all'Access, Name => AWA.Users.Modules.NAME, URI => "user", Module => App.User_Module'Access); Register (App => App.Self.all'Access, Name => AWA.Workspaces.Modules.NAME, URI => "workspaces", Module => App.Workspace_Module'Access); Register (App => App.Self.all'Access, Name => AWA.Mail.Modules.NAME, URI => "mail", Module => App.Mail_Module'Access); Register (App => App.Self.all'Access, Name => AWA.Comments.Modules.NAME, URI => "comments", Module => App.Comment_Module'Access); Register (App => App.Self.all'Access, Name => AWA.Tags.Modules.NAME, URI => "tags", Module => App.Tag_Module'Access); Register (App => App.Self.all'Access, Name => AWA.Storages.Modules.NAME, URI => "storages", Module => App.Storage_Module'Access); Register (App => App.Self.all'Access, Name => Jason.Projects.Modules.NAME, URI => "projects", Module => App.Project_Module'Access); Register (App => App.Self.all'Access, Name => Jason.Tickets.Modules.NAME, URI => "tickets", Module => App.Ticket_Module'Access); end Initialize_Modules; end Jason.Applications;
alloy4fun_models/trashltl/models/7/pKxdDmySd7wDMxuo9.als
Kaixi26/org.alloytools.alloy
0
4825
<gh_stars>0 open main pred idpKxdDmySd7wDMxuo9_prop8 { (all f:File| some f.link implies eventually f.link in Trash) } pred __repair { idpKxdDmySd7wDMxuo9_prop8 } check __repair { idpKxdDmySd7wDMxuo9_prop8 <=> prop8o }
programs/oeis/233/A233286.asm
karttu/loda
1
173294
<filename>programs/oeis/233/A233286.asm ; A233286: Number of trailing zeros in the factorial base representation of n-th Fibonacci number; a(n) = A230403(A000045(n)) = A233285(n)-1. ; 0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,5,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1,0,0,1,0,0,1,0,0,3,0,0,1 cal $0,230405 ; a(n) = A000217(A230404(n+1)); the first differences of A219650. mul $0,2 add $1,$0 div $1,4
programs/oeis/155/A155654.asm
neoneye/loda
22
177381
; A155654: 11^n - 6^n + 1. ; 1,6,86,1116,13346,153276,1724906,19207236,212679266,2347869996,25876958426,284948873556,3136251594386,34509651449916,379671469419146,4176777984431076,45946908753664706,505430101839849036 mov $1,11 pow $1,$0 mov $2,6 pow $2,$0 sub $1,$2 add $1,1 mov $0,$1
day03/src/main.adb
jwarwick/aoc_2019_ada
0
665
<reponame>jwarwick/aoc_2019_ada -- AOC, Day 3 with Ada.Text_IO; use Ada.Text_IO; with FMS; procedure main is begin FMS.load_file("day3_input.txt"); put_line("Part 1: " & Positive'Image(FMS.closest_intersection)); put_line("Part 2: " & Positive'Image(FMS.shortest_intersection)); end main;
proglangs-learning/Agda/sv20/class-exercise.agda
helq/old_code
0
13060
<filename>proglangs-learning/Agda/sv20/class-exercise.agda module sv20.class-exercise where open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _≤_; s≤s; z≤n) -- Subset definition taken from: https://agda.readthedocs.io/en/v2.6.1/language/irrelevance.html -- Notice that irrelevance is not the same as function dot-pattern: https://agda.readthedocs.io/en/v2.6.1/language/function-definitions.html#dot-patterns postulate .irrAx : ∀ {ℓ} {A : Set ℓ} -> .A -> A record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem : A .certificate : P elem .certificate : {A : Set}{P : A -> Set} -> (x : Subset A P) -> P (Subset.elem x) certificate (a # p) = irrAx p _ : Subset ℕ (_≤ 3) _ = 3 # s≤s (s≤s (s≤s z≤n)) --_ = 0 # z≤n --_∈_ : ? --(a # p) ∈ s = ?
reverse_engineering/grammars/HiveParser.g4
bedletskyi/DeltaLake
0
5091
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. @author <NAME> */ parser grammar HiveParser; import SelectClauseParser, FromClauseParser, IdentifiersParser, ResourcePlanParser; options { tokenVocab=HiveLexer; } // starting rule statements : (statement statementSeparator | empty)* EOF ; statementSeparator : SEMICOLON ; empty : statementSeparator ; statement : explainStatement | execStatement ; explainStatement : KW_EXPLAIN ( explainOption* execStatement | KW_REWRITE queryStatementExpression ) ; explainOption : KW_EXTENDED | KW_FORMATTED | KW_DEPENDENCY | KW_LOGICAL | KW_AUTHORIZATION | KW_ANALYZE | KW_REOPTIMIZATION | (KW_VECTORIZATION vectorizationOnly? vectorizatonDetail?) ; vectorizationOnly : KW_ONLY ; vectorizatonDetail : KW_SUMMARY | KW_OPERATOR | KW_EXPRESSION | KW_DETAIL ; execStatement : queryStatementExpression | loadStatement | exportStatement | importStatement | replDumpStatement | replLoadStatement | replStatusStatement | ddlStatement | deleteStatement | updateStatement | sqlTransactionStatement | mergeStatement ; loadStatement : KW_LOAD KW_DATA KW_LOCAL? KW_INPATH StringLiteral KW_OVERWRITE? KW_INTO KW_TABLE tableOrPartition inputFileFormat? ; replicationClause : KW_FOR KW_METADATA? KW_REPLICATION LPAREN StringLiteral RPAREN ; exportStatement : KW_EXPORT KW_TABLE tableOrPartition KW_TO StringLiteral replicationClause? ; importStatement : KW_IMPORT (KW_EXTERNAL? KW_TABLE tableOrPartition)? KW_FROM (path=StringLiteral) tableLocation? ; replDumpStatement : KW_REPL KW_DUMP identifier (DOT identifier)? (KW_FROM Number (KW_TO Number)? (KW_LIMIT Number)? )? (KW_WITH replConfigs)? ; replLoadStatement : KW_REPL KW_LOAD (identifier (DOT identifier)?)? KW_FROM StringLiteral (KW_WITH replConfigs)? ; replConfigs : LPAREN replConfigsList RPAREN ; replConfigsList : keyValueProperty (COMMA keyValueProperty)* ; replStatusStatement : KW_REPL KW_STATUS identifier (DOT identifier)? (KW_WITH replConfigs)? ; ddlStatement : createDatabaseStatement | switchDatabaseStatement | dropDatabaseStatement | createTableStatement | dropTableStatement | truncateTableStatement | alterStatement | descStatement | showStatement | metastoreCheck | createViewStatement | createMaterializedViewStatement | dropViewStatement | dropMaterializedViewStatement | createFunctionStatement | createMacroStatement | dropFunctionStatement | reloadFunctionStatement | dropMacroStatement | analyzeStatement | lockStatement | unlockStatement | lockDatabase | unlockDatabase | createRoleStatement | dropRoleStatement | grantPrivileges | revokePrivileges | showGrants | showRoleGrants | showRolePrincipals | showRoles | grantRole | revokeRole | setRole | showCurrentRole | abortTransactionStatement | killQueryStatement | resourcePlanDdlStatements | createIndexStatement | dropIndexStatement | createBloomfilterIndexStatement | dropBloomfilterIndexStatement ; ifExists : KW_IF KW_EXISTS ; restrictOrCascade : KW_RESTRICT | KW_CASCADE ; ifNotExists : KW_IF KW_NOT KW_EXISTS ; rewriteEnabled : KW_ENABLE KW_REWRITE ; rewriteDisabled : KW_DISABLE KW_REWRITE ; storedAsDirs : KW_STORED KW_AS KW_DIRECTORIES ; orReplace : KW_OR KW_REPLACE ; createDatabaseStatement : KW_CREATE (KW_DATABASE|KW_SCHEMA) ifNotExists? identifier databaseComment? dbLocation? (KW_WITH KW_DBPROPERTIES dbProperties)? ; dbLocation : KW_LOCATION StringLiteral ; dbProperties : LPAREN dbPropertiesList RPAREN ; dbPropertiesList : keyValueProperty (COMMA keyValueProperty)* ; switchDatabaseStatement : KW_USE identifier ; dropDatabaseStatement : KW_DROP (KW_DATABASE|KW_SCHEMA) ifExists? identifier restrictOrCascade? ; databaseComment : KW_COMMENT StringLiteral ; createTableStatement : KW_CREATE KW_TEMPORARY? KW_EXTERNAL? KW_TABLE ifNotExists? tableName ( KW_LIKE tableName tableRowFormat? tableFileFormat? tableUsingDataSource? tableLocation? tablePropertiesPrefixed? | (LPAREN columnNameTypeOrConstraintList RPAREN)? ( tableUsingDataSource | tableBuckets | tableSkewed | tableRowFormat | tableFileFormat | tablePartition | tableLocation | tablePropertiesPrefixed | tableComment )* (KW_AS selectStatementWithCTE)? ) ; truncateTableStatement : KW_TRUNCATE KW_TABLE tablePartitionPrefix (KW_COLUMNS LPAREN columnNameList RPAREN)?; dropTableStatement : KW_DROP KW_TABLE ifExists? tableName KW_PURGE? replicationClause? ; alterStatement : KW_ALTER KW_TABLE tableName alterTableStatementSuffix | KW_ALTER KW_VIEW tableName KW_AS? alterViewStatementSuffix | KW_ALTER KW_MATERIALIZED KW_VIEW tableName alterMaterializedViewStatementSuffix | KW_ALTER (KW_DATABASE|KW_SCHEMA) alterDatabaseStatementSuffix | KW_ALTER KW_INDEX alterIndexStatementSuffix ; alterTableStatementSuffix : alterStatementSuffixRename | alterStatementSuffixDropPartitions | alterStatementSuffixAddPartitions | alterStatementSuffixTouch | alterStatementSuffixArchive | alterStatementSuffixUnArchive | alterStatementSuffixProperties | alterStatementSuffixSkewedby | alterStatementSuffixExchangePartition | alterStatementPartitionKeyType | alterStatementSuffixDropConstraint | alterStatementSuffixAddConstraint | partitionSpec? alterTblPartitionStatementSuffix | alterStatementSuffixSetOwner ; alterTblPartitionStatementSuffix : alterStatementSuffixFileFormat | alterStatementSuffixLocation | alterStatementSuffixMergeFiles | alterStatementSuffixSerdeProperties | alterStatementSuffixRenamePart | alterStatementSuffixBucketNum | alterTblPartitionStatementSuffixSkewedLocation | alterStatementSuffixClusterbySortby | alterStatementSuffixCompact | alterStatementSuffixUpdateStatsCol | alterStatementSuffixUpdateStats | alterStatementSuffixRenameCol | alterStatementSuffixAddCol | alterStatementSuffixUpdateColumns ; alterStatementPartitionKeyType : KW_PARTITION KW_COLUMN LPAREN columnNameType RPAREN ; alterViewStatementSuffix : alterViewSuffixProperties | alterStatementSuffixRename | alterStatementSuffixAddPartitions | alterStatementSuffixDropPartitions | selectStatementWithCTE ; alterMaterializedViewStatementSuffix : alterMaterializedViewSuffixRewrite | alterMaterializedViewSuffixRebuild ; alterDatabaseStatementSuffix : alterDatabaseSuffixProperties | alterDatabaseSuffixSetOwner | alterDatabaseSuffixSetLocation ; alterDatabaseSuffixProperties : identifier KW_SET KW_DBPROPERTIES dbProperties ; alterDatabaseSuffixSetOwner : identifier KW_SET KW_OWNER principalName ; alterDatabaseSuffixSetLocation : identifier KW_SET KW_LOCATION StringLiteral ; alterStatementSuffixRename : KW_RENAME KW_TO tableName ; alterStatementSuffixAddCol : (KW_ADD | KW_REPLACE) KW_COLUMNS LPAREN columnNameTypeList RPAREN restrictOrCascade? ; alterStatementSuffixAddConstraint : KW_ADD (alterForeignKeyWithName | alterConstraintWithName) ; alterStatementSuffixUpdateColumns : KW_UPDATE KW_COLUMNS restrictOrCascade? ; alterStatementSuffixDropConstraint : KW_DROP KW_CONSTRAINT identifier ; alterStatementSuffixRenameCol : KW_CHANGE KW_COLUMN? identifier identifier colType alterColumnConstraint? (KW_COMMENT StringLiteral)? alterStatementChangeColPosition? restrictOrCascade? ; alterStatementSuffixUpdateStatsCol : KW_UPDATE KW_STATISTICS KW_FOR KW_COLUMN? identifier KW_SET tableProperties (KW_COMMENT StringLiteral)? ; alterStatementSuffixUpdateStats : KW_UPDATE KW_STATISTICS KW_SET tableProperties ; alterStatementChangeColPosition : first=KW_FIRST|KW_AFTER identifier ; alterStatementSuffixAddPartitions : KW_ADD ifNotExists? alterStatementSuffixAddPartitionsElement+ ; alterStatementSuffixAddPartitionsElement : partitionSpec partitionLocation? ; alterStatementSuffixTouch : KW_TOUCH partitionSpec* ; alterStatementSuffixArchive : KW_ARCHIVE partitionSpec* ; alterStatementSuffixUnArchive : KW_UNARCHIVE partitionSpec* ; partitionLocation : KW_LOCATION StringLiteral ; alterStatementSuffixDropPartitions : KW_DROP ifExists? dropPartitionSpec (COMMA dropPartitionSpec)* KW_PURGE? replicationClause? ; alterStatementSuffixProperties : KW_SET KW_TBLPROPERTIES tableProperties | KW_UNSET KW_TBLPROPERTIES ifExists? tableProperties ; alterViewSuffixProperties : KW_SET KW_TBLPROPERTIES tableProperties | KW_UNSET KW_TBLPROPERTIES ifExists? tableProperties ; alterMaterializedViewSuffixRewrite : (rewriteEnabled | rewriteDisabled) ; alterMaterializedViewSuffixRebuild : KW_REBUILD ; alterStatementSuffixSerdeProperties : KW_SET KW_SERDE StringLiteral (KW_WITH KW_SERDEPROPERTIES tableProperties)? | KW_SET KW_SERDEPROPERTIES tableProperties ; alterIndexStatementSuffix : identifier KW_ON tableName partitionSpec? KW_REBUILD; alterStatementSuffixFileFormat : KW_SET KW_FILEFORMAT fileFormat ; alterStatementSuffixClusterbySortby : KW_NOT KW_CLUSTERED | KW_NOT KW_SORTED | tableBuckets ; alterTblPartitionStatementSuffixSkewedLocation : KW_SET KW_SKEWED KW_LOCATION skewedLocations ; skewedLocations : LPAREN skewedLocationsList RPAREN ; skewedLocationsList : skewedLocationMap (COMMA skewedLocationMap)* ; skewedLocationMap : skewedValueLocationElement EQUAL StringLiteral ; alterStatementSuffixLocation : KW_SET KW_LOCATION StringLiteral ; alterStatementSuffixSkewedby : tableSkewed | KW_NOT KW_SKEWED | KW_NOT storedAsDirs ; alterStatementSuffixExchangePartition : KW_EXCHANGE partitionSpec KW_WITH KW_TABLE tableName ; alterStatementSuffixRenamePart : KW_RENAME KW_TO partitionSpec ; alterStatementSuffixStatsPart : KW_UPDATE KW_STATISTICS KW_FOR KW_COLUMN? identifier KW_SET tableProperties (KW_COMMENT StringLiteral)? ; alterStatementSuffixMergeFiles : KW_CONCATENATE ; alterStatementSuffixBucketNum : KW_INTO Number KW_BUCKETS ; createIndexStatement : createIndexMainStatement (KW_WITH KW_DEFERRED KW_REBUILD)? (KW_IDXPROPERTIES tableProperties)? (KW_IN KW_TABLE tableName)? (KW_PARTITIONED KW_BY columnParenthesesList)? (tableRowFormat? tableFileFormat)? (KW_LOCATION poolPath)? tablePropertiesPrefixed? tableComment?; createIndexMainStatement : KW_CREATE KW_INDEX identifier KW_ON KW_TABLE tableName columnParenthesesList KW_AS StringLiteral ; dropIndexStatement : KW_DROP KW_INDEX identifier KW_ON tableName; createBloomfilterIndexStatement : createBloomfilterIndexMainStatement (KW_FOR KW_COLUMNS bloomfilterColumnParenthesesList)? bloomfilterIndexOptions? ; createBloomfilterIndexMainStatement : KW_CREATE KW_BLOOMFILTER KW_INDEX KW_ON KW_TABLE? tableName ; bloomfilterColumnParenthesesList : LPAREN bloomfilterColumnNameList RPAREN ; bloomfilterColumnNameList : bloomfilterColumnName (COMMA bloomfilterColumnName)* ; bloomfilterColumnName : identifier bloomfilterIndexOptions? ; bloomfilterIndexOptions : KW_OPTIONS tableProperties ; dropBloomfilterIndexStatement : dropBloomfilterIndexMainStatement (KW_FOR KW_COLUMNS bloomfilterColumnParenthesesList)? ; dropBloomfilterIndexMainStatement : KW_DROP KW_BLOOMFILTER KW_INDEX KW_ON KW_TABLE? tableName ; tablePartitionPrefix : tableName partitionSpec? ; blocking : KW_AND KW_WAIT ; alterStatementSuffixCompact : KW_COMPACT StringLiteral blocking? (KW_WITH KW_OVERWRITE KW_TBLPROPERTIES tableProperties)? ; alterStatementSuffixSetOwner : KW_SET KW_OWNER principalName ; fileFormat : KW_INPUTFORMAT StringLiteral KW_OUTPUTFORMAT StringLiteral KW_SERDE StringLiteral (KW_INPUTDRIVER StringLiteral KW_OUTPUTDRIVER StringLiteral)? | tableFileFormatStoredAsFormat ; inputFileFormat : KW_INPUTFORMAT StringLiteral KW_SERDE StringLiteral ; tabTypeExpr : identifier (DOT identifier)? ( identifier (DOT ( KW_ELEM_TYPE | KW_KEY_TYPE | KW_VALUE_TYPE | identifier ) )* )? ; partTypeExpr : tabTypeExpr partitionSpec? ; tabPartColTypeExpr : tableName partitionSpec? extColumnName? ; descStatement : (KW_DESCRIBE|KW_DESC) ( (KW_DATABASE|KW_SCHEMA) KW_EXTENDED? identifier | KW_FUNCTION KW_EXTENDED? descFuncNames | ((KW_FORMATTED|KW_EXTENDED) tabPartColTypeExpr) | tabPartColTypeExpr ) ; analyzeStatement : KW_ANALYZE KW_TABLE (tableOrPartition) ( KW_COMPUTE KW_STATISTICS (KW_NOSCAN | (KW_FOR KW_COLUMNS columnNameList?))? | KW_CACHE KW_METADATA ) ; showStatement : KW_SHOW (KW_DATABASES|KW_SCHEMAS) (KW_LIKE showStmtIdentifier)? | KW_SHOW KW_TABLES ((KW_FROM|KW_IN) identifier)? (KW_LIKE showStmtIdentifier|showStmtIdentifier)? | KW_SHOW KW_VIEWS ((KW_FROM|KW_IN) identifier)? (KW_LIKE showStmtIdentifier|showStmtIdentifier)? | KW_SHOW KW_MATERIALIZED KW_VIEWS ((KW_FROM|KW_IN) identifier)? (KW_LIKE showStmtIdentifier|showStmtIdentifier)? | KW_SHOW KW_COLUMNS (KW_FROM|KW_IN) tableName ((KW_FROM|KW_IN) identifier)? (KW_LIKE showStmtIdentifier|showStmtIdentifier)? | KW_SHOW KW_FUNCTIONS (KW_LIKE showFunctionIdentifier|showFunctionIdentifier)? | KW_SHOW KW_PARTITIONS tableName partitionSpec? | KW_SHOW KW_CREATE ( (KW_DATABASE|KW_SCHEMA) identifier | KW_TABLE tableName ) | KW_SHOW KW_TABLE KW_EXTENDED ((KW_FROM|KW_IN) identifier)? KW_LIKE showStmtIdentifier partitionSpec? | KW_SHOW KW_TBLPROPERTIES tableName (LPAREN StringLiteral RPAREN)? | KW_SHOW KW_LOCKS ( (KW_DATABASE|KW_SCHEMA) identifier KW_EXTENDED? | partTypeExpr? KW_EXTENDED? ) | KW_SHOW KW_COMPACTIONS | KW_SHOW KW_TRANSACTIONS | KW_SHOW KW_CONF StringLiteral | KW_SHOW KW_RESOURCE ( (KW_PLAN identifier) | KW_PLANS ) ; lockStatement : KW_LOCK KW_TABLE tableName partitionSpec? lockMode ; lockDatabase : KW_LOCK (KW_DATABASE|KW_SCHEMA) identifier lockMode ; lockMode : KW_SHARED | KW_EXCLUSIVE ; unlockStatement : KW_UNLOCK KW_TABLE tableName partitionSpec? ; unlockDatabase : KW_UNLOCK (KW_DATABASE|KW_SCHEMA) identifier ; createRoleStatement : KW_CREATE KW_ROLE identifier ; dropRoleStatement : KW_DROP KW_ROLE identifier ; grantPrivileges : KW_GRANT privilegeList privilegeObject? KW_TO principalSpecification withGrantOption? ; revokePrivileges : KW_REVOKE grantOptionFor? privilegeList privilegeObject? KW_FROM principalSpecification ; grantRole : KW_GRANT KW_ROLE? identifier (COMMA identifier)* KW_TO principalSpecification withAdminOption? ; revokeRole : KW_REVOKE adminOptionFor? KW_ROLE? identifier (COMMA identifier)* KW_FROM principalSpecification ; showRoleGrants : KW_SHOW KW_ROLE KW_GRANT principalName ; showRoles : KW_SHOW KW_ROLES ; showCurrentRole : KW_SHOW KW_CURRENT KW_ROLES ; setRole : KW_SET KW_ROLE ( KW_ALL | KW_NONE | identifier ) ; showGrants : KW_SHOW KW_GRANT principalName? (KW_ON privilegeIncludeColObject)? ; showRolePrincipals : KW_SHOW KW_PRINCIPALS identifier ; privilegeIncludeColObject : KW_ALL | privObjectCols ; privilegeObject : KW_ON privObject ; // database or table type. Type is optional, default type is table privObject : (KW_DATABASE|KW_SCHEMA) identifier | KW_TABLE? tableName partitionSpec? | KW_URI StringLiteral | KW_SERVER identifier ; privObjectCols : (KW_DATABASE|KW_SCHEMA) identifier | KW_TABLE? tableName (LPAREN columnNameList RPAREN)? partitionSpec? | KW_URI StringLiteral | KW_SERVER identifier ; privilegeList : privlegeDef (COMMA privlegeDef)* ; privlegeDef : privilegeType (LPAREN columnNameList RPAREN)? ; privilegeType : KW_ALL | KW_ALTER | KW_UPDATE | KW_CREATE | KW_DROP | KW_LOCK | KW_SELECT | KW_SHOW_DATABASE | KW_INSERT | KW_DELETE ; principalSpecification : principalName (COMMA principalName)* ; principalName : KW_USER principalIdentifier | KW_GROUP principalIdentifier | KW_ROLE identifier ; withGrantOption : KW_WITH KW_GRANT KW_OPTION ; grantOptionFor : KW_GRANT KW_OPTION KW_FOR ; adminOptionFor : KW_ADMIN KW_OPTION KW_FOR ; withAdminOption : KW_WITH KW_ADMIN KW_OPTION ; metastoreCheck : KW_MSCK KW_REPAIR? (KW_TABLE tableName ((KW_ADD | KW_DROP | KW_SYNC) KW_PARTITIONS)? | partitionSpec?) ; resourceList : resource (COMMA resource)* ; resource : resourceType StringLiteral ; resourceType : KW_JAR | KW_FILE | KW_ARCHIVE ; createFunctionStatement : KW_CREATE KW_TEMPORARY? KW_FUNCTION functionIdentifier KW_AS StringLiteral (KW_USING resourceList)? ; dropFunctionStatement : KW_DROP KW_TEMPORARY? KW_FUNCTION ifExists? functionIdentifier ; reloadFunctionStatement : KW_RELOAD KW_FUNCTION ; createMacroStatement : KW_CREATE KW_TEMPORARY KW_MACRO Identifier LPAREN columnNameTypeList? RPAREN expression ; dropMacroStatement : KW_DROP KW_TEMPORARY KW_MACRO ifExists? Identifier ; createViewStatement : KW_CREATE orReplace? KW_VIEW ifNotExists? tableName (LPAREN columnNameCommentList RPAREN)? tableComment? viewPartition? tablePropertiesPrefixed? KW_AS selectStatementWithCTE ; createMaterializedViewStatement : KW_CREATE KW_MATERIALIZED KW_VIEW ifNotExists? tableName rewriteDisabled? tableComment? tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed? KW_AS selectStatementWithCTE ; viewPartition : KW_PARTITIONED KW_ON LPAREN columnNameList RPAREN ; dropViewStatement : KW_DROP KW_VIEW ifExists? viewName ; dropMaterializedViewStatement : KW_DROP KW_MATERIALIZED KW_VIEW ifExists? viewName ; showFunctionIdentifier : functionIdentifier | StringLiteral ; showStmtIdentifier : identifier | StringLiteral ; tableComment : KW_COMMENT StringLiteral ; tableUsingDataSource : KW_USING tableDataSource ; tableDataSource : KW_AVRO | KW_CSV | KW_JSON | KW_PARQUET | KW_ORC | KW_DELTA ; tablePartition : KW_PARTITIONED KW_BY LPAREN partitionedColumnNameTypeConstraint (COMMA partitionedColumnNameTypeConstraint)* RPAREN ; tableBuckets : KW_CLUSTERED KW_BY LPAREN columnNameList RPAREN (KW_SORTED KW_BY LPAREN columnNameOrderList RPAREN)? KW_INTO Number KW_BUCKETS ; tableSkewed : KW_SKEWED KW_BY LPAREN columnNameList RPAREN KW_ON LPAREN skewedValueElement RPAREN storedAsDirs? ; rowFormat : rowFormatSerde | rowFormatDelimited ; recordReader : KW_RECORDREADER StringLiteral ; recordWriter : KW_RECORDWRITER StringLiteral ; rowFormatSerde : KW_ROW KW_FORMAT KW_SERDE StringLiteral (KW_WITH KW_SERDEPROPERTIES tableProperties)? ; rowFormatDelimited : KW_ROW KW_FORMAT KW_DELIMITED tableRowFormatFieldIdentifier? tableRowFormatCollItemsIdentifier? tableRowFormatMapKeysIdentifier? tableRowFormatLinesIdentifier? tableRowNullFormat? ; tableRowFormat : rowFormatDelimited | rowFormatSerde ; tablePropertiesPrefixed : KW_TBLPROPERTIES tableProperties ; tableProperties : LPAREN tablePropertiesList RPAREN ; tablePropertiesList : keyValueProperty (COMMA keyValueProperty)* | keyProperty (COMMA keyProperty)* ; keyValueProperty : keyProperty EQUAL keyValue ; keyValue : Number | booleanValue | StringLiteral ; keyProperty : identifier (DOT identifier)* | StringLiteral ; tableRowFormatFieldIdentifier : KW_FIELDS KW_TERMINATED KW_BY StringLiteral tableRowFormatFieldIdentifierEcapedBy? ; tableRowFormatFieldIdentifierEcapedBy : KW_ESCAPED KW_BY StringLiteral ; tableRowFormatCollItemsIdentifier : KW_COLLECTION KW_ITEMS KW_TERMINATED KW_BY StringLiteral ; tableRowFormatMapKeysIdentifier : KW_MAP KW_KEYS KW_TERMINATED KW_BY StringLiteral ; tableRowFormatLinesIdentifier : KW_LINES KW_TERMINATED KW_BY StringLiteral ; tableRowNullFormat : KW_NULL KW_DEFINED KW_AS StringLiteral ; tableFileFormat : tableInputOutputFileFormat | tableFileFormatStoredBy | tableFileFormatStoredAs ; tableFileFormatStoredBy : KW_STORED KW_BY StringLiteral (KW_WITH KW_SERDEPROPERTIES tableProperties)? ; tableFileFormatStoredAs : KW_STORED KW_AS tableFileFormatStoredAsFormat ; tableFileFormatStoredAsFormat : KW_SEQUENCEFILE | KW_TEXTFILE | KW_RCFILE | KW_ORC | KW_PARQUET | KW_AVRO | KW_JSONFILE ; tableInputOutputFileFormat : KW_STORED KW_AS tableInputLiteral tableOutputLiteral (KW_INPUTDRIVER StringLiteral KW_OUTPUTDRIVER StringLiteral)? ; tableInputLiteral : KW_INPUTFORMAT StringLiteral ; tableOutputLiteral : KW_OUTPUTFORMAT StringLiteral ; tableLocation : KW_LOCATION StringLiteral ; columnNameTypeList : columnNameType (COMMA columnNameType)* ; columnNameTypeOrConstraintList : columnNameTypeOrConstraint (COMMA columnNameTypeOrConstraint)* ; columnNameColonTypeList : columnNameColonType (COMMA columnNameColonType)* ; columnNameList : columnName (COMMA columnName)* ; columnName : identifier ; extColumnName : identifier (DOT (KW_ELEM_TYPE | KW_KEY_TYPE | KW_VALUE_TYPE | identifier))* ; columnNameOrderList : columnNameOrder (COMMA columnNameOrder)* ; columnParenthesesList : LPAREN columnNameList RPAREN ; enableValidateSpecification : enableSpecification validateSpecification? | enforcedSpecification ; enableSpecification : KW_ENABLE | KW_DISABLE ; validateSpecification : KW_VALIDATE | KW_NOVALIDATE ; enforcedSpecification : KW_ENFORCED | KW_NOT KW_ENFORCED ; relySpecification : KW_RELY | (KW_NORELY)? ; createConstraint : (KW_CONSTRAINT identifier)? tableLevelConstraint constraintOptsCreate? ; alterConstraintWithName : KW_CONSTRAINT identifier tableLevelConstraint constraintOptsAlter? ; tableLevelConstraint : pkUkConstraint | checkConstraint ; pkUkConstraint : tableConstraintType pkCols=columnParenthesesList ; checkConstraint : KW_CHECK expression ; createForeignKey : (KW_CONSTRAINT identifier)? KW_FOREIGN KW_KEY columnParenthesesList KW_REFERENCES tableName columnParenthesesList constraintOptsCreate? ; alterForeignKeyWithName : KW_CONSTRAINT identifier KW_FOREIGN KW_KEY columnParenthesesList KW_REFERENCES tableName columnParenthesesList constraintOptsAlter? ; skewedValueElement : skewedColumnValues | skewedColumnValuePairList ; skewedColumnValuePairList : skewedColumnValuePair (COMMA skewedColumnValuePair)* ; skewedColumnValuePair : LPAREN skewedColumnValues RPAREN ; skewedColumnValues : skewedColumnValue (COMMA skewedColumnValue)* ; skewedColumnValue : constant ; skewedValueLocationElement : skewedColumnValue | skewedColumnValuePair ; orderSpecification : KW_ASC | KW_DESC ; nullOrdering : KW_NULLS KW_FIRST | KW_NULLS KW_LAST ; columnNameOrder : identifier orderSpecification? nullOrdering? ; columnNameCommentList : columnNameComment (COMMA columnNameComment)* ; columnNameComment : identifier (KW_COMMENT StringLiteral)? ; columnRefOrder : expression orderSpecification? nullOrdering? ; columnNameType : identifier colType (KW_COMMENT StringLiteral)? ; columnNameTypeOrConstraint : ( tableConstraint ) | ( columnNameTypeConstraint ) ; tableConstraint : ( createForeignKey ) | ( createConstraint ) ; columnNameTypeConstraint : identifier colType columnConstraint? (KW_COMMENT StringLiteral)? ; partitionedColumnNameTypeConstraint : identifier colType? ; columnConstraint : ( foreignKeyConstraint ) | ( colConstraint ) ; foreignKeyConstraint : (KW_CONSTRAINT identifier)? KW_REFERENCES tableName LPAREN columnName RPAREN constraintOptsCreate? ; colConstraint : (KW_CONSTRAINT identifier)? columnConstraintType columnConstraintType* constraintOptsCreate? ; alterColumnConstraint : ( alterForeignKeyConstraint ) | ( alterColConstraint ) ; alterForeignKeyConstraint : (KW_CONSTRAINT identifier)? KW_REFERENCES tableName LPAREN columnName RPAREN constraintOptsAlter? ; alterColConstraint : (KW_CONSTRAINT identifier)? columnConstraintType constraintOptsAlter? ; columnConstraintType : KW_NOT KW_NULL | KW_DEFAULT defaultVal | checkConstraint | tableConstraintType ; defaultVal : constant | functionStatement | castExpression ; tableConstraintType : KW_PRIMARY KW_KEY | KW_UNIQUE ; constraintOptsCreate : enableValidateSpecification relySpecification ; constraintOptsAlter : enableValidateSpecification relySpecification ; columnNameColonType : identifier COLON colType (KW_COMMENT StringLiteral)? ; colType : type_db_col ; colTypeList : colType (COMMA colType)* ; type_db_col : primitiveType | listType | structType | mapType | unionType ; primitiveType : KW_TINYINT | KW_SMALLINT | KW_INT | KW_BIGINT | KW_BOOLEAN | KW_FLOAT | KW_DOUBLE KW_PRECISION? | KW_DATE | KW_DATETIME | KW_TIMESTAMP | KW_TIMESTAMPLOCALTZ | KW_TIMESTAMP KW_WITH KW_LOCAL KW_TIME KW_ZONE | KW_STRING | KW_BINARY | KW_DECIMAL (LPAREN Number (COMMA Number)? RPAREN)? | KW_VARCHAR LPAREN Number RPAREN | KW_CHAR LPAREN Number RPAREN ; listType : KW_ARRAY LESSTHAN type_db_col GREATERTHAN ; structType : KW_STRUCT LESSTHAN columnNameColonTypeList GREATERTHAN ; mapType : KW_MAP LESSTHAN primitiveType COMMA type_db_col GREATERTHAN ; unionType : KW_UNIONTYPE LESSTHAN colTypeList GREATERTHAN ; setOperator : KW_UNION KW_ALL | KW_UNION KW_DISTINCT? | KW_INTERSECT KW_ALL | KW_INTERSECT KW_DISTINCT? | KW_EXCEPT KW_ALL | KW_EXCEPT KW_DISTINCT? | KW_MINUS KW_ALL | KW_MINUS KW_DISTINCT? ; queryStatementExpression : /* Would be nice to do this as a gated semantic perdicate But the predicate gets pushed as a lookahead decision. Calling rule doesnot know about topLevel */ withClause? queryStatementExpressionBody ; queryStatementExpressionBody : fromStatement | regularBody ; withClause : KW_WITH cteStatement (COMMA cteStatement)* ; cteStatement : identifier KW_AS LPAREN queryStatementExpression RPAREN ; fromStatement : (singleFromStatement) (setOperator singleFromStatement)* ; singleFromStatement : fromClause body+ ; /* The valuesClause rule below ensures that the parse tree for "insert into table FOO values (1,2),(3,4)" looks the same as "insert into table FOO select a,b from (values(1,2),(3,4)) as BAR(a,b)" which itself is made to look very similar to the tree for "insert into table FOO select a,b from BAR". */ regularBody : insertClause ( selectStatement | valuesClause) | selectStatement ; atomSelectStatement : selectClause fromClause? whereClause? groupByClause? havingClause? window_clause? | LPAREN selectStatement RPAREN ; selectStatement : atomSelectStatement setOpSelectStatement? orderByClause? clusterByClause? distributeByClause? sortByClause? limitClause? ; setOpSelectStatement : (setOperator atomSelectStatement)+ ; selectStatementWithCTE : withClause? selectStatement ; body : insertClause selectClause lateralView? whereClause? groupByClause? havingClause? window_clause? orderByClause? clusterByClause? distributeByClause? sortByClause? limitClause? | selectClause lateralView? whereClause? groupByClause? havingClause? window_clause? orderByClause? clusterByClause? distributeByClause? sortByClause? limitClause? ; insertClause : KW_INSERT KW_OVERWRITE destination ifNotExists? | KW_INSERT KW_INTO KW_TABLE? tableOrPartition (LPAREN columnNameList RPAREN)? ; destination : KW_LOCAL? KW_DIRECTORY StringLiteral tableRowFormat? tableFileFormat? | KW_TABLE tableOrPartition ; limitClause : KW_LIMIT ((Number COMMA)? Number) | KW_LIMIT Number KW_OFFSET Number ; //DELETE FROM <tableName> WHERE ...; deleteStatement : KW_DELETE KW_FROM tableName whereClause? ; /*SET <columName> = (3 + col2)*/ columnAssignmentClause : tableOrColumn EQUAL expression ; /*SET col1 = 5, col2 = (4 + col4), ...*/ setColumnsClause : KW_SET columnAssignmentClause (COMMA columnAssignmentClause)* ; /* UPDATE <table> SET col1 = val1, col2 = val2... WHERE ... */ updateStatement : KW_UPDATE tableName setColumnsClause whereClause? ; /* BEGIN user defined transaction boundaries; follows SQL 2003 standard exactly except for addition of "setAutoCommitStatement" which is not in the standard doc but is supported by most SQL engines. */ sqlTransactionStatement : startTransactionStatement | commitStatement | rollbackStatement | setAutoCommitStatement ; startTransactionStatement : KW_START KW_TRANSACTION ( transactionMode ( COMMA transactionMode )* )? ; transactionMode : isolationLevel | transactionAccessMode ; transactionAccessMode : KW_READ KW_ONLY | KW_READ KW_WRITE ; isolationLevel : KW_ISOLATION KW_LEVEL levelOfIsolation ; /*READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE may be supported later*/ levelOfIsolation : KW_SNAPSHOT ; commitStatement : KW_COMMIT KW_WORK? ; rollbackStatement : KW_ROLLBACK KW_WORK? ; setAutoCommitStatement : KW_SET KW_AUTOCOMMIT booleanValueTok ; /* END user defined transaction boundaries */ abortTransactionStatement : KW_ABORT KW_TRANSACTIONS Number+ ; /* BEGIN SQL Merge statement */ mergeStatement : KW_MERGE KW_INTO tableName (KW_AS? identifier)? KW_USING joinSourcePart KW_ON expression whenClauses ; /* Allow 0,1 or 2 WHEN MATCHED clauses and 0 or 1 WHEN NOT MATCHED Each WHEN clause may have AND <boolean predicate>. If 2 WHEN MATCHED clauses are present, 1 must be UPDATE the other DELETE and the 1st one must have AND <boolean predicate> */ whenClauses : (whenMatchedAndClause|whenMatchedThenClause)* whenNotMatchedClause? ; whenNotMatchedClause : KW_WHEN KW_NOT KW_MATCHED (KW_AND expression)? KW_THEN KW_INSERT KW_VALUES valueRowConstructor ; whenMatchedAndClause : KW_WHEN KW_MATCHED KW_AND expression KW_THEN updateOrDelete ; whenMatchedThenClause : KW_WHEN KW_MATCHED KW_THEN updateOrDelete ; updateOrDelete : KW_UPDATE setColumnsClause | KW_DELETE ; /* END SQL Merge statement */ killQueryStatement : KW_KILL KW_QUERY StringLiteral+ ;
src/main/agda/inorderF.agda
hablapps/safeoptics
0
16760
<filename>src/main/agda/inorderF.agda {-# OPTIONS --verbose=10 #-} module inorderF where open import Data.Nat open import Data.Vec open import Agda.Builtin.Sigma open import Data.Product open import Data.Fin using (fromℕ) open import trees open import optics open import lemmas inorderTreeF : {A : Set} -> (t : Tree A) -> Vec A (#nodes t) × (Vec A (#nodes t) -> Tree A) inorderTreeF empty = ([] , λ _ -> empty) inorderTreeF {A} (node t₁ x t₂) with inorderTreeF t₁ | inorderTreeF t₂ ... | (g₁ , p₁) | (g₂ , p₂) = (g₁ ++ (x ∷ g₂) , λ v -> node (p₁ (take n₁ v)) (head (drop n₁ v)) (righttree v)) where n = #nodes (node t₁ x t₂) n₁ = #nodes t₁ n₂ = #nodes t₂ righttree : Vec A n -> Tree A righttree v rewrite +-suc n₁ n₂ = p₂ (drop (1 + n₁) v) inorderF : {A : Set} -> TraversalF (Tree A) (Tree A) A A inorderF = record{ extract = (#nodes , inorderTreeF) } module tests where tree1 : Tree ℕ tree1 = node (node empty 1 empty) 3 empty open Traversal
test/Succeed/Issue1182.agda
cruhland/agda
1,989
15786
open import Agda.Builtin.Sigma open import Agda.Builtin.Equality infix 1 Σ-syntax Σ-syntax = Σ syntax Σ-syntax A (λ x → B) = Σ[ x ∈ A ] B pair : Set → Set pair A = Σ[ _ ∈ A ] A diag : Set → Set diag A = Σ[ p ∈ pair A ] fst p ≡ snd p diag-pat : Set → Set diag-pat A = Σ[ p@(x , y) ∈ pair A ] p ≡ (y , x) -- WAS: parse error for p@(x , y) -- WANT: success
programs/oeis/287/A287723.asm
karttu/loda
1
27116
; A287723: Positions of 0 in A287722; complement of A287724. ; 2,4,7,9,11,13,16,18,21,23,25,27,30,32,34,36,39,41,44,46,48,50,53,55,58,60,62,64,67,69,71,73,76,78,81,83,85,87,90,92,94,96,99,101,104,106,108,110,113,115,118,120,122,124,127,129,131,133,136,138,141,143,145,147,150,152,155,157,159,161,164,166,168,170,173,175,178,180,182,184,187,189,191,193,196,198,201,203,205,207,210,212,215,217,219,221,224,226,228,230,233,235,238,240,242,244,247,249,251,253,256,258,261,263,265,267,270,272,275,277,279,281,284,286,288,290,293,295,298,300,302,304,307,309,312,314,316,318,321,323,325,327,330,332,335,337,339,341,344,346,348,350,353,355,358,360,362,364,367,369,372,374,376,378,381,383,385,387,390,392,395,397,399,401,404,406,409,411,413,415,418,420,422,424,427,429,432,434,436,438,441,443,445,447,450,452,455,457,459,461,464,466,469,471,473,475,478,480,482,484,487,489,492,494,496,498,501,503,505,507,510,512,515,517,519,521,524,526,529,531,533,535,538,540,542,544,547,549,552,554,556,558,561,563,566,568,570,572,575,577 mov $2,$0 cal $0,137709 ; Secondary Upper Wythoff Sequence. sub $0,2 mov $1,$0 div $1,2 add $1,2 add $1,$2
src/main/fragment/mos6502-common/vbuaa=vbuaa_band_vbuc1.asm
jbrandwood/kickc
2
10403
and #{c1}
source/nodes/program-nodes-procedure_access_types.ads
reznikmm/gela
0
7412
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Parameter_Specifications; with Program.Elements.Procedure_Access_Types; with Program.Element_Visitors; package Program.Nodes.Procedure_Access_Types is pragma Preelaborate; type Procedure_Access_Type is new Program.Nodes.Node and Program.Elements.Procedure_Access_Types.Procedure_Access_Type and Program.Elements.Procedure_Access_Types.Procedure_Access_Type_Text with private; function Create (Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Null_Token : Program.Lexical_Elements.Lexical_Element_Access; Access_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Protected_Token : Program.Lexical_Elements.Lexical_Element_Access; Procedure_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access) return Procedure_Access_Type; type Implicit_Procedure_Access_Type is new Program.Nodes.Node and Program.Elements.Procedure_Access_Types.Procedure_Access_Type with private; function Create (Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_Not_Null : Boolean := False; Has_Protected : Boolean := False) return Implicit_Procedure_Access_Type with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Procedure_Access_Type is abstract new Program.Nodes.Node and Program.Elements.Procedure_Access_Types.Procedure_Access_Type with record Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; end record; procedure Initialize (Self : in out Base_Procedure_Access_Type'Class); overriding procedure Visit (Self : not null access Base_Procedure_Access_Type; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Parameters (Self : Base_Procedure_Access_Type) return Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; overriding function Is_Procedure_Access_Type (Self : Base_Procedure_Access_Type) return Boolean; overriding function Is_Access_Type (Self : Base_Procedure_Access_Type) return Boolean; overriding function Is_Type_Definition (Self : Base_Procedure_Access_Type) return Boolean; overriding function Is_Definition (Self : Base_Procedure_Access_Type) return Boolean; type Procedure_Access_Type is new Base_Procedure_Access_Type and Program.Elements.Procedure_Access_Types.Procedure_Access_Type_Text with record Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Null_Token : Program.Lexical_Elements.Lexical_Element_Access; Access_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Protected_Token : Program.Lexical_Elements.Lexical_Element_Access; Procedure_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; end record; overriding function To_Procedure_Access_Type_Text (Self : in out Procedure_Access_Type) return Program.Elements.Procedure_Access_Types .Procedure_Access_Type_Text_Access; overriding function Not_Token (Self : Procedure_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Null_Token (Self : Procedure_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Access_Token (Self : Procedure_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Protected_Token (Self : Procedure_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Procedure_Token (Self : Procedure_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Left_Bracket_Token (Self : Procedure_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Right_Bracket_Token (Self : Procedure_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Has_Not_Null (Self : Procedure_Access_Type) return Boolean; overriding function Has_Protected (Self : Procedure_Access_Type) return Boolean; type Implicit_Procedure_Access_Type is new Base_Procedure_Access_Type with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; Has_Not_Null : Boolean; Has_Protected : Boolean; end record; overriding function To_Procedure_Access_Type_Text (Self : in out Implicit_Procedure_Access_Type) return Program.Elements.Procedure_Access_Types .Procedure_Access_Type_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Procedure_Access_Type) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Procedure_Access_Type) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Procedure_Access_Type) return Boolean; overriding function Has_Not_Null (Self : Implicit_Procedure_Access_Type) return Boolean; overriding function Has_Protected (Self : Implicit_Procedure_Access_Type) return Boolean; end Program.Nodes.Procedure_Access_Types;
tests/incbinstr/7.asm
NullMember/customasm
0
4989
#d x #d incbinstr(x) ; error: not found x = "data1.txt"
spiral.asm
gasman/kisskill
2
26592
org 0xc000 texture rept 64 db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 endm map ds 0x0600 sine include "roto_sine.asm" runrt_sprites incbin "assets/runner_sprites.bin" runlt_sprites incbin "assets/runner_left_sprites.bin" runup_sprites incbin "assets/runner_up_sprites.bin" rundn_sprites incbin "assets/runner_down_sprites.bin" org 0xf000 ld hl,0x4000 ld de,0x4001 ld bc,0x17ff ld (hl),l ldir xor a out (254),a ld b,150 frame1_lp halt push bc call trail1 call rota_farcopy call runrt_frame call runlt_frame pop bc djnz frame1_lp ld b,100 frame2a_lp halt push bc call trail2 call rota_farcopy call runrt_frame call runlt_frame call runup_frame call rundn_frame pop bc djnz frame2a_lp ld b,50 frame2b_lp halt push bc call trail2 call rota_farcopy call runup_frame call rundn_frame pop bc djnz frame2b_lp ld hl,0x40e0 ld (runrt_screenpos+1),hl ld hl,0x48bf ld (runlt_screenpos+1),hl xor a ld (runrt_frameno+1),a ld (runlt_frameno+1),a ld b,36 frame3a_lp halt push bc call trail3 call rota_farcopy call runup_frame call rundn_frame call runrt_frame call runlt_frame pop bc djnz frame3a_lp ; turn cyan crossovers into black on cyan ld hl,texture + 64*2 + 14 ld a,0x28 ld de,64-8 ld b,8 crossover1_lp rept 8 ld (hl),a inc l endm add hl,de djnz crossover1_lp ld hl,texture + 64*54 + 42 ld a,0x28 ld de,64-8 ld b,8 crossover2_lp rept 8 ld (hl),a inc l endm add hl,de djnz crossover2_lp ld b,50-36 frame3b_lp halt push bc call trail3 call rota_farcopy call runup_frame call rundn_frame call runrt_frame call runlt_frame pop bc djnz frame3b_lp ld b,14 frame3c_lp halt push bc call trail3 call rota_farcopy call runrt_frame call runlt_frame pop bc djnz frame3c_lp ld b,86 frame3d_lp halt push bc call runrt_frame call runlt_frame pop bc djnz frame3d_lp ld b,100 frame4a_lp halt push bc call trail4 call rota_farcopy call runrt_frame call runlt_frame pop bc djnz frame4a_lp ld b,50-6 frame4b_lp halt push bc call trail4 call rota_farcopy pop bc djnz frame4b_lp zoom_duration equ 40 ld b,zoom_duration frame_lp halt push bc ld a,b add a,b add a,b add a,a add a,255-(zoom_duration*6) ld (mul+1),a ld a,128+(zoom_duration*3) sub b sub b sub b call set_rotation call rotozoom pop bc djnz frame_lp ret mul ld a,0 ld b,h ld c,l ld hl,0 mul_lp add a,a jr nc,mul_noadd add hl,bc mul_noadd or a ret z sra b rr c jp mul_lp set_rotation ld d,high sine ld e,a ld a,(de) sla a ld l,a sbc a,a ld h,a ; use this as sin t call mul ld (row_xstep+1),hl ld a,e add a,64 ld e,a ld a,(de) sla a ld l,a sbc a,a ld h,a ; use this as cos t (1/4 phase ahead of sin t) call mul ld (char_xstep+1),hl ld (row_ystep+1),hl ld a,e add a,64 ld e,a ld a,(de) sla a ld l,a sbc a,a ld h,a ; use this as -sin t (1/2 phase ahead of sin t) call mul ld (char_ystep+1),hl ; x needs to be offset by -16*char_xstep and -12*row_xstep ld hl,(row_xstep+1) add hl,hl add hl,hl ; 4*row_xstep ld e,l ld d,h add hl,hl add hl,de ; 12*row_xstep ex de,hl ld hl,(char_xstep+1) add hl,hl add hl,hl add hl,hl add hl,hl ; 16*char_xstep add hl,de ex de,hl ld hl,0 sbc hl,de ld (x_offset+1),hl ; y needs to be offset by -16*char_ystep and -12*row_ystep ld hl,(row_ystep+1) add hl,hl add hl,hl ; 4*row_ystep ld e,l ld d,h add hl,hl add hl,de ; 12*row_ystep ex de,hl ld hl,(char_ystep+1) add hl,hl add hl,hl add hl,hl add hl,hl ; 16*char_ystep add hl,de ex de,hl ld hl,0 sbc hl,de ld (y_offset+1),hl ret rotozoom y_offset ld hl,0x0000 ; initial texture y char_ystep ld de,0xff80 ; -sin(30deg) - y step for each char ld bc,map exx x_offset ld hl,0x0000 ; initial texture x char_xstep ld de,0x00de ; cos(30deg) - x step for each char ld b,24 ld c,0x3f ; texture width rotozoom_row push de push hl exx push de push hl push bc exx rept 32 ld a,h ; integer portion of texture_x and c ; modulo texture width add hl,de ; advance texture x exx ld (bc),a ; store texture x pos inc c ld a,h ; integer portion of texture_y and 0x3f ; modulo texture height ld (bc),a ; store texture y pos inc c add hl,de ; advance texture y exx endm exx pop bc ld hl,64 add hl,bc ld b,h ld c,l pop hl row_ystep ld de,0x00de ; cos(30deg) - y step for each row add hl,de pop de exx pop hl row_xstep ld de,0x0080 ; sin(30deg) - x step for each row add hl,de pop de dec b jp nz,rotozoom_row halt ld (spback+1),sp ld sp,map ld d,1 ld bc,0x5aff plot_lp rept 3 pop hl ; h = y offset, l = x offset ; need to get from 00yyyyyy 00xxxxxx to 1100yyyy yyxxxxxx ld a,d ; a=1 scf rr h rra rr h rra or l ld l,a ld a,(hl) ld (bc),a dec bc ; b = 0101 1000 or 0101 1001 or 0101 1010 when in range; 0101 0fff if not, so test bit 3 endm bit 3,b jp nz,plot_lp spback ld sp,0 ret rota_farcopy ld hl,texture + 40*64 ld de,0x5800 call rota_far_half ld hl,texture rota_far_half ld b,12 rota_farlp push bc push hl ld bc,32 add hl,bc rept 16 ldi inc hl endm pop hl rept 16 ldi inc hl endm ld bc,128-32 add hl,bc pop bc djnz rota_farlp ret trail1 trail1pos ld a,32 dec a and 0x3f ld (trail1pos+1),a push af ld hl,texture+128*7 or l ld l,a call trail1_col pop af cpl and 0x3f ld hl,texture+128*21 or l ld l,a call trail1_col ret trail1_col ld b,8 ld de,64 ld a,0x30 ; yellow paper trail1_lp ld (hl),a add hl,de djnz trail1_lp ret trail2 trail2pos ld a,39 inc a and 0x3f ld (trail2pos+1),a ld b,a sub 14 cp 8 ret c push bc ld h,b ld l,0 srl h rr l srl h rr l ld de,texture+14 add hl,de call trail2_row pop af cpl and 0x3f ld h,a ld l,0 srl h rr l srl h rr l ld de,texture+42 add hl,de call trail2_row ret trail2_row ld b,8 ld a,0x18 ; magenta paper trail2_lp ld (hl),a inc l djnz trail2_lp ret trail3 trail3pos ld a,32 dec a and 0x3f ld (trail3pos+1),a ld b,a sub 42 cp 8 ret c ld a,b sub 14 cp 8 jp c,trail3_alt ld a,b push af ld hl,texture+128*1 or l ld l,a call trail3_col pop af cpl and 0x3f ld hl,texture+128*27 or l ld l,a call trail3_col ret trail3_alt ld a,b push af ld hl,texture+128*1 or l ld l,a call trail3_altcol pop af cpl and 0x3f ld hl,texture+128*27 or l ld l,a call trail3_altcol ret trail3_col ld b,8 ld de,64 ld a,0x28 ; cyan paper trail3_lp ld (hl),a add hl,de djnz trail3_lp ret trail3_altcol ld b,8 ld de,64 ld a,0x28+5 ; cyan paper/cyan ink trail3_altlp ld (hl),a add hl,de djnz trail3_altlp ret trail4 trail4pos ld a,39 inc a and 0x3f ld (trail4pos+1),a ld b,a sub 14 cp 8 ret c ld a,b sub 54 cp 8 ret c push bc ld h,b ld l,0 srl h rr l srl h rr l ld de,texture+2 add hl,de call trail4_row pop af cpl and 0x3f ld h,a ld l,0 srl h rr l srl h rr l ld de,texture+54 add hl,de call trail4_row ret trail4_row ld b,8 ld a,0x12 ; red paper trail4_lp ld (hl),a inc l djnz trail4_lp ret ; == run right == runrt_frame ld a,3 dec a jr nz,runrt_skipframe call runrt_advance call runrt_draw_currframe ld a,3 runrt_skipframe ld (runrt_frame+1),a ret runrt_advance ld a,(runrt_frameno+1) inc a cp 12 jr nz,runrt_nowrap xor a runrt_nowrap ld (runrt_frameno+1),a jr z,runrt_nextchar cp 3 jr z,runrt_nextchar cp 6 jr z,runrt_nextchar cp 9 jr z,runrt_nextchar ret runrt_nextchar ld a,(runrt_screenpos+1) inc a ld (runrt_screenpos+1),a ret runrt_draw_currframe runrt_frameno ld b,0 runrt_screenpos ld de,0x4020 ; enter with b=frame no, de=screen pos runrt_draw_frame ld h,b ld l,0 srl h rr l ld bc,runrt_sprites add hl,bc ld a,e and 0x1f ; left clipping positions jp z,run_lclip_1 dec e dec a jp z,run_lclip_2 dec e dec a jp z,run_lclip_3 dec e add a,232 ret c inc a jp z,run_rclip_1 inc a jp z,run_rclip_2 inc a jp z,run_rclip_3 inc a jp run_noclip ; == run left == runlt_frame ld a,3 dec a jr nz,runlt_skipframe call runlt_advance call runlt_draw_currframe ld a,3 runlt_skipframe ld (runlt_frame+1),a ret runlt_advance ld a,(runlt_frameno+1) inc a cp 12 jr nz,runlt_nowrap xor a runlt_nowrap ld (runlt_frameno+1),a jr z,runlt_nextchar cp 3 jr z,runlt_nextchar cp 6 jr z,runlt_nextchar cp 9 jr z,runlt_nextchar ret runlt_nextchar ld a,(runlt_screenpos+1) dec a ld (runlt_screenpos+1),a ret runlt_draw_currframe runlt_frameno ld b,0 runlt_screenpos ld de,0x507f ; enter with b=frame no, de=screen pos runlt_draw_frame ld h,b ld l,0 srl h rr l ld bc,runlt_sprites add hl,bc ld a,e and 0x1f add a,0xe1 ; right clipping positions jp z,run_rclip_1 inc a jp z,run_rclip_2 inc a jp z,run_rclip_3 add a,0x14 jp c,run_noclip ; left clipping positions inc e inc a jp z,run_lclip_3 inc e inc a jp z,run_lclip_2 inc e inc a jp z,run_lclip_1 ret ; == runner sprite routines - enter with hl=sprite, de=screen == run_noclip ld b,32 run_heightb run_rowlp_w4 push de ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc hl pop de call upde2 djnz run_rowlp_w4 ret upde2 inc d ld a,d and 7 ret nz ld a,e add a,32 ld e,a ret c ld a,d sub 8 ld d,a ret ; left clip to 3 chars run_lclip_3 ld b,32 run_lclip3_lp push de inc l ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc hl pop de call upde2 djnz run_lclip3_lp ret ; right clip to 3 chars run_rclip_3 ld b,32 run_rclip3_lp push de ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc hl pop de call upde2 djnz run_rclip3_lp ret ; left clip to 2 chars run_lclip_2 ld b,32 run_lclip2_lp inc l inc l ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc hl dec e call upde2 djnz run_lclip2_lp ret ; right clip to 2 chars run_rclip_2 ld b,32 run_rclip2_lp ld a,(hl) ld (de),a inc l inc e ld a,(hl) ld (de),a inc l inc l inc hl dec e call upde2 djnz run_rclip2_lp ret ; left clip to 1 char run_lclip_1 ld b,32 run_lclip1_lp inc l inc l inc l ld a,(hl) ld (de),a inc hl call upde2 djnz run_lclip1_lp ret ; right clip to 1 char run_rclip_1 ld b,32 run_rclip1_lp ld a,(hl) ld (de),a inc l inc l inc l inc hl call upde2 djnz run_rclip1_lp ret ; == run up == runup_frame ld a,3 dec a jr nz,runup_skipframe call runup_advance call runup_draw_currframe ld a,3 runup_skipframe ld (runup_frame+1),a ret runup_advance ld a,(runup_frameno+1) inc a cp 12 jr nz,runup_nowrap xor a runup_nowrap ld (runup_frameno+1),a jr z,runup_nextchar cp 3 jr z,runup_nextchar cp 6 jr z,runup_nextchar cp 9 jr z,runup_nextchar ret runup_nextchar ld a,(runup_ypos+1) dec a ld (runup_ypos+1),a ret runup_draw_currframe runup_ypos ld e,23 runup_frameno ld h,0 ; mul by 128 and add runup_sprites to get sprite address in hl ld l,0 srl h rr l ld bc,runup_sprites add hl,bc ld b,0x05 ; xpos ld a,e sub 2 ret c jp z,run_tclip_1 dec a jp z,run_tclip_2 dec a jp z,run_tclip_3 sub 17 jp c,runv_noclip jp z,run_bclip_3 dec a jp z,run_bclip_2 jp run_bclip_1 ; == run down == rundn_frame ld a,3 dec a jr nz,rundn_skipframe call rundn_advance call rundn_draw_currframe ld a,3 rundn_skipframe ld (rundn_frame+1),a ret rundn_advance ld a,(rundn_frameno+1) inc a cp 12 jr nz,rundn_nowrap xor a rundn_nowrap ld (rundn_frameno+1),a jr z,rundn_nextchar cp 3 jr z,rundn_nextchar cp 6 jr z,rundn_nextchar cp 9 jr z,rundn_nextchar ret rundn_nextchar ld a,(rundn_ypos+1) inc a ld (rundn_ypos+1),a ret rundn_draw_currframe rundn_ypos ld e,253 rundn_frameno ld h,0 ; mul by 128 and add runup_sprites to get sprite address in hl ld l,0 srl h rr l ld bc,rundn_sprites add hl,bc ld b,23 ; xpos ld a,e inc a jp z,run_tclip_3 inc a jp z,run_tclip_2 inc a jp z,run_tclip_1 sub 19 jp c,runv_noclip jp z,run_bclip_3 dec a jp z,run_bclip_2 dec a jp z,run_bclip_1 ret runv_noclip call runup_conv_ypos ld b,32 jp run_heightb run_tclip_1 inc e inc e inc e call runup_conv_ypos ld bc,96 add hl,bc ld b,8 jp run_heightb run_tclip_2 inc e inc e call runup_conv_ypos ld bc,64 add hl,bc ld b,16 jp run_heightb run_tclip_3 inc e call runup_conv_ypos ld bc,32 add hl,bc ld b,24 jp run_heightb run_bclip_1 call runup_conv_ypos ld b,8 jp run_heightb run_bclip_2 call runup_conv_ypos ld b,16 jp run_heightb run_bclip_3 call runup_conv_ypos ld b,24 jp run_heightb runup_conv_ypos push hl ld l,e ld h,0 add hl,hl ld de,ytable add hl,de ld a,(hl) or b ld e,a inc hl ld d,(hl) pop hl ret ytable dw 0x4000, 0x4020, 0x4040, 0x4060, 0x4080, 0x40a0, 0x40c0, 0x40e0 dw 0x4800, 0x4820, 0x4840, 0x4860, 0x4880, 0x48a0, 0x48c0, 0x48e0 dw 0x5000, 0x5020, 0x5040, 0x5060, 0x5080, 0x50a0, 0x50c0, 0x50e0
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_Validate_fastcall.asm
jpoikela/z88dk
640
26771
; void sp1_Validate(struct sp1_Rect *r) SECTION code_clib SECTION code_temp_sp1 PUBLIC _sp1_Validate_fastcall EXTERN asm_sp1_Validate _sp1_Validate_fastcall: ld d,(hl) inc hl ld e,(hl) inc hl ld b,(hl) inc hl ld c,(hl) jp asm_sp1_Validate
src/main/antlr/SVM.g4
Daniele-Tentoni/Base-Antlr
0
6959
grammar SVM; @header { package lcmc; import java.util.HashMap; } @lexer::members { int lexicalErrors=0; } @parser::members { int[] code = new int[ExecuteViMa.CODE_SIZE]; private int i = 0; private HashMap<String,Integer> labelDef = new HashMap<String,Integer>(); // Contiene le definizioni di etichette. private HashMap<Integer,String> labelRef = new HashMap<Integer,String>(); // Contiene i riferimenti ai buchi lasciati vuoti. // Non gestiamo l'errore nel caso in cui salto ad un etichetta che non viene mai generata. } /*------------------------------------------------------------------ * PARSER RULES *------------------------------------------------------------------*/ assembly: instruction* EOF { // Riempio i vari buchi con la loro definizione. for(Integer j: labelRef.keySet()) { // Per ogni riferimento mancante code[j] = labelDef.get(labelRef.get(j)); // Inserisco l'integer corrispondente } }; instruction: PUSH n = INTEGER { // Abbiamo dichiarato una variabile relativa a INTEGER code[i++] = PUSH; code[i++] = Integer.parseInt($n.text); // Ottengo il lessema che ha generato il token } //push INTEGER on the stack | PUSH l = LABEL { code[i++] = PUSH; labelRef.put(i++, $l.text); } //push the location address pointed by LABEL on the stack | POP { code[i++] = POP; } //pop the top of the stack | ADD { code[i++] = ADD; } //replace the two values on top of the stack with their sum | SUB { code[i++] = SUB; } //pop the two values v1 and v2 (respectively) and push v2-v1 | MULT { code[i++] = MULT; } //replace the two values on top of the stack with their product | DIV { code[i++] = DIV; } //pop the two values v1 and v2 (respectively) and push v2/v1 | STOREW { code[i++] = STOREW; } ///pop two values: // the second one is written at the memory address pointed by the first one | LOADW { code[i++] = LOADW; } ///read the content of the memory cell pointed by the top of the stack // and replace the top of the stack with such value | l = LABEL COL { labelDef.put($l.text, i); } //LABEL points at the location of the subsequent instruction | BRANCH l = LABEL { code[i++] = BRANCH; labelRef.put(i++, $l.text); } //jump at the instruction pointed by LABEL | BRANCHEQ l = LABEL { code[i++] = BRANCHEQ; labelRef.put(i++, $l.text); } //pop two values and jump if they are equal | BRANCHLESSEQ l = LABEL { code[i++] = BRANCHLESSEQ; labelRef.put(i++, $l.text); } //pop two values and jump if the second one is less or equal to the first one | JS { code[i++] = JS; } ///pop one value from the stack: // copy the instruction pointer in the RA register and jump to the popped value | LOADRA { code[i++] = LOADRA; } ///push in the stack the content of the RA register | STORERA { code[i++] = STORERA; } ///pop the top of the stack and copy it in the RA register | LOADTM { code[i++] = LOADTM; } //push in the stack the content of the TM register | STORETM { code[i++] = STORETM; } //pop the top of the stack and copy it in the TM register | LOADFP { code[i++] = LOADFP; } ///push in the stack the content of the FP register | STOREFP { code[i++] = STOREFP; } ///pop the top of the stack and copy it in the FP register | COPYFP { code[i++] = COPYFP; } ///copy in the FP register the currest stack pointer | LOADHP { code[i++] = LOADHP; } ///push in the stack the content of the HP register | STOREHP { code[i++] = STOREHP; } ///pop the top of the stack and copy it in the HP register | PRINT { code[i++] = PRINT; } //visualize the top of the stack without removing it | HALT { code[i++] = HALT; } //terminate the execution ; /*------------------------------------------------------------------ * LEXER RULES *------------------------------------------------------------------*/ PUSH : 'push' ; POP : 'pop' ; ADD : 'add' ; SUB : 'sub' ; MULT : 'mult' ; DIV : 'div' ; STOREW : 'sw' ; LOADW : 'lw' ; BRANCH : 'b' ; BRANCHEQ : 'beq' ; BRANCHLESSEQ: 'bleq' ; JS : 'js' ; LOADRA : 'lra' ; STORERA : 'sra' ; LOADTM : 'ltm' ; STORETM : 'stm' ; LOADFP : 'lfp' ; STOREFP : 'sfp' ; COPYFP : 'cfp' ; LOADHP : 'lhp' ; STOREHP : 'shp' ; PRINT : 'print' ; HALT : 'halt' ; COL : ':' ; LABEL : ('a'..'z'|'A'..'Z')('a'..'z' | 'A'..'Z' | '0'..'9')* ; INTEGER : '0' | ('-')?(('1'..'9')('0'..'9')*) ; WHITESP : (' '|'\t'|'\n'|'\r')+ -> channel(HIDDEN) ; ERR : . { System.out.println("Invalid char: "+ getText()); lexicalErrors++; } -> channel(HIDDEN);
tools/scitools/conf/understand/ada/ada95/a-uncdea.ads
brucegua/moocos
1
23750
<reponame>brucegua/moocos<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- A D A . U N C H E C K E D _ D E A L L O C A T I O N -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -- -- -- ------------------------------------------------------------------------------ generic type Object (<>) is limited private; type Name is access Object; procedure Ada.Unchecked_Deallocation (X : in out Name); pragma Preelaborate (Unchecked_Deallocation); pragma Import (Intrinsic, Unchecked_Deallocation);
examples/print.asm
daniel3735928559/jsavr
5
94260
<filename>examples/print.asm rjmp start output_thing: push r31 ldi r31,255 out 17,r31 ldi r31,0 out 18,r31 pop r31 ori r31,128 out 18,r31 ret output_char: push r31 ldi r31,0 rcall output_thing ldi r31,3 rcall output_thing mov r31,r16 rcall output_thing ldi r31,27 rcall output_thing ldi r31,'C' rcall output_thing pop r31 ret start: .string(hello) "Hello World!" ldi r29,hi8(hello) ldi r28,lo8(hello) loop_start: ld r16,Y+ cpi r16,0 breq end_loop rcall output_char rjmp loop_start end_loop: halt