Commit 659424f8 authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

PPC/s390: [runtime] Rename Builtins::Name to Builtin 2/2

Port 407317a2

Original Commit Message:

    - Convert Builtin to enum class
    - Change int-based builtin_index methods to use Builtin
    - Change Builtins::builtin to Builtins::code

R=cbruni@chromium.org, joransiu@ca.ibm.com, junyan@redhat.com, midawson@redhat.com
BUG=
LOG=N

Change-Id: Ic92eeea4a0d0aaf38d78a93bfbaac2bb10403dae
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2960908Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#75134}
parent 2af5cfa8
...@@ -176,7 +176,7 @@ void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode, ...@@ -176,7 +176,7 @@ void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode,
DCHECK_IMPLIES(options().isolate_independent_code, DCHECK_IMPLIES(options().isolate_independent_code,
Builtins::IsIsolateIndependentBuiltin(*code)); Builtins::IsIsolateIndependentBuiltin(*code));
int builtin_index = Builtin::kNoBuiltinId; Builtin builtin_index = Builtin::kNoBuiltinId;
bool target_is_builtin = bool target_is_builtin =
isolate()->builtins()->IsBuiltinHandle(code, &builtin_index); isolate()->builtins()->IsBuiltinHandle(code, &builtin_index);
...@@ -265,7 +265,7 @@ void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode, ...@@ -265,7 +265,7 @@ void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
DCHECK_IMPLIES(options().use_pc_relative_calls_and_jumps, DCHECK_IMPLIES(options().use_pc_relative_calls_and_jumps,
Builtins::IsIsolateIndependentBuiltin(*code)); Builtins::IsIsolateIndependentBuiltin(*code));
int builtin_index = Builtin::kNoBuiltinId; Builtin builtin_index = Builtin::kNoBuiltinId;
bool target_is_builtin = bool target_is_builtin =
isolate()->builtins()->IsBuiltinHandle(code, &builtin_index); isolate()->builtins()->IsBuiltinHandle(code, &builtin_index);
......
...@@ -401,7 +401,7 @@ void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode, ...@@ -401,7 +401,7 @@ void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode,
DCHECK_IMPLIES(options().isolate_independent_code, DCHECK_IMPLIES(options().isolate_independent_code,
Builtins::IsIsolateIndependentBuiltin(*code)); Builtins::IsIsolateIndependentBuiltin(*code));
int builtin_index = Builtin::kNoBuiltinId; Builtin builtin_index = Builtin::kNoBuiltinId;
bool target_is_builtin = bool target_is_builtin =
isolate()->builtins()->IsBuiltinHandle(code, &builtin_index); isolate()->builtins()->IsBuiltinHandle(code, &builtin_index);
...@@ -462,7 +462,7 @@ void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode, ...@@ -462,7 +462,7 @@ void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
DCHECK_IMPLIES(options().isolate_independent_code, DCHECK_IMPLIES(options().isolate_independent_code,
Builtins::IsIsolateIndependentBuiltin(*code)); Builtins::IsIsolateIndependentBuiltin(*code));
int builtin_index = Builtin::kNoBuiltinId; Builtin builtin_index = Builtin::kNoBuiltinId;
bool target_is_builtin = bool target_is_builtin =
isolate()->builtins()->IsBuiltinHandle(code, &builtin_index); isolate()->builtins()->IsBuiltinHandle(code, &builtin_index);
......
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