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

Side by Side Diff: src/ppc/deoptimizer-ppc.cc

Issue 1764593002: [deoptimizer] Removed dynamic frame alignment support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/mips64/deoptimizer-mips64.cc ('k') | src/s390/deoptimizer-s390.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/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 101
102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) { 103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) {
104 double double_value = input_->GetDoubleRegister(i); 104 double double_value = input_->GetDoubleRegister(i);
105 output_frame->SetDoubleRegister(i, double_value); 105 output_frame->SetDoubleRegister(i, double_value);
106 } 106 }
107 } 107 }
108 108
109 bool Deoptimizer::HasAlignmentPadding(SharedFunctionInfo* shared) {
110 // There is no dynamic alignment padding on PPC in the input frame.
111 return false;
112 }
113
114
115 #define __ masm()-> 109 #define __ masm()->
116 110
117 // This code tries to be close to ia32 code so that any changes can be 111 // This code tries to be close to ia32 code so that any changes can be
118 // easily ported. 112 // easily ported.
119 void Deoptimizer::TableEntryGenerator::Generate() { 113 void Deoptimizer::TableEntryGenerator::Generate() {
120 GeneratePrologue(); 114 GeneratePrologue();
121 115
122 // Unlike on ARM we don't save all the registers, just the useful ones. 116 // Unlike on ARM we don't save all the registers, just the useful ones.
123 // For the rest, there are gaps on the stack, so the offsets remain the same. 117 // For the rest, there are gaps on the stack, so the offsets remain the same.
124 const int kNumberOfRegisters = Register::kNumRegisters; 118 const int kNumberOfRegisters = Register::kNumRegisters;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 329
336 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 330 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
337 DCHECK(FLAG_enable_embedded_constant_pool); 331 DCHECK(FLAG_enable_embedded_constant_pool);
338 SetFrameSlot(offset, value); 332 SetFrameSlot(offset, value);
339 } 333 }
340 334
341 335
342 #undef __ 336 #undef __
343 } // namespace internal 337 } // namespace internal
344 } // namespace v8 338 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/deoptimizer-mips64.cc ('k') | src/s390/deoptimizer-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698