Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
14 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #ifndef Register_h
30 #define Register_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:30:9`!
31
32 #include "JSValue.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h`/
33 #include <wtf/Assertions.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h`/
34 #include <wtf/FastAllocBase.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h`/
35 #include <wtf/VectorTraits.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/VectorTraits.h`/
36
37 namespace JSCcxx . . $ QTJSC/ {
38
39 class Argumentscxx . . $ QTJSC/Arguments#;
40 class CodeBlockcxx . . $ QTJSC/CodeBlock#;
41 class ExecStatecxx . . $ QTJSC/ExecState#;
42 class JSActivationcxx . . $ QTJSC/JSActivation#;
43 class JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#;
44 class ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#;
45
46 struct Instructioncxx . . $ QTJSC/Instruction#;
47
48 typedef ExecStatecxx . . $ QTJSC/ExecState# CallFramecxx . . $ QTJSC/CallFrame#;
49
50 class Registercxx . . $ QTJSC/Register# : public WTFcxx . . $ QTWTF/::FastAllocBasecxx . . $ QTWTF/FastAllocBase# {
51 public:
52 Registercxx . . $ QTJSC/Register#Register(49f6e7a06ebc5aa8).();
53
54 Registercxx . . $ QTJSC/Register#Register(2d150d7f79e20145).(const JSValuecxx . . $ QTJSC/JSValue#&);
55 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(812d218e081e87f4).=(const JSValuecxx . . $ QTJSC/JSValue#&);
56 JSValuecxx . . $ QTJSC/JSValue# jsValuecxx . . $ QTJSC/Register#jsValue(888c053acf364da1).() const;
57
58 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(2584f626b65c13f).=(JSActivationcxx . . $ QTJSC/JSActivation#*);
59 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(60763e52b19abfd9).=(CallFramecxx . . $ QTJSC/CallFrame#*);
60 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(7c444e145edd332d).=(CodeBlockcxx . . $ QTJSC/CodeBlock#*);
61 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(bc970bf95e46cc8).=(JSObjectcxx . . $ QTJSC/JSObject#*);
62 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(55c3cc0af7819e8a).=(JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#*);
63 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(6d360d5924ad818e).=(ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#*);
64 Registercxx . . $ QTJSC/Register#& operatorcxx . . $ QTJSC/Register#`operator=`(471280538f82a0).=(Instructioncxx . . $ QTJSC/Instruction#*);
65
66 int32_tcxx . . $ int32_t# icxx . . $ QTJSC/Register#i(455f465bc33b4cdf).() const;
67 JSActivationcxx . . $ QTJSC/JSActivation#* activationcxx . . $ QTJSC/Register#activation(a4af3fa429af8a68).() const;
68 Argumentscxx . . $ QTJSC/Arguments#* argumentscxx . . $ QTJSC/Register#arguments(66a58788709e4d3d).() const;
69 CallFramecxx . . $ QTJSC/CallFrame#* callFramecxx . . $ QTJSC/Register#callFrame(5952b97f5bc87321).() const;
70 CodeBlockcxx . . $ QTJSC/CodeBlock#* codeBlockcxx . . $ QTJSC/Register#codeBlock(a218112474fb222a).() const;
71 JSObjectcxx . . $ QTJSC/JSObject#* objectcxx . . $ QTJSC/Register#object(8ac23ea934d7a115).() const;
72 JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* propertyNameIteratorcxx . . $ QTJSC/Register#propertyNameIterator(e49c90d2977900c6).() const;
73 ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChaincxx . . $ QTJSC/Register#scopeChain(7483ce9f56294eec).() const;
74 Instructioncxx . . $ QTJSC/Instruction#* vPCcxx . . $ QTJSC/Register#vPC(62fbc1600eb00a5f).() const;
75
76 static Registercxx . . $ QTJSC/Register# withIntcxx . . $ QTJSC/Register#withInt(56c5ad1e8d95a0cb).(int32_tcxx . . $ int32_t# i)
77 {
78 Registercxx . . $ QTJSC/Register# rcxx . . $ QTJSC/Register#Register(49f6e7a06ebc5aa8).;
79 r.ucxx . . $ QTJSC/Register#u..icxx . . $ QTJSC/Register#$anonymous_type_0#i. = i;
80 return r;
81 }
82
83 private:
84 unioncxx . . $ QTJSC/Register#$anonymous_type_0# {
85 int32_tcxx . . $ int32_t# icxx . . $ QTJSC/Register#$anonymous_type_0#i.;
86 EncodedJSValuecxx . . $ QTJSC/EncodedJSValue# valuecxx . . $ QTJSC/Register#$anonymous_type_0#value.;
87
88 JSActivationcxx . . $ QTJSC/JSActivation#* activationcxx . . $ QTJSC/Register#$anonymous_type_0#activation.;
89 CallFramecxx . . $ QTJSC/CallFrame#* callFramecxx . . $ QTJSC/Register#$anonymous_type_0#callFrame.;
90 CodeBlockcxx . . $ QTJSC/CodeBlock#* codeBlockcxx . . $ QTJSC/Register#$anonymous_type_0#codeBlock.;
91 JSObjectcxx . . $ QTJSC/JSObject#* objectcxx . . $ QTJSC/Register#$anonymous_type_0#object.;
92 JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* propertyNameIteratorcxx . . $ QTJSC/Register#$anonymous_type_0#propertyNameIterator.;
93 ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChaincxx . . $ QTJSC/Register#$anonymous_type_0#scopeChain.;
94 Instructioncxx . . $ QTJSC/Instruction#* vPCcxx . . $ QTJSC/Register#$anonymous_type_0#vPC.;
95 } ucxx . . $ QTJSC/Register#u.;
96 };
97
98 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#::Registercxx . . $ QTJSC/Register#Register(49f6e7a06ebc5aa8).()
99 {
100 #ifndef NDEBUGcxx . . $ `<built-in>:472:9`!
101 *this = JSValue();
102 #endif
103 }
104
105 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#::Registercxx . . $ QTJSC/Register#Register(2d150d7f79e20145).(const JSValuecxx . . $ QTJSC/JSValue#& v)
106 {
107 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JSC_ZOMBIES)
108 ASSERT(!v.isZombie());
109 #endif
110 ucxx . . $ QTJSC/Register#u..valuecxx . . $ QTJSC/Register#$anonymous_type_0#value. = JSValuecxx . . $ QTJSC/JSValue#::encodecxx . . $ QTJSC/JSValue#encode(48544357535317c5).(v);
111 }
112
113 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(812d218e081e87f4).=(const JSValuecxx . . $ QTJSC/JSValue#& v)
114 {
115 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(JSC_ZOMBIES)
116 ASSERT(!v.isZombie());
117 #endif
118 ucxx . . $ QTJSC/Register#u..valuecxx . . $ QTJSC/Register#$anonymous_type_0#value. = JSValuecxx . . $ QTJSC/JSValue#::encodecxx . . $ QTJSC/JSValue#encode(48544357535317c5).(v);
119 return *this;
120 }
121
122 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# Registercxx . . $ QTJSC/Register#::jsValuecxx . . $ QTJSC/Register#jsValue(888c053acf364da1).() const
123 {
124 return JSValuecxx . . $ QTJSC/JSValue#::decodecxx . . $ QTJSC/JSValue#decode(921aba6f6725337d).(ucxx . . $ QTJSC/Register#u..valuecxx . . $ QTJSC/Register#$anonymous_type_0#value.);
125 }
126
127 // Interpreter functions
128
129 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(2584f626b65c13f).=(JSActivationcxx . . $ QTJSC/JSActivation#* activation)
130 {
131 ucxx . . $ QTJSC/Register#u..activationcxx . . $ QTJSC/Register#$anonymous_type_0#activation. = activation;
132 return *this;
133 }
134
135 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(60763e52b19abfd9).=(CallFramecxx . . $ QTJSC/CallFrame#* callFrame)
136 {
137 ucxx . . $ QTJSC/Register#u..callFramecxx . . $ QTJSC/Register#$anonymous_type_0#callFrame. = callFrame;
138 return *this;
139 }
140
141 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(7c444e145edd332d).=(CodeBlockcxx . . $ QTJSC/CodeBlock#* codeBlock)
142 {
143 ucxx . . $ QTJSC/Register#u..codeBlockcxx . . $ QTJSC/Register#$anonymous_type_0#codeBlock. = codeBlock;
144 return *this;
145 }
146
147 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(bc970bf95e46cc8).=(JSObjectcxx . . $ QTJSC/JSObject#* object)
148 {
149 ucxx . . $ QTJSC/Register#u..objectcxx . . $ QTJSC/Register#$anonymous_type_0#object. = object;
150 return *this;
151 }
152
153 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(471280538f82a0).=(Instructioncxx . . $ QTJSC/Instruction#* vPC)
154 {
155 ucxx . . $ QTJSC/Register#u..vPCcxx . . $ QTJSC/Register#$anonymous_type_0#vPC. = vPC;
156 return *this;
157 }
158
159 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(6d360d5924ad818e).=(ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChain)
160 {
161 ucxx . . $ QTJSC/Register#u..scopeChaincxx . . $ QTJSC/Register#$anonymous_type_0#scopeChain. = scopeChain;
162 return *this;
163 }
164
165 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Registercxx . . $ QTJSC/Register#& Registercxx . . $ QTJSC/Register#::operatorcxx . . $ QTJSC/Register#`operator=`(55c3cc0af7819e8a).=(JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* propertyNameIterator)
166 {
167 ucxx . . $ QTJSC/Register#u..propertyNameIteratorcxx . . $ QTJSC/Register#$anonymous_type_0#propertyNameIterator. = propertyNameIterator;
168 return *this;
169 }
170
171 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! int32_tcxx . . $ int32_t# Registercxx . . $ QTJSC/Register#::icxx . . $ QTJSC/Register#i(455f465bc33b4cdf).() const
172 {
173 return ucxx . . $ QTJSC/Register#u..icxx . . $ QTJSC/Register#$anonymous_type_0#i.;
174 }
175
176 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSActivationcxx . . $ QTJSC/JSActivation#* Registercxx . . $ QTJSC/Register#::activationcxx . . $ QTJSC/Register#activation(a4af3fa429af8a68).() const
177 {
178 return ucxx . . $ QTJSC/Register#u..activationcxx . . $ QTJSC/Register#$anonymous_type_0#activation.;
179 }
180
181 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! CallFramecxx . . $ QTJSC/CallFrame#* Registercxx . . $ QTJSC/Register#::callFramecxx . . $ QTJSC/Register#callFrame(5952b97f5bc87321).() const
182 {
183 return ucxx . . $ QTJSC/Register#u..callFramecxx . . $ QTJSC/Register#$anonymous_type_0#callFrame.;
184 }
185
186 ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! CodeBlockcxx . . $ QTJSC/CodeBlock#* Registercxx . . $ QTJSC/Register#::codeBlockcxx . . $ QTJSC/Register#codeBlock(a218112474fb222a).() const
187 {
188 return ucxx . . $ QTJSC/Register#u..codeBlockcxx . . $ QTJSC/Register#$anonymous_type_0#codeBlock.;
189 }
190
191 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSObjectcxx . . $ QTJSC/JSObject#* Registercxx . . $ QTJSC/Register#::objectcxx . . $ QTJSC/Register#object(8ac23ea934d7a115).() const
192 {
193 return ucxx . . $ QTJSC/Register#u..objectcxx . . $ QTJSC/Register#$anonymous_type_0#object.;
194 }
195
196 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSPropertyNameIteratorcxx . . $ QTJSC/JSPropertyNameIterator#* Registercxx . . $ QTJSC/Register#::propertyNameIteratorcxx . . $ QTJSC/Register#propertyNameIterator(e49c90d2977900c6).() const
197 {
198 return ucxx . . $ QTJSC/Register#u..propertyNameIteratorcxx . . $ QTJSC/Register#$anonymous_type_0#propertyNameIterator.;
199 }
200
201 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* Registercxx . . $ QTJSC/Register#::scopeChaincxx . . $ QTJSC/Register#scopeChain(7483ce9f56294eec).() const
202 {
203 return ucxx . . $ QTJSC/Register#u..scopeChaincxx . . $ QTJSC/Register#$anonymous_type_0#scopeChain.;
204 }
205
206 ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! Instructioncxx . . $ QTJSC/Instruction#* Registercxx . . $ QTJSC/Register#::vPCcxx . . $ QTJSC/Register#vPC(62fbc1600eb00a5f).() const
207 {
208 return ucxx . . $ QTJSC/Register#u..vPCcxx . . $ QTJSC/Register#$anonymous_type_0#vPC.;
209 }
210
211 } // namespace JSC
212
213 namespace WTFcxx . . $ `<built-in>:467:9`! {
214
215 template<> struct VectorTraitscxx . . $ QTWTF/VectorTraits#<JSCcxx . . $ `<built-in>:463:9`!::Registercxx . . $ QTJSC/Register#> : VectorTraitsBase<true, JSCcxx . . $ `<built-in>:463:9`!::Register> { };
216
217 } // namespace WTF
218
219 #endif // Register_h