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

Side by Side Diff: src/compiler/code-generator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/address-map.h" 7 #include "src/address-map.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 712 }
713 } 713 }
714 714
715 715
716 void CodeGenerator::MarkLazyDeoptSite() { 716 void CodeGenerator::MarkLazyDeoptSite() {
717 last_lazy_deopt_pc_ = masm()->pc_offset(); 717 last_lazy_deopt_pc_ = masm()->pc_offset();
718 } 718 }
719 719
720 720
721 int CodeGenerator::TailCallFrameStackSlotDelta(int stack_param_delta) { 721 int CodeGenerator::TailCallFrameStackSlotDelta(int stack_param_delta) {
722 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 722 const CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
723 int spill_slots = frame()->GetSpillSlotCount(); 723 int spill_slots = frame()->GetSpillSlotCount();
724 bool has_frame = descriptor->IsJSFunctionCall() || spill_slots > 0; 724 bool has_frame = descriptor->IsJSFunctionCall() || spill_slots > 0;
725 // Leave the PC on the stack on platforms that have that as part of their ABI 725 // Leave the PC on the stack on platforms that have that as part of their ABI
726 int pc_slots = V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK ? 1 : 0; 726 int pc_slots = V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK ? 1 : 0;
727 int sp_slot_delta = 727 int sp_slot_delta =
728 has_frame ? (frame()->GetTotalFrameSlotCount() - pc_slots) : 0; 728 has_frame ? (frame()->GetTotalFrameSlotCount() - pc_slots) : 0;
729 // Discard only slots that won't be used by new parameters. 729 // Discard only slots that won't be used by new parameters.
730 sp_slot_delta += stack_param_delta; 730 sp_slot_delta += stack_param_delta;
731 return sp_slot_delta; 731 return sp_slot_delta;
732 } 732 }
733 733
734 734
735 OutOfLineCode::OutOfLineCode(CodeGenerator* gen) 735 OutOfLineCode::OutOfLineCode(CodeGenerator* gen)
736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
737 gen->ools_ = this; 737 gen->ools_ = this;
738 } 738 }
739 739
740 740
741 OutOfLineCode::~OutOfLineCode() {} 741 OutOfLineCode::~OutOfLineCode() {}
742 742
743 } // namespace compiler 743 } // namespace compiler
744 } // namespace internal 744 } // namespace internal
745 } // namespace v8 745 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698