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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 2216813002: [wasm] Fix build error on MIPS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 Code* target = Code::GetCodeFromTargetAddress(target_address); 320 Code* target = Code::GetCodeFromTargetAddress(target_address);
321 if (target->kind() == Code::WASM_FUNCTION) { 321 if (target->kind() == Code::WASM_FUNCTION) {
322 ++count; 322 ++count;
323 intermediate_fct = handle(target); 323 intermediate_fct = handle(target);
324 } 324 }
325 } 325 }
326 CHECK(count == 1); 326 CHECK(count == 1);
327 // check the type of the imported exported function, it should be also a WASM 327 // check the type of the imported exported function, it should be also a WASM
328 // function in our case 328 // function in our case
329 Handle<Code> imported_fct; 329 Handle<Code> imported_fct;
330 Code::Kind target_kind; 330 CHECK(type->value() == 0 || type->value() == 1);
331 if (type->value() == 0) { 331
332 target_kind = Code::WASM_FUNCTION; 332 Code::Kind target_kind =
333 } else if (type->value() == 1) { 333 type->value() == 0 ? Code::WASM_FUNCTION : Code::WASM_TO_JS_FUNCTION;
334 target_kind = Code::WASM_TO_JS_FUNCTION;
335 }
336 count = 0; 334 count = 0;
337 for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) { 335 for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) {
338 RelocInfo* rinfo = it.rinfo(); 336 RelocInfo* rinfo = it.rinfo();
339 Address target_address = rinfo->target_address(); 337 Address target_address = rinfo->target_address();
340 Code* target = Code::GetCodeFromTargetAddress(target_address); 338 Code* target = Code::GetCodeFromTargetAddress(target_address);
341 if (target->kind() == target_kind) { 339 if (target->kind() == target_kind) {
342 ++count; 340 ++count;
343 imported_fct = handle(target); 341 imported_fct = handle(target);
344 } 342 }
345 } 343 }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 636
639 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { 637 RUNTIME_FUNCTION(Runtime_SpeciesProtector) {
640 SealHandleScope shs(isolate); 638 SealHandleScope shs(isolate);
641 DCHECK_EQ(0, args.length()); 639 DCHECK_EQ(0, args.length());
642 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); 640 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact());
643 } 641 }
644 642
645 643
646 } // namespace internal 644 } // namespace internal
647 } // namespace v8 645 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698