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

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

Issue 1641153003: [wasm] Initialize the root register for WASM tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@stackslot_cl
Patch Set: Removed the stray blank. 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
« no previous file with comments | « src/compiler/c-linkage.cc ('k') | src/compiler/linkage.h » ('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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 FrameScope frame_scope(masm(), StackFrame::MANUAL); 71 FrameScope frame_scope(masm(), StackFrame::MANUAL);
72 72
73 // Emit a code line info recording start event. 73 // Emit a code line info recording start event.
74 PositionsRecorder* recorder = masm()->positions_recorder(); 74 PositionsRecorder* recorder = masm()->positions_recorder();
75 LOG_CODE_EVENT(isolate(), CodeStartLinePosInfoRecordEvent(recorder)); 75 LOG_CODE_EVENT(isolate(), CodeStartLinePosInfoRecordEvent(recorder));
76 76
77 // Place function entry hook if requested to do so. 77 // Place function entry hook if requested to do so.
78 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { 78 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) {
79 ProfileEntryHookStub::MaybeCallEntryHook(masm()); 79 ProfileEntryHookStub::MaybeCallEntryHook(masm());
80 } 80 }
81
82 // Architecture-specific, linkage-specific prologue. 81 // Architecture-specific, linkage-specific prologue.
83 info->set_prologue_offset(masm()->pc_offset()); 82 info->set_prologue_offset(masm()->pc_offset());
84 AssemblePrologue(); 83 AssemblePrologue();
84 if (linkage()->GetIncomingDescriptor()->InitializeRootRegister()) {
85 masm()->InitializeRootRegister();
86 }
85 87
86 // Define deoptimization literals for all inlined functions. 88 // Define deoptimization literals for all inlined functions.
87 DCHECK_EQ(0u, deoptimization_literals_.size()); 89 DCHECK_EQ(0u, deoptimization_literals_.size());
88 for (auto& inlined : info->inlined_functions()) { 90 for (auto& inlined : info->inlined_functions()) {
89 if (!inlined.shared_info.is_identical_to(info->shared_info())) { 91 if (!inlined.shared_info.is_identical_to(info->shared_info())) {
90 DefineDeoptimizationLiteral(inlined.shared_info); 92 DefineDeoptimizationLiteral(inlined.shared_info);
91 } 93 }
92 } 94 }
93 inlined_function_count_ = deoptimization_literals_.size(); 95 inlined_function_count_ = deoptimization_literals_.size();
94 96
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 730 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
729 gen->ools_ = this; 731 gen->ools_ = this;
730 } 732 }
731 733
732 734
733 OutOfLineCode::~OutOfLineCode() {} 735 OutOfLineCode::~OutOfLineCode() {}
734 736
735 } // namespace compiler 737 } // namespace compiler
736 } // namespace internal 738 } // namespace internal
737 } // namespace v8 739 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/c-linkage.cc ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698