diff options
Diffstat (limited to 'deps/v8/src/d8/d8-test.cc')
-rw-r--r-- | deps/v8/src/d8/d8-test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/d8/d8-test.cc b/deps/v8/src/d8/d8-test.cc index 6202c397ec..c474d3adb8 100644 --- a/deps/v8/src/d8/d8-test.cc +++ b/deps/v8/src/d8/d8-test.cc @@ -17,7 +17,8 @@ // and resetting these counters. // Make sure to sync the following with src/compiler/globals.h. -#if defined(V8_TARGET_ARCH_X64) +#if defined(V8_TARGET_ARCH_X64) || \ + (defined(V8_TARGET_ARCH_ARM64) && !defined(USE_SIMULATOR)) #define V8_ENABLE_FP_PARAMS_IN_C_LINKAGE #endif @@ -95,10 +96,8 @@ class FastCApiObject { #ifdef V8_ENABLE_FP_PARAMS_IN_C_LINKAGE typedef double Type; -#define type_info kTypeInfoFloat64 #else typedef int32_t Type; -#define type_info kTypeInfoInt32 #endif // V8_ENABLE_FP_PARAMS_IN_C_LINKAGE static Type AddAllSequenceFastCallback(Local<Object> receiver, bool should_fallback, @@ -120,8 +119,9 @@ class FastCApiObject { } Type buffer[1024]; - bool result = TryCopyAndConvertArrayToCppBuffer<&type_info, Type>( - seq_arg, buffer, 1024); + bool result = TryToCopyAndConvertArrayToCppBuffer< + i::CTypeInfoBuilder<Type>::Build().GetId(), Type>(seq_arg, buffer, + 1024); if (!result) { options.fallback = 1; return 0; |