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

Side by Side Diff: test/cctest/test-fuzz-arm64.cc

Issue 1505803004: Disable soon to be deprecated APIs per default for v8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/test-func-name-inference.cc ('k') | test/cctest/test-gc-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are met: 3 // modification, are permitted provided that the following conditions are met:
4 // 4 //
5 // * Redistributions of source code must retain the above copyright notice, 5 // * Redistributions of source code must retain the above copyright notice,
6 // this list of conditions and the following disclaimer. 6 // this list of conditions and the following disclaimer.
7 // * Redistributions in binary form must reproduce the above copyright notice, 7 // * Redistributions in binary form must reproduce the above copyright notice,
8 // this list of conditions and the following disclaimer in the documentation 8 // this list of conditions and the following disclaimer in the documentation
9 // and/or other materials provided with the distribution. 9 // and/or other materials provided with the distribution.
10 // * Neither the name of ARM Limited nor the names of its contributors may be 10 // * Neither the name of ARM Limited nor the names of its contributors may be
11 // used to endorse or promote products derived from this software without 11 // used to endorse or promote products derived from this software without
12 // specific prior written permission. 12 // specific prior written permission.
13 // 13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND 14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND
15 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 17 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
18 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 19 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 20 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 21 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22 // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 24
25 // TODO(jochen): Remove this after the setting is turned on globally.
26 #define V8_IMMINENT_DEPRECATION_WARNINGS
27
28 #include <stdlib.h> 25 #include <stdlib.h>
29 #include "test/cctest/cctest.h" 26 #include "test/cctest/cctest.h"
30 27
31 #include "src/arm64/decoder-arm64.h" 28 #include "src/arm64/decoder-arm64.h"
32 #include "src/arm64/decoder-arm64-inl.h" 29 #include "src/arm64/decoder-arm64-inl.h"
33 #include "src/arm64/disasm-arm64.h" 30 #include "src/arm64/disasm-arm64.h"
34 31
35 using namespace v8::internal; 32 using namespace v8::internal;
36 33
37 TEST(FUZZ_decoder) { 34 TEST(FUZZ_decoder) {
(...skipping 27 matching lines...) Expand all
65 DisassemblingDecoder disasm; 62 DisassemblingDecoder disasm;
66 Instruction buffer[kInstructionSize]; 63 Instruction buffer[kInstructionSize];
67 64
68 decoder.AppendVisitor(&disasm); 65 decoder.AppendVisitor(&disasm);
69 for (int i = 0; i < instruction_count; i++) { 66 for (int i = 0; i < instruction_count; i++) {
70 uint32_t instr = static_cast<uint32_t>(mrand48()); 67 uint32_t instr = static_cast<uint32_t>(mrand48());
71 buffer->SetInstructionBits(instr); 68 buffer->SetInstructionBits(instr);
72 decoder.Decode(buffer); 69 decoder.Decode(buffer);
73 } 70 }
74 } 71 }
OLDNEW
« no previous file with comments | « test/cctest/test-func-name-inference.cc ('k') | test/cctest/test-gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698