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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/frames-arm64.h" 5 #include "src/arm64/frames-arm64.h"
6 #include "src/codegen.h" 6 #include "src/codegen.h"
7 #include "src/deoptimizer.h" 7 #include "src/deoptimizer.h"
8 #include "src/full-codegen/full-codegen.h" 8 #include "src/full-codegen/full-codegen.h"
9 #include "src/register-configuration.h" 9 #include "src/register-configuration.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void Deoptimizer::TableEntryGenerator::Generate() { 118 void Deoptimizer::TableEntryGenerator::Generate() {
119 GeneratePrologue(); 119 GeneratePrologue();
120 120
121 // TODO(all): This code needs to be revisited. We probably only need to save 121 // TODO(all): This code needs to be revisited. We probably only need to save
122 // caller-saved registers here. Callee-saved registers can be stored directly 122 // caller-saved registers here. Callee-saved registers can be stored directly
123 // in the input frame. 123 // in the input frame.
124 124
125 // Save all allocatable floating point registers. 125 // Save all allocatable floating point registers.
126 CPURegList saved_fp_registers( 126 CPURegList saved_fp_registers(
127 CPURegister::kFPRegister, kDRegSizeInBits, 127 CPURegister::kFPRegister, kDRegSizeInBits,
128 RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask()); 128 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT)
129 ->allocatable_double_codes_mask());
129 __ PushCPURegList(saved_fp_registers); 130 __ PushCPURegList(saved_fp_registers);
130 131
131 // We save all the registers expcept jssp, sp and lr. 132 // We save all the registers expcept jssp, sp and lr.
132 CPURegList saved_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 27); 133 CPURegList saved_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 27);
133 saved_registers.Combine(fp); 134 saved_registers.Combine(fp);
134 __ PushCPURegList(saved_registers); 135 __ PushCPURegList(saved_registers);
135 136
136 __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); 137 __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
137 __ Str(fp, MemOperand(x3)); 138 __ Str(fp, MemOperand(x3));
138 139
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
358 // No embedded constant pool support. 359 // No embedded constant pool support.
359 UNREACHABLE(); 360 UNREACHABLE();
360 } 361 }
361 362
362 363
363 #undef __ 364 #undef __
364 365
365 } // namespace internal 366 } // namespace internal
366 } // namespace v8 367 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698