Commit b2dc9230 authored by hans's avatar hans Committed by Commit bot

Fix -Wshorten-64-to-32 in test-assembler-arm64.cc

The arm64 MacroAssembler expects buffer_size to be an unsigned, not a
size_t.

BUG=chromium:710913

Review-Url: https://codereview.chromium.org/2818513002
Cr-Commit-Position: refs/heads/master@{#44623}
parent 81bb72c1
...@@ -173,15 +173,15 @@ static void InitializeVM() { ...@@ -173,15 +173,15 @@ static void InitializeVM() {
#else // ifdef USE_SIMULATOR. #else // ifdef USE_SIMULATOR.
// Run the test on real hardware or models. // Run the test on real hardware or models.
#define SETUP_SIZE(buf_size) \ #define SETUP_SIZE(buf_size) \
Isolate* isolate = CcTest::i_isolate(); \ Isolate* isolate = CcTest::i_isolate(); \
HandleScope scope(isolate); \ HandleScope scope(isolate); \
CHECK(isolate != NULL); \ CHECK(isolate != NULL); \
size_t actual_size; \ size_t actual_size; \
byte* buf = static_cast<byte*>( \ byte* buf = static_cast<byte*>( \
v8::base::OS::Allocate(buf_size, &actual_size, true)); \ v8::base::OS::Allocate(buf_size, &actual_size, true)); \
MacroAssembler masm(isolate, buf, actual_size, \ MacroAssembler masm(isolate, buf, static_cast<unsigned>(actual_size), \
v8::internal::CodeObjectRequired::kYes); \ v8::internal::CodeObjectRequired::kYes); \
RegisterDump core; RegisterDump core;
#define RESET() \ #define RESET() \
......
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