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

Side by Side Diff: src/x64/frames-x64.h

Issue 213413010: Use RegisterSize to count the pushq size and the argument slot size from JS to C++ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | « no previous file | src/x64/regexp-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 // 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // ---------------------------------------------------- 49 // ----------------------------------------------------
50 50
51 class EntryFrameConstants : public AllStatic { 51 class EntryFrameConstants : public AllStatic {
52 public: 52 public:
53 #ifdef _WIN64 53 #ifdef _WIN64
54 static const int kCalleeSaveXMMRegisters = 10; 54 static const int kCalleeSaveXMMRegisters = 10;
55 static const int kXMMRegisterSize = 16; 55 static const int kXMMRegisterSize = 16;
56 static const int kXMMRegistersBlockSize = 56 static const int kXMMRegistersBlockSize =
57 kXMMRegisterSize * kCalleeSaveXMMRegisters; 57 kXMMRegisterSize * kCalleeSaveXMMRegisters;
58 static const int kCallerFPOffset = 58 static const int kCallerFPOffset =
59 -10 * kPointerSize - kXMMRegistersBlockSize; 59 -3 * kPointerSize + -7 * kRegisterSize - kXMMRegistersBlockSize;
60 #else 60 #else
61 static const int kCallerFPOffset = -8 * kPointerSize; 61 // We have 3 Push and 5 pushq in the JSEntryStub::GenerateBody.
62 static const int kCallerFPOffset = -3 * kPointerSize + -5 * kRegisterSize;
62 #endif 63 #endif
63 static const int kArgvOffset = 6 * kPointerSize; 64 static const int kArgvOffset = 6 * kPointerSize;
64 }; 65 };
65 66
66 67
67 class ExitFrameConstants : public AllStatic { 68 class ExitFrameConstants : public AllStatic {
68 public: 69 public:
69 static const int kFrameSize = 2 * kPointerSize; 70 static const int kFrameSize = 2 * kPointerSize;
70 71
71 static const int kCodeOffset = -2 * kPointerSize; 72 static const int kCodeOffset = -2 * kPointerSize;
72 static const int kSPOffset = -1 * kPointerSize; 73 static const int kSPOffset = -1 * kPointerSize;
73 74
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 134
134 inline void StackHandler::SetFp(Address slot, Address fp) { 135 inline void StackHandler::SetFp(Address slot, Address fp) {
135 Memory::Address_at(slot) = fp; 136 Memory::Address_at(slot) = fp;
136 } 137 }
137 138
138 139
139 } } // namespace v8::internal 140 } } // namespace v8::internal
140 141
141 #endif // V8_X64_FRAMES_X64_H_ 142 #endif // V8_X64_FRAMES_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/regexp-macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698