| Index: src/builtins/builtins.h
|
| diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
|
| index 68fd84ec0dd0aa7a973afaca5f4e123e3a86d41e..9ec48a678dfbadd199d4f4246adb93be09566a96 100644
|
| --- a/src/builtins/builtins.h
|
| +++ b/src/builtins/builtins.h
|
| @@ -615,6 +615,16 @@ class Builtins {
|
| TailCallMode tail_call_mode,
|
| CallableType function_type = CallableType::kAny);
|
|
|
| + bool IsCppBuiltin(Name name) const {
|
| + DCHECK(name < BUILTIN_COUNT);
|
| + return (builtins_[name].kind == CPP || builtins_[name].kind == API);
|
| + }
|
| +
|
| + const Descriptor* DescriptorFor(Name name) const {
|
| + DCHECK(name < BUILTIN_COUNT);
|
| + return &builtins_[name];
|
| + }
|
| +
|
| Code* builtin(Name name) {
|
| // Code::cast cannot be used here since we access builtins
|
| // during the marking phase of mark sweep. See IC::Clear.
|
|
|