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

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

Issue 20262004: Use kRegisterSize when calling C++ runtime (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698