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

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

Issue 2623773004: [wasm] Introduce WasmToInterpreterFrame (Closed)
Patch Set: Renaming Created 3 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 | « src/compilation-info.cc ('k') | src/compiler/arm64/code-generator-arm64.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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compilation-info.h" 8 #include "src/compilation-info.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 gen_(gen) {} 1706 gen_(gen) {}
1707 1707
1708 void Generate() final { 1708 void Generate() final {
1709 ArmOperandConverter i(gen_, instr_); 1709 ArmOperandConverter i(gen_, instr_);
1710 1710
1711 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( 1711 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>(
1712 i.InputInt32(instr_->InputCount() - 1)); 1712 i.InputInt32(instr_->InputCount() - 1));
1713 bool old_has_frame = __ has_frame(); 1713 bool old_has_frame = __ has_frame();
1714 if (frame_elided_) { 1714 if (frame_elided_) {
1715 __ set_has_frame(true); 1715 __ set_has_frame(true);
1716 __ EnterFrame(StackFrame::WASM); 1716 __ EnterFrame(StackFrame::WASM_COMPILED);
1717 } 1717 }
1718 GenerateCallToTrap(trap_id); 1718 GenerateCallToTrap(trap_id);
1719 if (frame_elided_) { 1719 if (frame_elided_) {
1720 __ set_has_frame(old_has_frame); 1720 __ set_has_frame(old_has_frame);
1721 } 1721 }
1722 if (FLAG_debug_code) { 1722 if (FLAG_debug_code) {
1723 __ stop(GetBailoutReason(kUnexpectedReturnFromWasmTrap)); 1723 __ stop(GetBailoutReason(kUnexpectedReturnFromWasmTrap));
1724 } 1724 }
1725 } 1725 }
1726 1726
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 padding_size -= v8::internal::Assembler::kInstrSize; 2267 padding_size -= v8::internal::Assembler::kInstrSize;
2268 } 2268 }
2269 } 2269 }
2270 } 2270 }
2271 2271
2272 #undef __ 2272 #undef __
2273 2273
2274 } // namespace compiler 2274 } // namespace compiler
2275 } // namespace internal 2275 } // namespace internal
2276 } // namespace v8 2276 } // namespace v8
OLDNEW
« no previous file with comments | « src/compilation-info.cc ('k') | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698