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

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

Issue 6368013: Port changes from x64 deoptimizer to ia32 and remove commented out code from ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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
« src/ia32/deoptimizer-ia32.cc ('K') | « src/ia32/deoptimizer-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5); 375 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5);
376 // Preserve deoptimizer object in register rax and get the input 376 // Preserve deoptimizer object in register rax and get the input
377 // frame descriptor pointer. 377 // frame descriptor pointer.
378 __ movq(rbx, Operand(rax, Deoptimizer::input_offset())); 378 __ movq(rbx, Operand(rax, Deoptimizer::input_offset()));
379 379
380 // Fill in the input registers. 380 // Fill in the input registers.
381 for (int i = kNumberOfRegisters -1; i >= 0; i--) { 381 for (int i = kNumberOfRegisters -1; i >= 0; i--) {
382 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); 382 int offset = (i * kPointerSize) + FrameDescription::registers_offset();
383 __ pop(Operand(rbx, offset)); 383 __ pop(Operand(rbx, offset));
384 // __ movq(rcx, Operand(rsp, (kNumberOfRegisters - 1 - i) * kPointerSize));
385 // __ movq(Operand(rbx, offset), rcx);
386 } 384 }
387 385
388 // Fill in the double input registers. 386 // Fill in the double input registers.
389 int double_regs_offset = FrameDescription::double_registers_offset(); 387 int double_regs_offset = FrameDescription::double_registers_offset();
390 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) { 388 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) {
391 int dst_offset = i * kDoubleSize + double_regs_offset; 389 int dst_offset = i * kDoubleSize + double_regs_offset;
392 __ pop(Operand(rbx, dst_offset)); 390 __ pop(Operand(rbx, dst_offset));
393 } 391 }
394 392
395 // Remove the bailout id and the general purpose registers from the stack. 393 // Remove the bailout id from the stack.
396 if (type() == EAGER) { 394 if (type() == EAGER) {
397 __ addq(rsp, Immediate(kPointerSize)); 395 __ addq(rsp, Immediate(kPointerSize));
398 } else { 396 } else {
399 __ addq(rsp, Immediate(2 * kPointerSize)); 397 __ addq(rsp, Immediate(2 * kPointerSize));
400 } 398 }
401 399
402 // Compute a pointer to the unwinding limit in register ecx; that is 400 // Compute a pointer to the unwinding limit in register ecx; that is
403 // the first stack slot not part of the input frame. 401 // the first stack slot not part of the input frame.
404 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset())); 402 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset()));
405 __ addq(rcx, rsp); 403 __ addq(rcx, rsp);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 499 }
502 __ bind(&done); 500 __ bind(&done);
503 } 501 }
504 502
505 #undef __ 503 #undef __
506 504
507 505
508 } } // namespace v8::internal 506 } } // namespace v8::internal
509 507
510 #endif // V8_TARGET_ARCH_X64 508 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/deoptimizer-ia32.cc ('K') | « src/ia32/deoptimizer-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698