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

Side by Side Diff: src/x64/deoptimizer-x64.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/ppc/deoptimizer-ppc.cc ('k') | src/x87/deoptimizer-x87.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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 128
129 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { 129 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) {
130 // There is no dynamic alignment padding on x64 in the input frame. 130 // There is no dynamic alignment padding on x64 in the input frame.
131 return false; 131 return false;
132 } 132 }
133 133
134 134
135 #define __ masm()-> 135 #define __ masm()->
136 136
137 void Deoptimizer::EntryGenerator::Generate() { 137 void Deoptimizer::TableEntryGenerator::Generate() {
138 GeneratePrologue(); 138 GeneratePrologue();
139 139
140 // Save all general purpose registers before messing with them. 140 // Save all general purpose registers before messing with them.
141 const int kNumberOfRegisters = Register::kNumRegisters; 141 const int kNumberOfRegisters = Register::kNumRegisters;
142 142
143 const int kDoubleRegsSize = kDoubleSize * 143 const int kDoubleRegsSize = kDoubleSize *
144 XMMRegister::NumAllocatableRegisters(); 144 XMMRegister::NumAllocatableRegisters();
145 __ subp(rsp, Immediate(kDoubleRegsSize)); 145 __ subp(rsp, Immediate(kDoubleRegsSize));
146 146
147 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { 147 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 UNREACHABLE(); 350 UNREACHABLE();
351 } 351 }
352 352
353 353
354 #undef __ 354 #undef __
355 355
356 356
357 } } // namespace v8::internal 357 } } // namespace v8::internal
358 358
359 #endif // V8_TARGET_ARCH_X64 359 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/deoptimizer-ppc.cc ('k') | src/x87/deoptimizer-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698