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

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

Issue 2623773004: [wasm] Introduce WasmToInterpreterFrame (Closed)
Patch Set: Replace StackFrame::WASM occurences in platform-specific code 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
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/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 gen_(gen) {} 1688 gen_(gen) {}
1689 1689
1690 void Generate() final { 1690 void Generate() final {
1691 IA32OperandConverter i(gen_, instr_); 1691 IA32OperandConverter i(gen_, instr_);
1692 1692
1693 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( 1693 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>(
1694 i.InputInt32(instr_->InputCount() - 1)); 1694 i.InputInt32(instr_->InputCount() - 1));
1695 bool old_has_frame = __ has_frame(); 1695 bool old_has_frame = __ has_frame();
1696 if (frame_elided_) { 1696 if (frame_elided_) {
1697 __ set_has_frame(true); 1697 __ set_has_frame(true);
1698 __ EnterFrame(StackFrame::WASM); 1698 __ EnterFrame(StackFrame::WASM_COMPILED);
1699 } 1699 }
1700 GenerateCallToTrap(trap_id); 1700 GenerateCallToTrap(trap_id);
1701 if (frame_elided_) { 1701 if (frame_elided_) {
1702 ReferenceMap* reference_map = 1702 ReferenceMap* reference_map =
1703 new (gen_->zone()) ReferenceMap(gen_->zone()); 1703 new (gen_->zone()) ReferenceMap(gen_->zone());
1704 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, 1704 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0,
1705 Safepoint::kNoLazyDeopt); 1705 Safepoint::kNoLazyDeopt);
1706 __ set_has_frame(old_has_frame); 1706 __ set_has_frame(old_has_frame);
1707 } 1707 }
1708 if (FLAG_debug_code) { 1708 if (FLAG_debug_code) {
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2303 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2304 __ Nop(padding_size); 2304 __ Nop(padding_size);
2305 } 2305 }
2306 } 2306 }
2307 2307
2308 #undef __ 2308 #undef __
2309 2309
2310 } // namespace compiler 2310 } // namespace compiler
2311 } // namespace internal 2311 } // namespace internal
2312 } // namespace v8 2312 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698