@@ -651,22 +651,22 @@ BindingData::BindingData(Realm* realm,
651651 hrtime_buffer_.MakeWeak ();
652652}
653653
654- v8:: CFunction BindingData::fast_number_ (v8:: CFunction::Make(FastNumber ));
655- v8:: CFunction BindingData::fast_bigint_ (v8:: CFunction::Make(FastBigInt ));
654+ CFunction BindingData::fast_hrtime_ ( CFunction::Make(FastHrtime ));
655+ CFunction BindingData::fast_hrtime_bigint_ ( CFunction::Make(FastHrtimeBigInt ));
656656
657657void BindingData::AddMethods (Isolate* isolate, Local<ObjectTemplate> target) {
658658 SetFastMethodNoSideEffect (
659- isolate, target, " hrtime" , SlowNumber , &fast_number_ );
659+ isolate, target, " hrtime" , SlowHrtime , &fast_hrtime_ );
660660 SetFastMethodNoSideEffect (
661- isolate, target, " hrtimeBigInt" , SlowBigInt , &fast_bigint_ );
661+ isolate, target, " hrtimeBigInt" , SlowHrtimeBigInt , &fast_hrtime_bigint_ );
662662}
663663
664664void BindingData::RegisterExternalReferences (
665665 ExternalReferenceRegistry* registry) {
666- registry->Register (SlowNumber );
667- registry->Register (SlowBigInt );
668- registry->Register (fast_number_ );
669- registry->Register (fast_bigint_ );
666+ registry->Register (SlowHrtime );
667+ registry->Register (SlowHrtimeBigInt );
668+ registry->Register (fast_hrtime_ );
669+ registry->Register (fast_hrtime_bigint_ );
670670}
671671
672672BindingData* BindingData::FromV8Value (Local<Value> value) {
@@ -688,14 +688,14 @@ void BindingData::MemoryInfo(MemoryTracker* tracker) const {
688688// broken into the upper/lower 32 bits to be converted back in JS,
689689// because there is no Uint64Array in JS.
690690// The third entry contains the remaining nanosecond part of the value.
691- void BindingData::NumberImpl (BindingData* receiver) {
691+ void BindingData::HrtimeImpl (BindingData* receiver) {
692692 uint64_t t = uv_hrtime ();
693693 receiver->hrtime_buffer_ [0 ] = (t / NANOS_PER_SEC) >> 32 ;
694694 receiver->hrtime_buffer_ [1 ] = (t / NANOS_PER_SEC) & 0xffffffff ;
695695 receiver->hrtime_buffer_ [2 ] = t % NANOS_PER_SEC;
696696}
697697
698- void BindingData::BigIntImpl (BindingData* receiver) {
698+ void BindingData::HrtimeBigIntImpl (BindingData* receiver) {
699699 uint64_t t = uv_hrtime ();
700700 // The buffer is a Uint32Array, so we need to reinterpret it as a
701701 // Uint64Array to write the value. The buffer is valid at this scope so we
@@ -705,12 +705,12 @@ void BindingData::BigIntImpl(BindingData* receiver) {
705705 fields[0 ] = t;
706706}
707707
708- void BindingData::SlowBigInt (const FunctionCallbackInfo<Value>& args) {
709- BigIntImpl (FromJSObject<BindingData>(args.This ()));
708+ void BindingData::SlowHrtimeBigInt (const FunctionCallbackInfo<Value>& args) {
709+ HrtimeBigIntImpl (FromJSObject<BindingData>(args.This ()));
710710}
711711
712- void BindingData::SlowNumber (const v8:: FunctionCallbackInfo<v8:: Value>& args) {
713- NumberImpl (FromJSObject<BindingData>(args.This ()));
712+ void BindingData::SlowHrtime (const FunctionCallbackInfo<Value>& args) {
713+ HrtimeImpl (FromJSObject<BindingData>(args.This ()));
714714}
715715
716716bool BindingData::PrepareForSerialization (Local<Context> context,
0 commit comments