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

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

Issue 7217011: ARM: Fix context save/restore for VFP registers. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 6 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/arm/code-stubs-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 1 << 5 | // r5 v2 65 1 << 5 | // r5 v2
66 1 << 6 | // r6 v3 66 1 << 6 | // r6 v3
67 1 << 7 | // r7 v4 67 1 << 7 | // r7 v4
68 1 << 8 | // r8 v5 (cp in JavaScript code) 68 1 << 8 | // r8 v5 (cp in JavaScript code)
69 kR9Available << 9 | // r9 v6 69 kR9Available << 9 | // r9 v6
70 1 << 10 | // r10 v7 70 1 << 10 | // r10 v7
71 1 << 11; // r11 v8 (fp in JavaScript code) 71 1 << 11; // r11 v8 (fp in JavaScript code)
72 72
73 static const int kNumCalleeSaved = 7 + kR9Available; 73 static const int kNumCalleeSaved = 7 + kR9Available;
74 74
75 // Double registers d8 to d15 are callee-saved.
76 static const int kNumDoubleCalleeSaved = 8;
77
75 78
76 // Number of registers for which space is reserved in safepoints. Must be a 79 // Number of registers for which space is reserved in safepoints. Must be a
77 // multiple of 8. 80 // multiple of 8.
78 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. 81 // TODO(regis): Only 8 registers may actually be sufficient. Revisit.
79 static const int kNumSafepointRegisters = 16; 82 static const int kNumSafepointRegisters = 16;
80 83
81 // Define the list of registers actually saved at safepoints. 84 // Define the list of registers actually saved at safepoints.
82 // Note that the number of saved registers may be smaller than the reserved 85 // Note that the number of saved registers may be smaller than the reserved
83 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. 86 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
84 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; 87 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 162
160 inline Object* JavaScriptFrame::function_slot_object() const { 163 inline Object* JavaScriptFrame::function_slot_object() const {
161 const int offset = JavaScriptFrameConstants::kFunctionOffset; 164 const int offset = JavaScriptFrameConstants::kFunctionOffset;
162 return Memory::Object_at(fp() + offset); 165 return Memory::Object_at(fp() + offset);
163 } 166 }
164 167
165 168
166 } } // namespace v8::internal 169 } } // namespace v8::internal
167 170
168 #endif // V8_ARM_FRAMES_ARM_H_ 171 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698