@@ -148,7 +148,7 @@ function default_equals(a, b) {
148
148
* @returns {import('./types.js').SourceSignal<V> }
149
149
*/
150
150
function create_source_signal ( flags , value ) {
151
- const source = {
151
+ return {
152
152
// consumers
153
153
c : null ,
154
154
// equals
@@ -160,7 +160,6 @@ function create_source_signal(flags, value) {
160
160
// context: We can remove this if we get rid of beforeUpdate/afterUpdate
161
161
x : null
162
162
} ;
163
- return source ;
164
163
}
165
164
166
165
/**
@@ -1061,7 +1060,7 @@ export function derived(init, equals) {
1061
1060
const is_unowned = current_effect === null ;
1062
1061
const flags = is_unowned ? DERIVED | UNOWNED : DERIVED ;
1063
1062
const signal = /** @type {import('./types.js').ComputationSignal<V> } */ (
1064
- create_computation_signal ( flags | CLEAN , UNINITIALIZED , current_block )
1063
+ /* @__NOINLINE__ */ create_computation_signal ( flags | CLEAN , UNINITIALIZED , current_block )
1065
1064
) ;
1066
1065
signal . i = init ;
1067
1066
signal . x = current_component_context ;
@@ -1080,7 +1079,7 @@ export function derived(init, equals) {
1080
1079
*/
1081
1080
/*#__NO_SIDE_EFFECTS__*/
1082
1081
export function source ( initial_value , equals ) {
1083
- const source = create_source_signal ( SOURCE | CLEAN , initial_value ) ;
1082
+ const source = /* @__NOINLINE__ */ create_source_signal ( SOURCE | CLEAN , initial_value ) ;
1084
1083
source . x = current_component_context ;
1085
1084
source . e = get_equals_method ( equals ) ;
1086
1085
return source ;
@@ -1128,7 +1127,7 @@ export function untrack(fn) {
1128
1127
* @returns {import('./types.js').EffectSignal }
1129
1128
*/
1130
1129
function internal_create_effect ( type , init , sync , block , schedule ) {
1131
- const signal = create_computation_signal ( type | DIRTY , null , block ) ;
1130
+ const signal = /* @__NOINLINE__ */ create_computation_signal ( type | DIRTY , null , block ) ;
1132
1131
signal . i = init ;
1133
1132
signal . x = current_component_context ;
1134
1133
if ( schedule ) {
@@ -1679,7 +1678,7 @@ export function onDestroy(fn) {
1679
1678
* @returns {void }
1680
1679
*/
1681
1680
export function push ( props , runes = false , immutable = false ) {
1682
- const context_stack_item = create_component_context ( props ) ;
1681
+ const context_stack_item = /* @__NOINLINE__ */ create_component_context ( props ) ;
1683
1682
context_stack_item . r = runes ;
1684
1683
context_stack_item . i = immutable ;
1685
1684
current_component_context = context_stack_item ;
0 commit comments