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

Side by Side Diff: src/arm/deoptimizer-arm.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 | « no previous file | src/arm64/deoptimizer-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { 128 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) {
129 // There is no dynamic alignment padding on ARM in the input frame. 129 // There is no dynamic alignment padding on ARM in the input frame.
130 return false; 130 return false;
131 } 131 }
132 132
133 133
134 #define __ masm()-> 134 #define __ masm()->
135 135
136 // This code tries to be close to ia32 code so that any changes can be 136 // This code tries to be close to ia32 code so that any changes can be
137 // easily ported. 137 // easily ported.
138 void Deoptimizer::EntryGenerator::Generate() { 138 void Deoptimizer::TableEntryGenerator::Generate() {
139 GeneratePrologue(); 139 GeneratePrologue();
140 140
141 // Save all general purpose registers before messing with them. 141 // Save all general purpose registers before messing with them.
142 const int kNumberOfRegisters = Register::kNumRegisters; 142 const int kNumberOfRegisters = Register::kNumRegisters;
143 143
144 // Everything but pc, lr and ip which will be saved but not restored. 144 // Everything but pc, lr and ip which will be saved but not restored.
145 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); 145 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit();
146 146
147 const int kDoubleRegsSize = 147 const int kDoubleRegsSize =
148 kDoubleSize * DwVfpRegister::kMaxNumAllocatableRegisters; 148 kDoubleSize * DwVfpRegister::kMaxNumAllocatableRegisters;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 355 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
356 DCHECK(FLAG_enable_ool_constant_pool); 356 DCHECK(FLAG_enable_ool_constant_pool);
357 SetFrameSlot(offset, value); 357 SetFrameSlot(offset, value);
358 } 358 }
359 359
360 360
361 #undef __ 361 #undef __
362 362
363 } } // namespace v8::internal 363 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/deoptimizer-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698