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

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

Issue 1704033002: [wasm] WasmRunner can run tests with I64 parameters and return value. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@new_wasm_runner
Patch Set: Created 4 years, 10 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
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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 1503
1504 void CodeGenerator::AssembleDeoptimizerCall( 1504 void CodeGenerator::AssembleDeoptimizerCall(
1505 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { 1505 int deoptimization_id, Deoptimizer::BailoutType bailout_type) {
1506 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 1506 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
1507 isolate(), deoptimization_id, bailout_type); 1507 isolate(), deoptimization_id, bailout_type);
1508 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1508 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1509 } 1509 }
1510 1510
1511 1511
1512 void CodeGenerator::AssemblePrologue() { 1512 void CodeGenerator::AssemblePrologue() {
1513 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1513 const CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1514 int stack_shrink_slots = frame()->GetSpillSlotCount(); 1514 int stack_shrink_slots = frame()->GetSpillSlotCount();
1515 if (descriptor->IsCFunctionCall()) { 1515 if (descriptor->IsCFunctionCall()) {
1516 __ Push(ra, fp); 1516 __ Push(ra, fp);
1517 __ mov(fp, sp); 1517 __ mov(fp, sp);
1518 } else if (descriptor->IsJSFunctionCall()) { 1518 } else if (descriptor->IsJSFunctionCall()) {
1519 __ Prologue(this->info()->GeneratePreagedPrologue()); 1519 __ Prologue(this->info()->GeneratePreagedPrologue());
1520 } else if (frame()->needs_frame()) { 1520 } else if (frame()->needs_frame()) {
1521 __ StubPrologue(); 1521 __ StubPrologue();
1522 } else { 1522 } else {
1523 frame()->SetElidedFrameSizeInSlots(0); 1523 frame()->SetElidedFrameSizeInSlots(0);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 // kNumCalleeSaved includes the fp register, but the fp register 1561 // kNumCalleeSaved includes the fp register, but the fp register
1562 // is saved separately in TF. 1562 // is saved separately in TF.
1563 int count = base::bits::CountPopulation32(saves); 1563 int count = base::bits::CountPopulation32(saves);
1564 DCHECK(kNumCalleeSaved == count + 1); 1564 DCHECK(kNumCalleeSaved == count + 1);
1565 frame()->AllocateSavedCalleeRegisterSlots(count); 1565 frame()->AllocateSavedCalleeRegisterSlots(count);
1566 } 1566 }
1567 } 1567 }
1568 1568
1569 1569
1570 void CodeGenerator::AssembleReturn() { 1570 void CodeGenerator::AssembleReturn() {
1571 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1571 const CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1572 int pop_count = static_cast<int>(descriptor->StackParameterCount()); 1572 int pop_count = static_cast<int>(descriptor->StackParameterCount());
1573 1573
1574 // Restore GP registers. 1574 // Restore GP registers.
1575 const RegList saves = descriptor->CalleeSavedRegisters(); 1575 const RegList saves = descriptor->CalleeSavedRegisters();
1576 if (saves != 0) { 1576 if (saves != 0) {
1577 __ MultiPop(saves); 1577 __ MultiPop(saves);
1578 } 1578 }
1579 1579
1580 // Restore FPU registers. 1580 // Restore FPU registers.
1581 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); 1581 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 padding_size -= v8::internal::Assembler::kInstrSize; 1811 padding_size -= v8::internal::Assembler::kInstrSize;
1812 } 1812 }
1813 } 1813 }
1814 } 1814 }
1815 1815
1816 #undef __ 1816 #undef __
1817 1817
1818 } // namespace compiler 1818 } // namespace compiler
1819 } // namespace internal 1819 } // namespace internal
1820 } // namespace v8 1820 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698