diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2018-01-24 20:16:06 +0100 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-01-24 15:02:20 -0800 |
commit | 4c4af643e5042d615a60c6bbc05aee9d81b903e5 (patch) | |
tree | 3fb0a97988fe4439ae3ae06f26915d1dcf8cab92 /deps/v8/src/interface-descriptors.h | |
parent | fa9f31a4fda5a3782c652e56e394465805ebb50f (diff) | |
download | android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.tar.gz android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.tar.bz2 android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.zip |
deps: update V8 to 6.4.388.40
PR-URL: https://github.com/nodejs/node/pull/17489
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/src/interface-descriptors.h')
-rw-r--r-- | deps/v8/src/interface-descriptors.h | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/deps/v8/src/interface-descriptors.h b/deps/v8/src/interface-descriptors.h index e6cdf7fdd2..49c047333a 100644 --- a/deps/v8/src/interface-descriptors.h +++ b/deps/v8/src/interface-descriptors.h @@ -62,8 +62,6 @@ class PlatformInterfaceDescriptor; V(StringAdd) \ V(StringCharAt) \ V(StringCharCodeAt) \ - V(StringCompare) \ - V(SubString) \ V(ForInPrepare) \ V(GetProperty) \ V(ArgumentAdaptor) \ @@ -94,7 +92,7 @@ class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { void InitializePlatformSpecific( int register_parameter_count, const Register* registers, - PlatformInterfaceDescriptor* platform_descriptor = NULL); + PlatformInterfaceDescriptor* platform_descriptor = nullptr); // if machine_types is null, then an array of size // (parameter_count + extra_parameter_count) will be created with @@ -121,11 +119,11 @@ class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { } void RestrictAllocatableRegisters(const Register* registers, int num) { - DCHECK(allocatable_registers_ == 0); + DCHECK_EQ(allocatable_registers_, 0); for (int i = 0; i < num; ++i) { allocatable_registers_ |= registers[i].bit(); } - DCHECK(NumRegs(allocatable_registers_) > 0); + DCHECK_GT(NumRegs(allocatable_registers_), 0); } RegList allocatable_registers() const { return allocatable_registers_; } @@ -163,7 +161,7 @@ class CallDescriptors { class V8_EXPORT_PRIVATE CallInterfaceDescriptor { public: - CallInterfaceDescriptor() : data_(NULL) {} + CallInterfaceDescriptor() : data_(nullptr) {} virtual ~CallInterfaceDescriptor() {} CallInterfaceDescriptor(Isolate* isolate, CallDescriptors::Key key) @@ -210,7 +208,8 @@ class V8_EXPORT_PRIVATE CallInterfaceDescriptor { virtual void InitializePlatformIndependent( CallInterfaceDescriptorData* data) { - data->InitializePlatformIndependent(data->register_param_count(), 0, NULL); + data->InitializePlatformIndependent(data->register_param_count(), 0, + nullptr); } void Initialize(Isolate* isolate, CallDescriptors::Key key) { @@ -256,7 +255,8 @@ static const int kMaxBuiltinRegisterParams = 5; } \ void InitializePlatformIndependent(CallInterfaceDescriptorData* data) \ override { \ - data->InitializePlatformIndependent(kRegisterParams, kStackParams, NULL); \ + data->InitializePlatformIndependent(kRegisterParams, kStackParams, \ + nullptr); \ } \ name(Isolate* isolate, CallDescriptors::Key key) : base(isolate, key) {} \ \ @@ -283,7 +283,7 @@ static const int kMaxBuiltinRegisterParams = 5; protected: \ void InitializePlatformIndependent(CallInterfaceDescriptorData* data) \ override { \ - data->InitializePlatformIndependent(0, kParameterCount, NULL); \ + data->InitializePlatformIndependent(0, kParameterCount, nullptr); \ } \ void InitializePlatformSpecific(CallInterfaceDescriptorData* data) \ override { \ @@ -739,22 +739,6 @@ class StringCharCodeAtDescriptor final : public CallInterfaceDescriptor { CallInterfaceDescriptor) }; -class StringCompareDescriptor : public CallInterfaceDescriptor { - public: - DEFINE_PARAMETERS(kLeft, kRight) - DECLARE_DESCRIPTOR(StringCompareDescriptor, CallInterfaceDescriptor) - - static const Register LeftRegister(); - static const Register RightRegister(); -}; - -class SubStringDescriptor : public CallInterfaceDescriptor { - public: - DEFINE_PARAMETERS(kString, kFrom, kTo) - DECLARE_DESCRIPTOR_WITH_STACK_ARGS(SubStringDescriptor, - CallInterfaceDescriptor) -}; - class ArgumentAdaptorDescriptor : public CallInterfaceDescriptor { public: DEFINE_PARAMETERS(kFunction, kNewTarget, kActualArgumentsCount, @@ -765,7 +749,7 @@ class ArgumentAdaptorDescriptor : public CallInterfaceDescriptor { class ApiCallbackDescriptor : public CallInterfaceDescriptor { public: - DEFINE_PARAMETERS(kFunction, kCallData, kHolder, kApiFunctionAddress) + DEFINE_PARAMETERS(kTargetContext, kCallData, kHolder, kApiFunctionAddress) DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ApiCallbackDescriptor, CallInterfaceDescriptor) }; |