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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1616973004: [wasm] Add utilities to print out WASM ast directly from the bytes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64, use AddIndirectFunctionTable() more. Created 4 years, 11 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 | src/compiler/wasm-linkage.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 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 __ Pop(fp, lr); 1484 __ Pop(fp, lr);
1485 } else if (frame()->needs_frame()) { 1485 } else if (frame()->needs_frame()) {
1486 // Canonicalize JSFunction return sites for now. 1486 // Canonicalize JSFunction return sites for now.
1487 if (return_label_.is_bound()) { 1487 if (return_label_.is_bound()) {
1488 __ B(&return_label_); 1488 __ B(&return_label_);
1489 return; 1489 return;
1490 } else { 1490 } else {
1491 __ Bind(&return_label_); 1491 __ Bind(&return_label_);
1492 if (descriptor->UseNativeStack()) { 1492 if (descriptor->UseNativeStack()) {
1493 __ Mov(csp, fp); 1493 __ Mov(csp, fp);
1494 pop_count += (pop_count & 1); // align
1494 } else { 1495 } else {
1495 __ Mov(jssp, fp); 1496 __ Mov(jssp, fp);
1496 } 1497 }
1497 __ Pop(fp, lr); 1498 __ Pop(fp, lr);
1498 } 1499 }
1499 } else if (descriptor->UseNativeStack()) { 1500 } else if (descriptor->UseNativeStack()) {
1500 pop_count += (pop_count & 1); 1501 pop_count += (pop_count & 1); // align
1501 } 1502 }
1502 __ Drop(pop_count); 1503 __ Drop(pop_count);
1503 __ Ret(); 1504 __ Ret();
1504 } 1505 }
1505 1506
1506 1507
1507 void CodeGenerator::AssembleMove(InstructionOperand* source, 1508 void CodeGenerator::AssembleMove(InstructionOperand* source,
1508 InstructionOperand* destination) { 1509 InstructionOperand* destination) {
1509 Arm64OperandConverter g(this, nullptr); 1510 Arm64OperandConverter g(this, nullptr);
1510 // Dispatch on the source and destination operand kinds. Not all 1511 // Dispatch on the source and destination operand kinds. Not all
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 padding_size -= kInstructionSize; 1687 padding_size -= kInstructionSize;
1687 } 1688 }
1688 } 1689 }
1689 } 1690 }
1690 1691
1691 #undef __ 1692 #undef __
1692 1693
1693 } // namespace compiler 1694 } // namespace compiler
1694 } // namespace internal 1695 } // namespace internal
1695 } // namespace v8 1696 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698