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

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

Issue 50052: Support profiler stack sampling in any situation. (Closed)
Patch Set: Fixes according to comments Created 11 years, 9 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
« no previous file with comments | « src/frames-arm.h ('k') | src/frames-inl.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 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
123 }; 123 };
124 124
125 125
126 class InternalFrameConstants : public AllStatic { 126 class InternalFrameConstants : public AllStatic {
127 public: 127 public:
128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
129 }; 129 };
130 130
131 131
132 inline Object* JavaScriptFrame::function() const { 132 inline Object* JavaScriptFrame::function_slot_object() const {
133 const int offset = JavaScriptFrameConstants::kFunctionOffset; 133 const int offset = JavaScriptFrameConstants::kFunctionOffset;
134 Object* result = Memory::Object_at(fp() + offset); 134 return Memory::Object_at(fp() + offset);
135 ASSERT(result->IsJSFunction());
136 return result;
137 } 135 }
138 136
139 137
140 // ---------------------------------------------------- 138 // ----------------------------------------------------
141 139
142 140
143 141
144 142
145 // C Entry frames: 143 // C Entry frames:
146 144
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // 6 | argv | v 282 // 6 | argv | v
285 // +-------------+ <--- 283 // +-------------+ <---
286 // | | 284 // | |
287 // higher | | 285 // higher | |
288 // addresses | | 286 // addresses | |
289 287
290 288
291 } } // namespace v8::internal 289 } } // namespace v8::internal
292 290
293 #endif // V8_FRAMES_IA32_H_ 291 #endif // V8_FRAMES_IA32_H_
OLDNEW
« no previous file with comments | « src/frames-arm.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698