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

Side by Side Diff: test/unittests/wasm/ast-decoder-unittest.cc

Issue 1974933002: [wasm] Remove the use of the "external" bit on OldFunctions section. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unused variable. Created 4 years, 7 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/wasm/wasm-run-utils.h ('k') | test/unittests/wasm/module-decoder-unittest.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 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 "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "test/cctest/wasm/test-signatures.h" 9 #include "test/cctest/wasm/test-signatures.h"
10 10
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 0, // func_index 1174 0, // func_index
1175 0, // sig_index 1175 0, // sig_index
1176 0, // name_offset 1176 0, // name_offset
1177 0, // name_length 1177 0, // name_length
1178 0, // code_start_offset 1178 0, // code_start_offset
1179 0, // code_end_offset 1179 0, // code_end_offset
1180 0, // local_i32_count 1180 0, // local_i32_count
1181 0, // local_i64_count 1181 0, // local_i64_count
1182 0, // local_f32_count 1182 0, // local_f32_count
1183 0, // local_f64_count 1183 0, // local_f64_count
1184 false, // exported 1184 false}); // exported
1185 false}); // external
1186 CHECK(mod.functions.size() <= 127); 1185 CHECK(mod.functions.size() <= 127);
1187 return static_cast<byte>(mod.functions.size() - 1); 1186 return static_cast<byte>(mod.functions.size() - 1);
1188 } 1187 }
1189 byte AddImport(FunctionSig* sig) { 1188 byte AddImport(FunctionSig* sig) {
1190 mod.import_table.push_back({sig, // sig 1189 mod.import_table.push_back({sig, // sig
1191 0, // sig_index 1190 0, // sig_index
1192 0, // module_name_offset 1191 0, // module_name_offset
1193 0, // module_name_length 1192 0, // module_name_length
1194 0, // function_name_offset 1193 0, // function_name_offset
1195 0}); // function_name_length 1194 0}); // function_name_length
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 size_t pos = 0; 2441 size_t pos = 0;
2443 pos = ExpectRun(map, pos, kAstF32, 5); 2442 pos = ExpectRun(map, pos, kAstF32, 5);
2444 pos = ExpectRun(map, pos, kAstI32, 1337); 2443 pos = ExpectRun(map, pos, kAstI32, 1337);
2445 pos = ExpectRun(map, pos, kAstI64, 212); 2444 pos = ExpectRun(map, pos, kAstI64, 212);
2446 delete[] data; 2445 delete[] data;
2447 } 2446 }
2448 2447
2449 } // namespace wasm 2448 } // namespace wasm
2450 } // namespace internal 2449 } // namespace internal
2451 } // namespace v8 2450 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/wasm/wasm-run-utils.h ('k') | test/unittests/wasm/module-decoder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698