Commit c77feb99 authored by Camillo Bruni's avatar Camillo Bruni Committed by V8 LUCI CQ

Fix unused isolate variables with disabled RCS

Change-Id: I0063c92ee99193440cdbbe18a6f0d094302e7c16
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3578544Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarJakob Linke <jgruber@chromium.org>
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79916}
parent 65885dab
......@@ -165,8 +165,7 @@ Handle<JSObject> PropertyCallbackArguments::CallIndexedEnumerator(
Handle<Object> PropertyCallbackArguments::CallNamedGetter(
Handle<InterceptorInfo> interceptor, Handle<Name> name) {
DCHECK_NAME_COMPATIBLE(interceptor, name);
Isolate* isolate = this->isolate();
RCS_SCOPE(isolate, RuntimeCallCounterId::kNamedGetterCallback);
RCS_SCOPE(isolate(), RuntimeCallCounterId::kNamedGetterCallback);
GenericNamedPropertyGetterCallback f =
ToCData<GenericNamedPropertyGetterCallback>(interceptor->getter());
return BasicCallNamedGetterCallback(f, name, interceptor);
......@@ -175,8 +174,7 @@ Handle<Object> PropertyCallbackArguments::CallNamedGetter(
Handle<Object> PropertyCallbackArguments::CallNamedDescriptor(
Handle<InterceptorInfo> interceptor, Handle<Name> name) {
DCHECK_NAME_COMPATIBLE(interceptor, name);
Isolate* isolate = this->isolate();
RCS_SCOPE(isolate, RuntimeCallCounterId::kNamedDescriptorCallback);
RCS_SCOPE(isolate(), RuntimeCallCounterId::kNamedDescriptorCallback);
GenericNamedPropertyDescriptorCallback f =
ToCData<GenericNamedPropertyDescriptorCallback>(
interceptor->descriptor());
......@@ -252,8 +250,7 @@ Handle<Object> PropertyCallbackArguments::CallIndexedDefiner(
Handle<Object> PropertyCallbackArguments::CallIndexedGetter(
Handle<InterceptorInfo> interceptor, uint32_t index) {
DCHECK(!interceptor->is_named());
Isolate* isolate = this->isolate();
RCS_SCOPE(isolate, RuntimeCallCounterId::kNamedGetterCallback);
RCS_SCOPE(isolate(), RuntimeCallCounterId::kNamedGetterCallback);
IndexedPropertyGetterCallback f =
ToCData<IndexedPropertyGetterCallback>(interceptor->getter());
return BasicCallIndexedGetterCallback(f, index, interceptor);
......@@ -262,8 +259,7 @@ Handle<Object> PropertyCallbackArguments::CallIndexedGetter(
Handle<Object> PropertyCallbackArguments::CallIndexedDescriptor(
Handle<InterceptorInfo> interceptor, uint32_t index) {
DCHECK(!interceptor->is_named());
Isolate* isolate = this->isolate();
RCS_SCOPE(isolate, RuntimeCallCounterId::kIndexedDescriptorCallback);
RCS_SCOPE(isolate(), RuntimeCallCounterId::kIndexedDescriptorCallback);
IndexedPropertyDescriptorCallback f =
ToCData<IndexedPropertyDescriptorCallback>(interceptor->descriptor());
return BasicCallIndexedGetterCallback(f, index, interceptor);
......
......@@ -2031,8 +2031,7 @@ Local<Script> UnboundScript::BindToCurrentContext() {
int UnboundScript::GetId() const {
auto function_info = i::SharedFunctionInfo::cast(*Utils::OpenHandle(this));
i::Isolate* isolate = function_info.GetIsolate();
API_RCS_SCOPE(isolate, UnboundScript, GetId);
API_RCS_SCOPE(function_info.GetIsolate(), UnboundScript, GetId);
return i::Script::cast(function_info.script()).id();
}
......@@ -7130,8 +7129,7 @@ double v8::NumberObject::ValueOf() const {
i::Handle<i::Object> obj = Utils::OpenHandle(this);
i::Handle<i::JSPrimitiveWrapper> js_primitive_wrapper =
i::Handle<i::JSPrimitiveWrapper>::cast(obj);
i::Isolate* isolate = js_primitive_wrapper->GetIsolate();
API_RCS_SCOPE(isolate, NumberObject, NumberValue);
API_RCS_SCOPE(js_primitive_wrapper->GetIsolate(), NumberObject, NumberValue);
return js_primitive_wrapper->value().Number();
}
......@@ -7234,8 +7232,7 @@ MaybeLocal<v8::Value> v8::Date::New(Local<Context> context, double time) {
double v8::Date::ValueOf() const {
i::Handle<i::Object> obj = Utils::OpenHandle(this);
i::Handle<i::JSDate> jsdate = i::Handle<i::JSDate>::cast(obj);
i::Isolate* isolate = jsdate->GetIsolate();
API_RCS_SCOPE(isolate, Date, NumberValue);
API_RCS_SCOPE(jsdate->GetIsolate(), Date, NumberValue);
return jsdate->value().Number();
}
......@@ -7722,8 +7719,7 @@ Local<Value> Promise::Result() {
Promise::PromiseState Promise::State() {
i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
i::Isolate* isolate = promise->GetIsolate();
API_RCS_SCOPE(isolate, Promise, Status);
API_RCS_SCOPE(promise->GetIsolate(), Promise, Status);
i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
return static_cast<PromiseState>(js_promise->status());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment