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/ppc/deoptimizer-ppc.cc

Issue 1010413003: CodeCleanup: eliminate unnecessary base class and make the children unvirtual. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/x64/deoptimizer-x64.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { 135 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) {
136 // There is no dynamic alignment padding on PPC in the input frame. 136 // There is no dynamic alignment padding on PPC in the input frame.
137 return false; 137 return false;
138 } 138 }
139 139
140 140
141 #define __ masm()-> 141 #define __ masm()->
142 142
143 // This code tries to be close to ia32 code so that any changes can be 143 // This code tries to be close to ia32 code so that any changes can be
144 // easily ported. 144 // easily ported.
145 void Deoptimizer::EntryGenerator::Generate() { 145 void Deoptimizer::TableEntryGenerator::Generate() {
146 GeneratePrologue(); 146 GeneratePrologue();
147 147
148 // Unlike on ARM we don't save all the registers, just the useful ones. 148 // Unlike on ARM we don't save all the registers, just the useful ones.
149 // For the rest, there are gaps on the stack, so the offsets remain the same. 149 // For the rest, there are gaps on the stack, so the offsets remain the same.
150 const int kNumberOfRegisters = Register::kNumRegisters; 150 const int kNumberOfRegisters = Register::kNumRegisters;
151 151
152 RegList restored_regs = kJSCallerSaved | kCalleeSaved; 152 RegList restored_regs = kJSCallerSaved | kCalleeSaved;
153 RegList saved_regs = restored_regs | sp.bit(); 153 RegList saved_regs = restored_regs | sp.bit();
154 154
155 const int kDoubleRegsSize = 155 const int kDoubleRegsSize =
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
359 // No out-of-line constant pool support. 359 // No out-of-line constant pool support.
360 UNREACHABLE(); 360 UNREACHABLE();
361 } 361 }
362 362
363 363
364 #undef __ 364 #undef __
365 } 365 }
366 } // namespace v8::internal 366 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/deoptimizer-mips64.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698