Filename | /usr/local/lib/perl/5.14.2/Class/MOP/Instance.pm |
Statements | Executed 8207 statements in 13.9ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
105 | 1 | 1 | 2.98ms | 5.10ms | BUILDARGS | Class::MOP::Instance::
118 | 1 | 1 | 1.68ms | 1.88ms | create_instance | Class::MOP::Instance::
499 | 1 | 1 | 1.68ms | 2.77ms | inline_set_slot_value | Class::MOP::Instance::
820 | 1 | 1 | 1.49ms | 1.49ms | set_slot_value | Class::MOP::Instance::
659 | 5 | 1 | 1.48ms | 1.48ms | inline_slot_access | Class::MOP::Instance::
105 | 1 | 1 | 912µs | 7.02ms | new | Class::MOP::Instance::
135 | 1 | 1 | 404µs | 727µs | inline_get_slot_value | Class::MOP::Instance::
47 | 1 | 1 | 293µs | 293µs | _new | Class::MOP::Instance::
158 | 2 | 2 | 123µs | 123µs | is_inlinable | Class::MOP::Instance::
105 | 1 | 1 | 82µs | 82µs | is_dependent_on_superclasses | Class::MOP::Instance::
21 | 1 | 1 | 74µs | 126µs | inline_is_slot_initialized | Class::MOP::Instance::
35 | 1 | 1 | 56µs | 56µs | inline_create_instance | Class::MOP::Instance::
12 | 1 | 1 | 22µs | 22µs | is_slot_initialized | Class::MOP::Instance::
12 | 1 | 1 | 19µs | 19µs | get_slot_value | Class::MOP::Instance::
2 | 1 | 1 | 10µs | 15µs | inline_deinitialize_slot | Class::MOP::Instance::
2 | 1 | 1 | 9µs | 14µs | inline_weaken_slot_value | Class::MOP::Instance::
2 | 1 | 1 | 8µs | 10µs | weaken_slot_value | Class::MOP::Instance::
1 | 1 | 1 | 8µs | 8µs | BEGIN@3 | Class::MOP::Instance::
1 | 1 | 1 | 7µs | 10µs | BEGIN@10 | Class::MOP::Instance::
1 | 1 | 1 | 6µs | 45µs | BEGIN@13 | Class::MOP::Instance::
1 | 1 | 1 | 6µs | 47µs | BEGIN@15 | Class::MOP::Instance::
1 | 1 | 1 | 6µs | 11µs | BEGIN@11 | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _clear_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _get_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _has_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _inline_clear_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _inline_get_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _inline_set_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | _set_mop_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | clone_instance | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | deinitialize_all_slots | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | deinitialize_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | get_all_attributes | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | get_all_slots | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | initialize_all_slots | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | initialize_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | inline_get_is_lvalue | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | inline_initialize_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | inline_rebless_instance_structure | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | inline_strengthen_slot_value | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | is_valid_slot | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | rebless_instance_structure | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | slot_value_is_weak | Class::MOP::Instance::
0 | 0 | 0 | 0s | 0s | strengthen_slot_value | Class::MOP::Instance::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Class::MOP::Instance; | ||||
3 | # spent 8µs within Class::MOP::Instance::BEGIN@3 which was called:
# once (8µs+0s) by Class::MOP::Class::BEGIN@13 at line 5 | ||||
4 | 1 | 5µs | $Class::MOP::Instance::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 28µs | 1 | 8µs | } # spent 8µs making 1 call to Class::MOP::Instance::BEGIN@3 |
6 | { | ||||
7 | 2 | 1µs | $Class::MOP::Instance::VERSION = '2.1005'; | ||
8 | } | ||||
9 | |||||
10 | 2 | 20µs | 2 | 13µs | # spent 10µs (7+3) within Class::MOP::Instance::BEGIN@10 which was called:
# once (7µs+3µs) by Class::MOP::Class::BEGIN@13 at line 10 # spent 10µs making 1 call to Class::MOP::Instance::BEGIN@10
# spent 3µs making 1 call to strict::import |
11 | 2 | 23µs | 2 | 15µs | # spent 11µs (6+5) within Class::MOP::Instance::BEGIN@11 which was called:
# once (6µs+5µs) by Class::MOP::Class::BEGIN@13 at line 11 # spent 11µs making 1 call to Class::MOP::Instance::BEGIN@11
# spent 5µs making 1 call to warnings::import |
12 | |||||
13 | 2 | 25µs | 2 | 84µs | # spent 45µs (6+39) within Class::MOP::Instance::BEGIN@13 which was called:
# once (6µs+39µs) by Class::MOP::Class::BEGIN@13 at line 13 # spent 45µs making 1 call to Class::MOP::Instance::BEGIN@13
# spent 39µs making 1 call to Exporter::import |
14 | |||||
15 | 2 | 1.18ms | 2 | 87µs | # spent 47µs (6+40) within Class::MOP::Instance::BEGIN@15 which was called:
# once (6µs+40µs) by Class::MOP::Class::BEGIN@13 at line 15 # spent 47µs making 1 call to Class::MOP::Instance::BEGIN@15
# spent 40µs making 1 call to base::import |
16 | |||||
17 | # make this not a valid method name, to avoid (most) attribute conflicts | ||||
18 | 1 | 500ns | my $RESERVED_MOP_SLOT = '<<MOP>>'; | ||
19 | |||||
20 | # spent 5.10ms (2.98+2.12) within Class::MOP::Instance::BUILDARGS which was called 105 times, avg 49µs/call:
# 105 times (2.98ms+2.12ms) by Class::MOP::Instance::new at line 41, avg 49µs/call | ||||
21 | 630 | 1.72ms | my ($class, @args) = @_; | ||
22 | |||||
23 | 105 | 68µs | if ( @args == 1 ) { # spent 68µs making 105 calls to Scalar::Util::blessed, avg 652ns/call | ||
24 | unshift @args, "associated_metaclass"; | ||||
25 | } elsif ( @args >= 2 && blessed($args[0]) && $args[0]->isa("Class::MOP::Class") ) { | ||||
26 | # compat mode | ||||
27 | my ( $meta, @attrs ) = @args; | ||||
28 | @args = ( associated_metaclass => $meta, attributes => \@attrs ); | ||||
29 | } | ||||
30 | |||||
31 | my %options = @args; | ||||
32 | # FIXME lazy_build | ||||
33 | 918 | 727µs | 813 | 2.06ms | $options{slots} ||= [ map { $_->slots } @{ $options{attributes} || [] } ]; # spent 2.06ms making 813 calls to Class::MOP::Attribute::slots, avg 3µs/call |
34 | 918 | 234µs | $options{slot_hash} = { map { $_ => undef } @{ $options{slots} } }; # FIXME lazy_build | ||
35 | |||||
36 | return \%options; | ||||
37 | } | ||||
38 | |||||
39 | # spent 7.02ms (912µs+6.11) within Class::MOP::Instance::new which was called 105 times, avg 67µs/call:
# 105 times (912µs+6.11ms) by Class::MOP::Class::_create_meta_instance at line 726 of Class/MOP/Class.pm, avg 67µs/call | ||||
40 | 525 | 922µs | my $class = shift; | ||
41 | 105 | 5.10ms | my $options = $class->BUILDARGS(@_); # spent 5.10ms making 105 calls to Class::MOP::Instance::BUILDARGS, avg 49µs/call | ||
42 | |||||
43 | # FIXME replace with a proper constructor | ||||
44 | 105 | 903µs | my $instance = $class->_new(%$options); # spent 610µs making 58 calls to Moose::Meta::Instance::_new, avg 11µs/call
# spent 293µs making 47 calls to Class::MOP::Instance::_new, avg 6µs/call | ||
45 | |||||
46 | # FIXME weak_ref => 1, | ||||
47 | 105 | 107µs | weaken($instance->{'associated_metaclass'}); # spent 107µs making 105 calls to Scalar::Util::weaken, avg 1µs/call | ||
48 | |||||
49 | return $instance; | ||||
50 | } | ||||
51 | |||||
52 | # spent 293µs within Class::MOP::Instance::_new which was called 47 times, avg 6µs/call:
# 47 times (293µs+0s) by Class::MOP::Instance::new at line 44, avg 6µs/call | ||||
53 | 188 | 327µs | my $class = shift; | ||
54 | return Class::MOP::Class->initialize($class)->new_object(@_) | ||||
55 | if $class ne __PACKAGE__; | ||||
56 | |||||
57 | my $params = @_ == 1 ? $_[0] : {@_}; | ||||
58 | return bless { | ||||
59 | # NOTE: | ||||
60 | # I am not sure that it makes | ||||
61 | # sense to pass in the meta | ||||
62 | # The ideal would be to just | ||||
63 | # pass in the class name, but | ||||
64 | # that is placing too much of | ||||
65 | # an assumption on bless(), | ||||
66 | # which is *probably* a safe | ||||
67 | # assumption,.. but you can | ||||
68 | # never tell <:) | ||||
69 | 'associated_metaclass' => $params->{associated_metaclass}, | ||||
70 | 'attributes' => $params->{attributes}, | ||||
71 | 'slots' => $params->{slots}, | ||||
72 | 'slot_hash' => $params->{slot_hash}, | ||||
73 | } => $class; | ||||
74 | } | ||||
75 | |||||
76 | 118 | 301µs | 18 | 11µs | sub _class_name { $_[0]->{_class_name} ||= $_[0]->associated_metaclass->name } # spent 6µs making 9 calls to Class::MOP::Instance::associated_metaclass, avg 700ns/call
# spent 5µs making 9 calls to Class::MOP::Package::name, avg 522ns/call |
77 | |||||
78 | # spent 1.88ms (1.68+197µs) within Class::MOP::Instance::create_instance which was called 118 times, avg 16µs/call:
# 118 times (1.68ms+197µs) by Class::MOP::Class::_construct_instance at line 522 of Class/MOP/Class.pm, avg 16µs/call | ||||
79 | 236 | 1.66ms | my $self = shift; | ||
80 | 118 | 197µs | bless {}, $self->_class_name; # spent 197µs making 118 calls to Class::MOP::Instance::_class_name, avg 2µs/call | ||
81 | } | ||||
82 | |||||
83 | sub clone_instance { | ||||
84 | my ($self, $instance) = @_; | ||||
85 | |||||
86 | my $clone = $self->create_instance; | ||||
87 | for my $attr ($self->get_all_attributes) { | ||||
88 | next unless $attr->has_value($instance); | ||||
89 | for my $slot ($attr->slots) { | ||||
90 | my $val = $self->get_slot_value($instance, $slot); | ||||
91 | $self->set_slot_value($clone, $slot, $val); | ||||
92 | $self->weaken_slot_value($clone, $slot) | ||||
93 | if $self->slot_value_is_weak($instance, $slot); | ||||
94 | } | ||||
95 | } | ||||
96 | |||||
97 | $self->_set_mop_slot($clone, $self->_get_mop_slot($instance)) | ||||
98 | if $self->_has_mop_slot($instance); | ||||
99 | |||||
100 | return $clone; | ||||
101 | } | ||||
102 | |||||
103 | # operations on meta instance | ||||
104 | |||||
105 | sub get_all_slots { | ||||
106 | my $self = shift; | ||||
107 | return @{$self->{'slots'}}; | ||||
108 | } | ||||
109 | |||||
110 | sub get_all_attributes { | ||||
111 | my $self = shift; | ||||
112 | return @{$self->{attributes}}; | ||||
113 | } | ||||
114 | |||||
115 | sub is_valid_slot { | ||||
116 | my ($self, $slot_name) = @_; | ||||
117 | exists $self->{'slot_hash'}->{$slot_name}; | ||||
118 | } | ||||
119 | |||||
120 | # operations on created instances | ||||
121 | |||||
122 | # spent 19µs within Class::MOP::Instance::get_slot_value which was called 12 times, avg 2µs/call:
# 12 times (19µs+0s) by Class::MOP::Attribute::get_raw_value at line 298 of Class/MOP/Attribute.pm, avg 2µs/call | ||||
123 | 24 | 28µs | my ($self, $instance, $slot_name) = @_; | ||
124 | $instance->{$slot_name}; | ||||
125 | } | ||||
126 | |||||
127 | # spent 1.49ms within Class::MOP::Instance::set_slot_value which was called 820 times, avg 2µs/call:
# 820 times (1.49ms+0s) by Class::MOP::Attribute::_set_initial_slot_value at line 150 of Class/MOP/Attribute.pm, avg 2µs/call | ||||
128 | 1640 | 2.12ms | my ($self, $instance, $slot_name, $value) = @_; | ||
129 | $instance->{$slot_name} = $value; | ||||
130 | } | ||||
131 | |||||
132 | sub initialize_slot { | ||||
133 | my ($self, $instance, $slot_name) = @_; | ||||
134 | return; | ||||
135 | } | ||||
136 | |||||
137 | sub deinitialize_slot { | ||||
138 | my ( $self, $instance, $slot_name ) = @_; | ||||
139 | delete $instance->{$slot_name}; | ||||
140 | } | ||||
141 | |||||
142 | sub initialize_all_slots { | ||||
143 | my ($self, $instance) = @_; | ||||
144 | foreach my $slot_name ($self->get_all_slots) { | ||||
145 | $self->initialize_slot($instance, $slot_name); | ||||
146 | } | ||||
147 | } | ||||
148 | |||||
149 | sub deinitialize_all_slots { | ||||
150 | my ($self, $instance) = @_; | ||||
151 | foreach my $slot_name ($self->get_all_slots) { | ||||
152 | $self->deinitialize_slot($instance, $slot_name); | ||||
153 | } | ||||
154 | } | ||||
155 | |||||
156 | # spent 22µs within Class::MOP::Instance::is_slot_initialized which was called 12 times, avg 2µs/call:
# 12 times (22µs+0s) by Class::MOP::Attribute::has_value at line 319 of Class/MOP/Attribute.pm, avg 2µs/call | ||||
157 | 24 | 34µs | my ($self, $instance, $slot_name, $value) = @_; | ||
158 | exists $instance->{$slot_name}; | ||||
159 | } | ||||
160 | |||||
161 | # spent 10µs (8+2) within Class::MOP::Instance::weaken_slot_value which was called 2 times, avg 5µs/call:
# 2 times (8µs+2µs) by Moose::Meta::Attribute::_weaken_value at line 820 of Moose/Meta/Attribute.pm, avg 5µs/call | ||||
162 | 4 | 14µs | my ($self, $instance, $slot_name) = @_; | ||
163 | 2 | 2µs | weaken $instance->{$slot_name}; # spent 2µs making 2 calls to Scalar::Util::weaken, avg 1µs/call | ||
164 | } | ||||
165 | |||||
166 | sub slot_value_is_weak { | ||||
167 | my ($self, $instance, $slot_name) = @_; | ||||
168 | isweak $instance->{$slot_name}; | ||||
169 | } | ||||
170 | |||||
171 | sub strengthen_slot_value { | ||||
172 | my ($self, $instance, $slot_name) = @_; | ||||
173 | $self->set_slot_value($instance, $slot_name, $self->get_slot_value($instance, $slot_name)); | ||||
174 | } | ||||
175 | |||||
176 | sub rebless_instance_structure { | ||||
177 | my ($self, $instance, $metaclass) = @_; | ||||
178 | |||||
179 | # we use $_[1] here because of t/cmop/rebless_overload.t regressions | ||||
180 | # on 5.8.8 | ||||
181 | bless $_[1], $metaclass->name; | ||||
182 | } | ||||
183 | |||||
184 | # spent 82µs within Class::MOP::Instance::is_dependent_on_superclasses which was called 105 times, avg 783ns/call:
# 105 times (82µs+0s) by Class::MOP::Class::_create_meta_instance at line 731 of Class/MOP/Class.pm, avg 783ns/call | ||||
185 | 105 | 151µs | return; # for meta instances that require updates on inherited slot changes | ||
186 | } | ||||
187 | |||||
188 | sub _get_mop_slot { | ||||
189 | my ($self, $instance) = @_; | ||||
190 | $self->get_slot_value($instance, $RESERVED_MOP_SLOT); | ||||
191 | } | ||||
192 | |||||
193 | sub _has_mop_slot { | ||||
194 | my ($self, $instance) = @_; | ||||
195 | $self->is_slot_initialized($instance, $RESERVED_MOP_SLOT); | ||||
196 | } | ||||
197 | |||||
198 | sub _set_mop_slot { | ||||
199 | my ($self, $instance, $value) = @_; | ||||
200 | $self->set_slot_value($instance, $RESERVED_MOP_SLOT, $value); | ||||
201 | } | ||||
202 | |||||
203 | sub _clear_mop_slot { | ||||
204 | my ($self, $instance) = @_; | ||||
205 | $self->deinitialize_slot($instance, $RESERVED_MOP_SLOT); | ||||
206 | } | ||||
207 | |||||
208 | # inlinable operation snippets | ||||
209 | |||||
210 | 158 | 239µs | # spent 123µs within Class::MOP::Instance::is_inlinable which was called 158 times, avg 780ns/call:
# 95 times (71µs+0s) by Class::MOP::Attribute::_process_accessors at line 384 of Class/MOP/Attribute.pm, avg 748ns/call
# 63 times (52µs+0s) by Moose::Meta::Method::Accessor::_instance_is_inlinable at line 57 of Moose/Meta/Method/Accessor.pm, avg 829ns/call | ||
211 | |||||
212 | # spent 56µs within Class::MOP::Instance::inline_create_instance which was called 35 times, avg 2µs/call:
# 35 times (56µs+0s) by Class::MOP::Class::_inline_create_instance at line 583 of Class/MOP/Class.pm, avg 2µs/call | ||||
213 | 70 | 81µs | my ($self, $class_variable) = @_; | ||
214 | 'bless {} => ' . $class_variable; | ||||
215 | } | ||||
216 | |||||
217 | # spent 1.48ms within Class::MOP::Instance::inline_slot_access which was called 659 times, avg 2µs/call:
# 499 times (1.09ms+0s) by Class::MOP::Instance::inline_set_slot_value at line 231, avg 2µs/call
# 135 times (323µs+0s) by Class::MOP::Instance::inline_get_slot_value at line 226, avg 2µs/call
# 21 times (52µs+0s) by Class::MOP::Instance::inline_is_slot_initialized at line 245, avg 2µs/call
# 2 times (5µs+0s) by Class::MOP::Instance::inline_deinitialize_slot at line 241, avg 2µs/call
# 2 times (5µs+0s) by Class::MOP::Instance::inline_weaken_slot_value at line 250, avg 2µs/call | ||||
218 | 1318 | 2.10ms | my ($self, $instance, $slot_name) = @_; | ||
219 | sprintf q[%s->{"%s"}], $instance, quotemeta($slot_name); | ||||
220 | } | ||||
221 | |||||
222 | sub inline_get_is_lvalue { 1 } | ||||
223 | |||||
224 | # spent 727µs (404+323) within Class::MOP::Instance::inline_get_slot_value which was called 135 times, avg 5µs/call:
# 135 times (404µs+323µs) by Class::MOP::Attribute::_inline_instance_get at line 311 of Class/MOP/Attribute.pm, avg 5µs/call | ||||
225 | 270 | 352µs | my ($self, $instance, $slot_name) = @_; | ||
226 | 135 | 323µs | $self->inline_slot_access($instance, $slot_name); # spent 323µs making 135 calls to Class::MOP::Instance::inline_slot_access, avg 2µs/call | ||
227 | } | ||||
228 | |||||
229 | # spent 2.77ms (1.68+1.09) within Class::MOP::Instance::inline_set_slot_value which was called 499 times, avg 6µs/call:
# 499 times (1.68ms+1.09ms) by Class::MOP::Attribute::_inline_instance_set at line 288 of Class/MOP/Attribute.pm, avg 6µs/call | ||||
230 | 998 | 1.54ms | my ($self, $instance, $slot_name, $value) = @_; | ||
231 | 499 | 1.09ms | $self->inline_slot_access($instance, $slot_name) . " = $value", # spent 1.09ms making 499 calls to Class::MOP::Instance::inline_slot_access, avg 2µs/call | ||
232 | } | ||||
233 | |||||
234 | sub inline_initialize_slot { | ||||
235 | my ($self, $instance, $slot_name) = @_; | ||||
236 | return ''; | ||||
237 | } | ||||
238 | |||||
239 | # spent 15µs (10+5) within Class::MOP::Instance::inline_deinitialize_slot which was called 2 times, avg 7µs/call:
# 2 times (10µs+5µs) by Class::MOP::Attribute::_inline_instance_clear at line 353 of Class/MOP/Attribute.pm, avg 7µs/call | ||||
240 | 4 | 8µs | my ($self, $instance, $slot_name) = @_; | ||
241 | 2 | 5µs | "delete " . $self->inline_slot_access($instance, $slot_name); # spent 5µs making 2 calls to Class::MOP::Instance::inline_slot_access, avg 2µs/call | ||
242 | } | ||||
243 | # spent 126µs (74+52) within Class::MOP::Instance::inline_is_slot_initialized which was called 21 times, avg 6µs/call:
# 21 times (74µs+52µs) by Class::MOP::Attribute::_inline_instance_has at line 332 of Class/MOP/Attribute.pm, avg 6µs/call | ||||
244 | 42 | 69µs | my ($self, $instance, $slot_name) = @_; | ||
245 | 21 | 52µs | "exists " . $self->inline_slot_access($instance, $slot_name); # spent 52µs making 21 calls to Class::MOP::Instance::inline_slot_access, avg 2µs/call | ||
246 | } | ||||
247 | |||||
248 | # spent 14µs (9+5) within Class::MOP::Instance::inline_weaken_slot_value which was called 2 times, avg 7µs/call:
# 2 times (9µs+5µs) by Moose::Meta::Attribute::_inline_weaken_value at line 762 of Moose/Meta/Attribute.pm, avg 7µs/call | ||||
249 | 4 | 10µs | my ($self, $instance, $slot_name) = @_; | ||
250 | 2 | 5µs | sprintf "Scalar::Util::weaken( %s )", $self->inline_slot_access($instance, $slot_name); # spent 5µs making 2 calls to Class::MOP::Instance::inline_slot_access, avg 2µs/call | ||
251 | } | ||||
252 | |||||
253 | sub inline_strengthen_slot_value { | ||||
254 | my ($self, $instance, $slot_name) = @_; | ||||
255 | $self->inline_set_slot_value($instance, $slot_name, $self->inline_slot_access($instance, $slot_name)); | ||||
256 | } | ||||
257 | |||||
258 | sub inline_rebless_instance_structure { | ||||
259 | my ($self, $instance, $class_variable) = @_; | ||||
260 | "bless $instance => $class_variable"; | ||||
261 | } | ||||
262 | |||||
263 | sub _inline_get_mop_slot { | ||||
264 | my ($self, $instance) = @_; | ||||
265 | $self->inline_get_slot_value($instance, $RESERVED_MOP_SLOT); | ||||
266 | } | ||||
267 | |||||
268 | sub _inline_set_mop_slot { | ||||
269 | my ($self, $instance, $value) = @_; | ||||
270 | $self->inline_set_slot_value($instance, $RESERVED_MOP_SLOT, $value); | ||||
271 | } | ||||
272 | |||||
273 | sub _inline_clear_mop_slot { | ||||
274 | my ($self, $instance) = @_; | ||||
275 | $self->inline_deinitialize_slot($instance, $RESERVED_MOP_SLOT); | ||||
276 | } | ||||
277 | |||||
278 | 1 | 3µs | 1; | ||
279 | |||||
280 | # ABSTRACT: Instance Meta Object | ||||
281 | |||||
282 | __END__ |