OLD | NEW |
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 __ movsd(Operand(rsp, offset), xmm_reg); | 400 __ movsd(Operand(rsp, offset), xmm_reg); |
401 } | 401 } |
402 | 402 |
403 // We push all registers onto the stack, even though we do not need | 403 // We push all registers onto the stack, even though we do not need |
404 // to restore all later. | 404 // to restore all later. |
405 for (int i = 0; i < kNumberOfRegisters; i++) { | 405 for (int i = 0; i < kNumberOfRegisters; i++) { |
406 Register r = Register::from_code(i); | 406 Register r = Register::from_code(i); |
407 __ push(r); | 407 __ push(r); |
408 } | 408 } |
409 | 409 |
410 const int kSavedRegistersAreaSize = kNumberOfRegisters * kPointerSize + | 410 const int kSavedRegistersAreaSize = kNumberOfRegisters * kRegisterSize + |
411 kDoubleRegsSize; | 411 kDoubleRegsSize; |
412 | 412 |
413 // We use this to keep the value of the fifth argument temporarily. | 413 // We use this to keep the value of the fifth argument temporarily. |
414 // Unfortunately we can't store it directly in r8 (used for passing | 414 // Unfortunately we can't store it directly in r8 (used for passing |
415 // this on linux), since it is another parameter passing register on windows. | 415 // this on linux), since it is another parameter passing register on windows. |
416 Register arg5 = r11; | 416 Register arg5 = r11; |
417 | 417 |
418 // Get the bailout id from the stack. | 418 // Get the bailout id from the stack. |
419 __ movq(arg_reg_3, Operand(rsp, kSavedRegistersAreaSize)); | 419 __ movq(arg_reg_3, Operand(rsp, kSavedRegistersAreaSize)); |
420 | 420 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 SetFrameSlot(offset, value); | 587 SetFrameSlot(offset, value); |
588 } | 588 } |
589 | 589 |
590 | 590 |
591 #undef __ | 591 #undef __ |
592 | 592 |
593 | 593 |
594 } } // namespace v8::internal | 594 } } // namespace v8::internal |
595 | 595 |
596 #endif // V8_TARGET_ARCH_X64 | 596 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |