Commit f95d7bcb authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Rename local macro CHECK_RECEIVER -> CHECK_RECEIVER_OBJECT

builtins_util.h declares a macro named CHECK_RECEIVER and in some
extreme jumbo build configurations, that macro will end up in the
same translation unit as runtime-dataview.cc

Bug: v8:7792
Change-Id: I6db865b6061afd6bf1c74b3a172485d68c749929
Reviewed-on: https://chromium-review.googlesource.com/1075052
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53430}
parent edd6803f
...@@ -230,7 +230,7 @@ MaybeHandle<Object> SetViewValue(Isolate* isolate, Handle<JSDataView> data_view, ...@@ -230,7 +230,7 @@ MaybeHandle<Object> SetViewValue(Isolate* isolate, Handle<JSDataView> data_view,
} // namespace } // namespace
#define CHECK_RECEIVER(method) \ #define CHECK_RECEIVER_OBJECT(method) \
Handle<Object> receiver = args.at<Object>(0); \ Handle<Object> receiver = args.at<Object>(0); \
if (!receiver->IsJSDataView()) { \ if (!receiver->IsJSDataView()) { \
THROW_NEW_ERROR_RETURN_FAILURE( \ THROW_NEW_ERROR_RETURN_FAILURE( \
...@@ -244,7 +244,7 @@ MaybeHandle<Object> SetViewValue(Isolate* isolate, Handle<JSDataView> data_view, ...@@ -244,7 +244,7 @@ MaybeHandle<Object> SetViewValue(Isolate* isolate, Handle<JSDataView> data_view,
#define DATA_VIEW_PROTOTYPE_GET(Type, type) \ #define DATA_VIEW_PROTOTYPE_GET(Type, type) \
RUNTIME_FUNCTION(Runtime_DataViewGet##Type) { \ RUNTIME_FUNCTION(Runtime_DataViewGet##Type) { \
HandleScope scope(isolate); \ HandleScope scope(isolate); \
CHECK_RECEIVER("DataView.prototype.get" #Type); \ CHECK_RECEIVER_OBJECT("DataView.prototype.get" #Type); \
Handle<Object> byte_offset = args.at<Object>(1); \ Handle<Object> byte_offset = args.at<Object>(1); \
Handle<Object> is_little_endian = args.at<Object>(2); \ Handle<Object> is_little_endian = args.at<Object>(2); \
Handle<Object> result; \ Handle<Object> result; \
...@@ -271,7 +271,7 @@ DATA_VIEW_PROTOTYPE_GET(BigUint64, uint64_t) ...@@ -271,7 +271,7 @@ DATA_VIEW_PROTOTYPE_GET(BigUint64, uint64_t)
#define DATA_VIEW_PROTOTYPE_SET(Type, type) \ #define DATA_VIEW_PROTOTYPE_SET(Type, type) \
RUNTIME_FUNCTION(Runtime_DataViewSet##Type) { \ RUNTIME_FUNCTION(Runtime_DataViewSet##Type) { \
HandleScope scope(isolate); \ HandleScope scope(isolate); \
CHECK_RECEIVER("DataView.prototype.set" #Type); \ CHECK_RECEIVER_OBJECT("DataView.prototype.set" #Type); \
Handle<Object> byte_offset = args.at<Object>(1); \ Handle<Object> byte_offset = args.at<Object>(1); \
Handle<Object> value = args.at<Object>(2); \ Handle<Object> value = args.at<Object>(2); \
Handle<Object> is_little_endian = args.at<Object>(3); \ Handle<Object> is_little_endian = args.at<Object>(3); \
...@@ -296,6 +296,6 @@ DATA_VIEW_PROTOTYPE_SET(BigInt64, int64_t) ...@@ -296,6 +296,6 @@ DATA_VIEW_PROTOTYPE_SET(BigInt64, int64_t)
DATA_VIEW_PROTOTYPE_SET(BigUint64, uint64_t) DATA_VIEW_PROTOTYPE_SET(BigUint64, uint64_t)
#undef DATA_VIEW_PROTOTYPE_SET #undef DATA_VIEW_PROTOTYPE_SET
#undef CHECK_RECEIVER #undef CHECK_RECEIVER_OBJECT
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment