We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e09c7 commit 7b377ebCopy full SHA for 7b377eb
graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/objects/JSShape.java
@@ -192,7 +192,14 @@ public static JSContext getJSContext(Shape shape) {
192
return getSharedData(shape).getContext();
193
}
194
195
+ public static boolean isObjectPrototype(Shape shape) {
196
+ return getJSClassNoCast(shape) == JSObjectPrototype.INSTANCE;
197
+ }
198
+
199
public static Assumption getPrototypeAssumption(Shape shape) {
200
+ if (isObjectPrototype(shape)) {
201
+ return Assumption.ALWAYS_VALID;
202
203
return getSharedData(shape).getPrototypeAssumption();
204
205
0 commit comments