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

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

Issue 190663009: A64: Add and use a double register which holds the 0.0 value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/codegen-a64.cc ('k') | src/a64/lithium-codegen-a64.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void Deoptimizer::EntryGenerator::Generate() { 143 void Deoptimizer::EntryGenerator::Generate() {
144 GeneratePrologue(); 144 GeneratePrologue();
145 145
146 // TODO(all): This code needs to be revisited. We probably only need to save 146 // TODO(all): This code needs to be revisited. We probably only need to save
147 // caller-saved registers here. Callee-saved registers can be stored directly 147 // caller-saved registers here. Callee-saved registers can be stored directly
148 // in the input frame. 148 // in the input frame.
149 149
150 // Save all allocatable floating point registers. 150 // Save all allocatable floating point registers.
151 CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSize, 151 CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSize,
152 0, FPRegister::NumAllocatableRegisters() - 1); 152 FPRegister::kAllocatableFPRegisters);
153 __ PushCPURegList(saved_fp_registers); 153 __ PushCPURegList(saved_fp_registers);
154 154
155 // We save all the registers expcept jssp, sp and lr. 155 // We save all the registers expcept jssp, sp and lr.
156 CPURegList saved_registers(CPURegister::kRegister, kXRegSize, 0, 27); 156 CPURegList saved_registers(CPURegister::kRegister, kXRegSize, 0, 27);
157 saved_registers.Combine(fp); 157 saved_registers.Combine(fp);
158 __ PushCPURegList(saved_registers); 158 __ PushCPURegList(saved_registers);
159 159
160 const int kSavedRegistersAreaSize = 160 const int kSavedRegistersAreaSize =
161 (saved_registers.Count() * kXRegSizeInBytes) + 161 (saved_registers.Count() * kXRegSizeInBytes) +
162 (saved_fp_registers.Count() * kDRegSizeInBytes); 162 (saved_fp_registers.Count() * kDRegSizeInBytes);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 373
374 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { 374 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
375 SetFrameSlot(offset, value); 375 SetFrameSlot(offset, value);
376 } 376 }
377 377
378 378
379 #undef __ 379 #undef __
380 380
381 } } // namespace v8::internal 381 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/codegen-a64.cc ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698