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

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

Issue 146883002: A64: Preserve/restore the FP registers in the exit frame when required. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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
« no previous file with comments | « no previous file | src/a64/macro-assembler-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 CPURegList::GetSafepointSavedRegisters().Count(); 54 CPURegList::GetSafepointSavedRegisters().Count();
55 55
56 class EntryFrameConstants : public AllStatic { 56 class EntryFrameConstants : public AllStatic {
57 public: 57 public:
58 static const int kCallerFPOffset = -3 * kPointerSize; 58 static const int kCallerFPOffset = -3 * kPointerSize;
59 }; 59 };
60 60
61 61
62 class ExitFrameConstants : public AllStatic { 62 class ExitFrameConstants : public AllStatic {
63 public: 63 public:
64 static const int kCallerSPDisplacement = 2 * kPointerSize; 64 static const int kCallerSPDisplacement = 2 * kPointerSize;
65 static const int kCallerPCOffset = 1 * kPointerSize; 65 static const int kCallerPCOffset = 1 * kPointerSize;
66 static const int kCallerFPOffset = 0 * kPointerSize; // <- fp 66 static const int kCallerFPOffset = 0 * kPointerSize; // <- fp
67 static const int kSPOffset = -1 * kPointerSize; 67 static const int kSPOffset = -1 * kPointerSize;
68 static const int kCodeOffset = -2 * kPointerSize; 68 static const int kCodeOffset = -2 * kPointerSize;
69 static const int kCallerSavedRegsOffset = -3 * kPointerSize; 69 static const int kLastExitFrameField = kCodeOffset;
70 }; 70 };
71 71
72 72
73 class JavaScriptFrameConstants : public AllStatic { 73 class JavaScriptFrameConstants : public AllStatic {
74 public: 74 public:
75 // FP-relative. 75 // FP-relative.
76 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; 76 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
77 77
78 // There are two words on the stack (saved fp and saved lr) between fp and 78 // There are two words on the stack (saved fp and saved lr) between fp and
79 // the arguments. 79 // the arguments.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 inline Object* JavaScriptFrame::function_slot_object() const { 116 inline Object* JavaScriptFrame::function_slot_object() const {
117 const int offset = JavaScriptFrameConstants::kFunctionOffset; 117 const int offset = JavaScriptFrameConstants::kFunctionOffset;
118 return Memory::Object_at(fp() + offset); 118 return Memory::Object_at(fp() + offset);
119 } 119 }
120 120
121 121
122 } } // namespace v8::internal 122 } } // namespace v8::internal
123 123
124 #endif // V8_A64_FRAMES_A64_H_ 124 #endif // V8_A64_FRAMES_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/macro-assembler-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698