Lines Matching defs:constant
294 base::Optional<Object> constant;
311 constant =
313 if (!constant.has_value()) {
334 constant = properties.get(array_index);
342 // {constant} needs to pass the gc predicate before we can introspect on it.
343 if (broker->ObjectMayBeUninitialized(constant.value())) return {};
345 // Ensure that {constant} matches the {representation} we expect for the
347 if (!constant->FitsRepresentation(representation, false)) {
349 constant->IsSmi()
351 : constant->IsHeapNumber() ? "HeapNumber" : "HeapObject";
360 // Now that we can safely inspect the constant, it may need to be wrapped.
361 Handle<Object> value = broker->CanonicalPersistentHandle(constant.value());
371 Handle<Object> constant;
380 constant = broker->CanonicalPersistentHandle(maybe_constant.value());
382 return TryMakeRef(broker, constant);
1824 // - GetOwnConstantElement only detects a constant for JSArray holders if