@@ -652,22 +652,22 @@ BindingData::BindingData(Realm* realm,
652652 hrtime_buffer_.MakeWeak ();
653653}
654654
655- v8:: CFunction BindingData::fast_number_ (v8:: CFunction::Make(FastNumber ));
656- v8:: CFunction BindingData::fast_bigint_ (v8:: CFunction::Make(FastBigInt ));
655+ CFunction BindingData::fast_hrtime_ ( CFunction::Make(FastHrtime ));
656+ CFunction BindingData::fast_hrtime_bigint_ ( CFunction::Make(FastHrtimeBigInt ));
657657
658658void BindingData::AddMethods (Isolate* isolate, Local<ObjectTemplate> target) {
659659 SetFastMethodNoSideEffect (
660- isolate, target, " hrtime" , SlowNumber , &fast_number_ );
660+ isolate, target, " hrtime" , SlowHrtime , &fast_hrtime_ );
661661 SetFastMethodNoSideEffect (
662- isolate, target, " hrtimeBigInt" , SlowBigInt , &fast_bigint_ );
662+ isolate, target, " hrtimeBigInt" , SlowHrtimeBigInt , &fast_hrtime_bigint_ );
663663}
664664
665665void BindingData::RegisterExternalReferences (
666666 ExternalReferenceRegistry* registry) {
667- registry->Register (SlowNumber );
668- registry->Register (SlowBigInt );
669- registry->Register (fast_number_ );
670- registry->Register (fast_bigint_ );
667+ registry->Register (SlowHrtime );
668+ registry->Register (SlowHrtimeBigInt );
669+ registry->Register (fast_hrtime_ );
670+ registry->Register (fast_hrtime_bigint_ );
671671}
672672
673673BindingData* BindingData::FromV8Value (Local<Value> value) {
@@ -689,14 +689,14 @@ void BindingData::MemoryInfo(MemoryTracker* tracker) const {
689689// broken into the upper/lower 32 bits to be converted back in JS,
690690// because there is no Uint64Array in JS.
691691// The third entry contains the remaining nanosecond part of the value.
692- void BindingData::NumberImpl (BindingData* receiver) {
692+ void BindingData::HrtimeImpl (BindingData* receiver) {
693693 uint64_t t = uv_hrtime ();
694694 receiver->hrtime_buffer_ [0 ] = (t / NANOS_PER_SEC) >> 32 ;
695695 receiver->hrtime_buffer_ [1 ] = (t / NANOS_PER_SEC) & 0xffffffff ;
696696 receiver->hrtime_buffer_ [2 ] = t % NANOS_PER_SEC;
697697}
698698
699- void BindingData::BigIntImpl (BindingData* receiver) {
699+ void BindingData::HrtimeBigIntImpl (BindingData* receiver) {
700700 uint64_t t = uv_hrtime ();
701701 // The buffer is a Uint32Array, so we need to reinterpret it as a
702702 // Uint64Array to write the value. The buffer is valid at this scope so we
@@ -706,12 +706,12 @@ void BindingData::BigIntImpl(BindingData* receiver) {
706706 fields[0 ] = t;
707707}
708708
709- void BindingData::SlowBigInt (const FunctionCallbackInfo<Value>& args) {
710- BigIntImpl (FromJSObject<BindingData>(args.This ()));
709+ void BindingData::SlowHrtimeBigInt (const FunctionCallbackInfo<Value>& args) {
710+ HrtimeBigIntImpl (FromJSObject<BindingData>(args.This ()));
711711}
712712
713- void BindingData::SlowNumber (const v8:: FunctionCallbackInfo<v8:: Value>& args) {
714- NumberImpl (FromJSObject<BindingData>(args.This ()));
713+ void BindingData::SlowHrtime (const FunctionCallbackInfo<Value>& args) {
714+ HrtimeImpl (FromJSObject<BindingData>(args.This ()));
715715}
716716
717717bool BindingData::PrepareForSerialization (Local<Context> context,
0 commit comments