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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 11498006: Revert 13157, 13145 and 13140: Crankshaft code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/x64/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3414 matching lines...) Expand 10 before | Expand all | Expand 10 after
3425 #ifdef _WIN64 3425 #ifdef _WIN64
3426 const int kShadowSpace = 4; 3426 const int kShadowSpace = 4;
3427 arg_stack_space += kShadowSpace; 3427 arg_stack_space += kShadowSpace;
3428 #endif 3428 #endif
3429 // Optionally save all XMM registers. 3429 // Optionally save all XMM registers.
3430 if (save_doubles) { 3430 if (save_doubles) {
3431 int space = XMMRegister::kNumRegisters * kDoubleSize + 3431 int space = XMMRegister::kNumRegisters * kDoubleSize +
3432 arg_stack_space * kPointerSize; 3432 arg_stack_space * kPointerSize;
3433 subq(rsp, Immediate(space)); 3433 subq(rsp, Immediate(space));
3434 int offset = -2 * kPointerSize; 3434 int offset = -2 * kPointerSize;
3435 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); i++) { 3435 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) {
3436 XMMRegister reg = XMMRegister::FromAllocationIndex(i); 3436 XMMRegister reg = XMMRegister::FromAllocationIndex(i);
3437 movsd(Operand(rbp, offset - ((i + 1) * kDoubleSize)), reg); 3437 movsd(Operand(rbp, offset - ((i + 1) * kDoubleSize)), reg);
3438 } 3438 }
3439 } else if (arg_stack_space > 0) { 3439 } else if (arg_stack_space > 0) {
3440 subq(rsp, Immediate(arg_stack_space * kPointerSize)); 3440 subq(rsp, Immediate(arg_stack_space * kPointerSize));
3441 } 3441 }
3442 3442
3443 // Get the required frame alignment for the OS. 3443 // Get the required frame alignment for the OS.
3444 const int kFrameAlignment = OS::ActivationFrameAlignment(); 3444 const int kFrameAlignment = OS::ActivationFrameAlignment();
3445 if (kFrameAlignment > 0) { 3445 if (kFrameAlignment > 0) {
(...skipping 23 matching lines...) Expand all
3469 EnterExitFramePrologue(false); 3469 EnterExitFramePrologue(false);
3470 EnterExitFrameEpilogue(arg_stack_space, false); 3470 EnterExitFrameEpilogue(arg_stack_space, false);
3471 } 3471 }
3472 3472
3473 3473
3474 void MacroAssembler::LeaveExitFrame(bool save_doubles) { 3474 void MacroAssembler::LeaveExitFrame(bool save_doubles) {
3475 // Registers: 3475 // Registers:
3476 // r15 : argv 3476 // r15 : argv
3477 if (save_doubles) { 3477 if (save_doubles) {
3478 int offset = -2 * kPointerSize; 3478 int offset = -2 * kPointerSize;
3479 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); i++) { 3479 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) {
3480 XMMRegister reg = XMMRegister::FromAllocationIndex(i); 3480 XMMRegister reg = XMMRegister::FromAllocationIndex(i);
3481 movsd(reg, Operand(rbp, offset - ((i + 1) * kDoubleSize))); 3481 movsd(reg, Operand(rbp, offset - ((i + 1) * kDoubleSize)));
3482 } 3482 }
3483 } 3483 }
3484 // Get the return address from the stack and restore the frame pointer. 3484 // Get the return address from the stack and restore the frame pointer.
3485 movq(rcx, Operand(rbp, 1 * kPointerSize)); 3485 movq(rcx, Operand(rbp, 1 * kPointerSize));
3486 movq(rbp, Operand(rbp, 0 * kPointerSize)); 3486 movq(rbp, Operand(rbp, 0 * kPointerSize));
3487 3487
3488 // Drop everything up to and including the arguments and the receiver 3488 // Drop everything up to and including the arguments and the receiver
3489 // from the caller stack. 3489 // from the caller stack.
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
4585 4585
4586 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); 4586 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset));
4587 cmpq(rcx, null_value); 4587 cmpq(rcx, null_value);
4588 j(not_equal, &next); 4588 j(not_equal, &next);
4589 } 4589 }
4590 4590
4591 4591
4592 } } // namespace v8::internal 4592 } } // namespace v8::internal
4593 4593
4594 #endif // V8_TARGET_ARCH_X64 4594 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698