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

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

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 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 | « src/x64/deoptimizer-x64.cc ('k') | src/x64/full-codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 static const int kCallerFPOffset = 0 * kPointerSize; 92 static const int kCallerFPOffset = 0 * kPointerSize;
93 static const int kCallerPCOffset = +1 * kPointerSize; 93 static const int kCallerPCOffset = +1 * kPointerSize;
94 static const int kCallerSPOffset = +2 * kPointerSize; 94 static const int kCallerSPOffset = +2 * kPointerSize;
95 }; 95 };
96 96
97 97
98 class JavaScriptFrameConstants : public AllStatic { 98 class JavaScriptFrameConstants : public AllStatic {
99 public: 99 public:
100 // FP-relative. 100 // FP-relative.
101 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; 101 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
102 static const int kLastParameterOffset = +2 * kPointerSize; 102 static const int kSavedRegistersOffset = +2 * kPointerSize;
103 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 103 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
104 104
105 // Caller SP-relative. 105 // Caller SP-relative.
106 static const int kParam0Offset = -2 * kPointerSize; 106 static const int kParam0Offset = -2 * kPointerSize;
107 static const int kReceiverOffset = -1 * kPointerSize; 107 static const int kReceiverOffset = -1 * kPointerSize;
108 }; 108 };
109 109
110 110
111 class ArgumentsAdaptorFrameConstants : public AllStatic { 111 class ArgumentsAdaptorFrameConstants : public AllStatic {
112 public: 112 public:
113 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 113 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
114 }; 114 };
115 115
116 116
117 class InternalFrameConstants : public AllStatic { 117 class InternalFrameConstants : public AllStatic {
118 public: 118 public:
119 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 119 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
120 }; 120 };
121 121
122 122
123 inline Object* JavaScriptFrame::function_slot_object() const { 123 inline Object* JavaScriptFrame::function_slot_object() const {
124 const int offset = JavaScriptFrameConstants::kFunctionOffset; 124 const int offset = JavaScriptFrameConstants::kFunctionOffset;
125 return Memory::Object_at(fp() + offset); 125 return Memory::Object_at(fp() + offset);
126 } 126 }
127 127
128 } } // namespace v8::internal 128 } } // namespace v8::internal
129 129
130 #endif // V8_X64_FRAMES_X64_H_ 130 #endif // V8_X64_FRAMES_X64_H_
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698