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

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

Issue 926553004: [x64] Make r12 allocatable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // and overwrite this afterwards. 300 // and overwrite this afterwards.
301 if (r.is(rsp)) { 301 if (r.is(rsp)) {
302 DCHECK(i > 0); 302 DCHECK(i > 0);
303 r = Register::from_code(i - 1); 303 r = Register::from_code(i - 1);
304 } 304 }
305 __ popq(r); 305 __ popq(r);
306 } 306 }
307 307
308 // Set up the roots register. 308 // Set up the roots register.
309 __ InitializeRootRegister(); 309 __ InitializeRootRegister();
310 __ InitializeSmiConstantRegister();
311 310
312 // Return to the continuation point. 311 // Return to the continuation point.
313 __ ret(0); 312 __ ret(0);
314 } 313 }
315 314
316 315
317 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { 316 void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
318 // Create a sequence of deoptimization entries. 317 // Create a sequence of deoptimization entries.
319 Label done; 318 Label done;
320 for (int i = 0; i < count(); i++) { 319 for (int i = 0; i < count(); i++) {
(...skipping 30 matching lines...) Expand all
351 UNREACHABLE(); 350 UNREACHABLE();
352 } 351 }
353 352
354 353
355 #undef __ 354 #undef __
356 355
357 356
358 } } // namespace v8::internal 357 } } // namespace v8::internal
359 358
360 #endif // V8_TARGET_ARCH_X64 359 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698