Support inlining internal functions to friend modules in JS BE

There's one exception: if an inline internal function calls
private function, this will fail at run time.
This commit is contained in:
Alexey Andreev
2017-07-25 13:59:20 +03:00
parent 41140d00b1
commit 918ce78c5a
8 changed files with 42 additions and 19 deletions
@@ -9,7 +9,7 @@ package foo
// CHECK_HAS_INLINE_METADATA: apply
// CHECK_HAS_INLINE_METADATA: applyL_h43q6c$
// CHECK_HAS_INLINE_METADATA: applyM_h43q6c$
// CHECK_HAS_NO_INLINE_METADATA: applyN_h43q6c$
// CHECK_HAS_INLINE_METADATA: applyN_h43q6c$
// CHECK_HAS_NO_INLINE_METADATA: applyO_h43q6c$
inline