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

Side by Side Diff: src/mips/deoptimizer-mips.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/ia32/deoptimizer-ia32.cc ('k') | src/mips64/deoptimizer-mips64.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 1
2 // Copyright 2011 the V8 project authors. All rights reserved. 2 // Copyright 2011 the V8 project authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen.h" 10 #include "src/full-codegen.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // There is no dynamic alignment padding on MIPS in the input frame. 125 // There is no dynamic alignment padding on MIPS in the input frame.
126 return false; 126 return false;
127 } 127 }
128 128
129 129
130 #define __ masm()-> 130 #define __ masm()->
131 131
132 132
133 // This code tries to be close to ia32 code so that any changes can be 133 // This code tries to be close to ia32 code so that any changes can be
134 // easily ported. 134 // easily ported.
135 void Deoptimizer::EntryGenerator::Generate() { 135 void Deoptimizer::TableEntryGenerator::Generate() {
136 GeneratePrologue(); 136 GeneratePrologue();
137 137
138 // Unlike on ARM we don't save all the registers, just the useful ones. 138 // Unlike on ARM we don't save all the registers, just the useful ones.
139 // For the rest, there are gaps on the stack, so the offsets remain the same. 139 // For the rest, there are gaps on the stack, so the offsets remain the same.
140 const int kNumberOfRegisters = Register::kNumRegisters; 140 const int kNumberOfRegisters = Register::kNumRegisters;
141 141
142 RegList restored_regs = kJSCallerSaved | kCalleeSaved; 142 RegList restored_regs = kJSCallerSaved | kCalleeSaved;
143 RegList saved_regs = restored_regs | sp.bit() | ra.bit(); 143 RegList saved_regs = restored_regs | sp.bit() | ra.bit();
144 144
145 const int kDoubleRegsSize = 145 const int kDoubleRegsSize =
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 401 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
402 // No out-of-line constant pool support. 402 // No out-of-line constant pool support.
403 UNREACHABLE(); 403 UNREACHABLE();
404 } 404 }
405 405
406 406
407 #undef __ 407 #undef __
408 408
409 409
410 } } // namespace v8::internal 410 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/mips64/deoptimizer-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698