5 #ifndef V8_BUILTINS_BUILTINS_UTILS_INL_H_ 6 #define V8_BUILTINS_BUILTINS_UTILS_INL_H_ 8 #include "src/builtins/builtins-utils.h" 10 #include "src/arguments-inl.h" 15 Handle<Object> BuiltinArguments::atOrUndefined(Isolate* isolate,
int index) {
16 if (index >= length()) {
17 return isolate->factory()->undefined_value();
19 return at<Object>(index);
22 Handle<Object> BuiltinArguments::receiver() {
return at<Object>(0); }
24 Handle<JSFunction> BuiltinArguments::target() {
25 return Arguments::at<JSFunction>(Arguments::length() - 1 - kTargetOffset);
28 Handle<HeapObject> BuiltinArguments::new_target() {
29 return Arguments::at<HeapObject>(Arguments::length() - 1 - kNewTargetOffset);
35 #endif // V8_BUILTINS_BUILTINS_UTILS_INL_H_