15955
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2011 by Jan Vrany & Jan Kurs
|
18358
|
3 |
SWING Research Group, Czech Technical University in Prague
|
15955
|
4 |
|
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
25 |
"
|
|
26 |
"{ Package: 'stx:libbasic' }"
|
|
27 |
|
20084
|
28 |
"{ NameSpace: Smalltalk }"
|
|
29 |
|
15955
|
30 |
Object subclass:#PolymorphicInlineCache
|
|
31 |
instanceVariableNames:'address numArgs'
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'Kernel-Classes'
|
|
35 |
!
|
|
36 |
|
|
37 |
!PolymorphicInlineCache class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
|
41 |
COPYRIGHT (c) 2011 by Jan Vrany & Jan Kurs
|
18358
|
42 |
SWING Research Group, Czech Technical University in Prague
|
15955
|
43 |
|
|
44 |
Permission is hereby granted, free of charge, to any person
|
|
45 |
obtaining a copy of this software and associated documentation
|
|
46 |
files (the 'Software'), to deal in the Software without
|
|
47 |
restriction, including without limitation the rights to use,
|
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49 |
copies of the Software, and to permit persons to whom the
|
|
50 |
Software is furnished to do so, subject to the following
|
|
51 |
conditions:
|
|
52 |
|
|
53 |
The above copyright notice and this permission notice shall be
|
|
54 |
included in all copies or substantial portions of the Software.
|
|
55 |
|
|
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
63 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
64 |
|
|
65 |
"
|
|
66 |
!
|
|
67 |
|
|
68 |
documentation
|
|
69 |
"
|
|
70 |
This class provides a basic access to inline cache structure as
|
|
71 |
used by the virtual machine.
|
|
72 |
|
|
73 |
[author:]
|
20084
|
74 |
Jan Vrany <jan.vrany@fit.cvut.cz>
|
|
75 |
Janb Kurs <kursjan@fit.cvut.cz>
|
15955
|
76 |
|
|
77 |
[instance variables:]
|
20084
|
78 |
address <ExternalAddress> a pointer to the VM inline cache structure.
|
|
79 |
if the address is NULL, then PolymorphicInlineCache
|
|
80 |
is invalid.
|
|
81 |
numArgs <SmallInteger> a number of arguments
|
15955
|
82 |
[class variables:]
|
|
83 |
|
|
84 |
[see also:]
|
|
85 |
|
|
86 |
"
|
|
87 |
! !
|
|
88 |
|
|
89 |
!PolymorphicInlineCache methodsFor:'binding / unbinding'!
|
|
90 |
|
|
91 |
bindTo: aMethod forClass: aClass
|
18358
|
92 |
| selector |
|
15955
|
93 |
|
|
94 |
selector := aMethod selector.
|
|
95 |
%{
|
18358
|
96 |
__ilcBind(self, aClass, aMethod, selector);
|
15955
|
97 |
RETURN(self);
|
|
98 |
%}.
|
|
99 |
self primitiveFailed.
|
|
100 |
|
|
101 |
"Created: / 02-10-2011 / 18:05:26 / Jan Kurs <kursjan@fit.cvut.cz>"
|
|
102 |
! !
|
|
103 |
|
|
104 |
!PolymorphicInlineCache class methodsFor:'documentation'!
|
|
105 |
|
|
106 |
version
|
20084
|
107 |
^ '$Header$'
|
15955
|
108 |
!
|
|
109 |
|
|
110 |
version_CVS
|
20084
|
111 |
^ '$Header$'
|
15955
|
112 |
! !
|
20084
|
113 |
|