Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: test/cctest/test-run-wasm-relocation-x64.cc

Issue 1759383003: [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix uninitialized variable causing msan failure Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/compiler/test-run-wasm-machops.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
11 #include "src/disassembler.h" 11 #include "src/disassembler.h"
12 #include "src/ic/ic.h" 12 #include "src/ic/ic.h"
13 #include "src/macro-assembler.h" 13 #include "src/macro-assembler.h"
14 #include "test/cctest/cctest.h" 14 #include "test/cctest/cctest.h"
15 #include "test/cctest/compiler/c-signature.h" 15 #include "test/cctest/compiler/c-signature.h"
16 #include "test/cctest/compiler/call-tester.h" 16 #include "test/cctest/compiler/call-tester.h"
17 17
18 using namespace v8::internal; 18 using namespace v8::internal;
19 using namespace v8::internal::compiler; 19 using namespace v8::internal::compiler;
20 20
21 #define __ assm. 21 #define __ assm.
22 22
23 static int32_t DummyStaticFunction(Object* result) { return 1; } 23 static int32_t DummyStaticFunction(Object* result) { return 1; }
24
24 TEST(WasmRelocationX64movq64) { 25 TEST(WasmRelocationX64movq64) {
25 CcTest::InitializeVM(); 26 CcTest::InitializeVM();
26 Isolate* isolate = CcTest::i_isolate(); 27 Isolate* isolate = CcTest::i_isolate();
27 HandleScope scope(isolate); 28 HandleScope scope(isolate);
28 v8::internal::byte buffer[4096]; 29 v8::internal::byte buffer[4096];
29 Assembler assm(isolate, buffer, sizeof buffer); 30 Assembler assm(isolate, buffer, sizeof buffer);
30 DummyStaticFunction(NULL); 31 DummyStaticFunction(NULL);
31 int64_t imm = 1234567; 32 int64_t imm = 1234567;
32 33
33 __ movq(rax, imm, RelocInfo::WASM_MEMORY_REFERENCE); 34 __ movq(rax, imm, RelocInfo::WASM_MEMORY_REFERENCE);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 #ifdef OBJECT_PRINT 76 #ifdef OBJECT_PRINT
76 code->Print(os); 77 code->Print(os);
77 begin = code->instruction_start(); 78 begin = code->instruction_start();
78 end = begin + code->instruction_size(); 79 end = begin + code->instruction_size();
79 disasm::Disassembler::Disassemble(stdout, begin, end); 80 disasm::Disassembler::Disassemble(stdout, begin, end);
80 #endif 81 #endif
81 } 82 }
82 83
83 #undef __ 84 #undef __
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-wasm-machops.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698