aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/compiler/test-run-native-calls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/compiler/test-run-native-calls.cc')
-rw-r--r--deps/v8/test/cctest/compiler/test-run-native-calls.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/test/cctest/compiler/test-run-native-calls.cc b/deps/v8/test/cctest/compiler/test-run-native-calls.cc
index 2ddaa1bc07..19c6abb8fc 100644
--- a/deps/v8/test/cctest/compiler/test-run-native-calls.cc
+++ b/deps/v8/test/cctest/compiler/test-run-native-calls.cc
@@ -5,7 +5,7 @@
#include <vector>
#include "src/assembler.h"
-#include "src/codegen.h"
+#include "src/base/overflowing-math.h"
#include "src/compiler/linkage.h"
#include "src/compiler/raw-machine-assembler.h"
#include "src/machine-type.h"
@@ -1061,7 +1061,7 @@ void MixedParamTest(int start) {
Handle<Code> wrapper = Handle<Code>::null();
int32_t expected_ret;
char bytes[kDoubleSize];
- V8_ALIGNED(8) char output[kDoubleSize];
+ alignas(8) char output[kDoubleSize];
int expected_size = 0;
CSignatureOf<int32_t> csig;
{
@@ -1101,7 +1101,8 @@ void MixedParamTest(int start) {
CHECK_NOT_NULL(konst);
inputs[input_count++] = konst;
- constant += 0x1010101010101010;
+ const int64_t kIncrement = 0x1010101010101010;
+ constant = base::AddWithWraparound(constant, kIncrement);
}
Node* call = raw.CallN(desc, input_count, inputs);