Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1029049 // dm_call_resolved - call function in an already resolved module

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2563L) is out of date.

1  
sO mapMethodLike dm_call_resolved(O mod, S method, O... args) {
2  
  if (mod == null) null;
3  
  ifdef dm_call_resolved_timing
4  
    long nanos = nanoTime();
5  
  endifdef
6  
  temp dm_enter_resolved(mod);
7  
  ifdef dm_call_resolved_timing
8  
    long nanos2 = nanoTime()-nanos;
9  
  endifdef
10  
  O o = call_withVarargs(mod, method, args);
11  
  ifdef dm_call_resolved_timing
12  
    long nanos3 = nanoTime()-nanos;
13  
    print("nanos in dm_enter/call: "+ nanos2 + "/" + nanos3);
14  
  endifdef
15  
  ret o;
16  
}

Author comment

Began life as a copy of #1020139

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029049
Snippet name: dm_call_resolved - call function in an already resolved module
Eternal ID of this version: #1029049/7
Text MD5: 2237ca834b459c010aee91aa50f08034
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-17 18:36:15
Source code size: 482 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 210
Version history: 6 change(s)
Referenced in: [show references]