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

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

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/frames.cc ('k') | src/globals.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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 inline void JavaScriptFrame::set_receiver(Object* value) { 269 inline void JavaScriptFrame::set_receiver(Object* value) {
270 Memory::Object_at(GetParameterSlot(-1)) = value; 270 Memory::Object_at(GetParameterSlot(-1)) = value;
271 } 271 }
272 272
273 273
274 inline bool JavaScriptFrame::has_adapted_arguments() const { 274 inline bool JavaScriptFrame::has_adapted_arguments() const {
275 return IsArgumentsAdaptorFrame(caller_fp()); 275 return IsArgumentsAdaptorFrame(caller_fp());
276 } 276 }
277 277
278 278
279 inline Object* JavaScriptFrame::function() const { 279 inline JSFunction* JavaScriptFrame::function() const {
280 Object* result = function_slot_object(); 280 return JSFunction::cast(function_slot_object());
281 ASSERT(result->IsJSFunction());
282 return result;
283 } 281 }
284 282
285 283
286 inline StubFrame::StubFrame(StackFrameIteratorBase* iterator) 284 inline StubFrame::StubFrame(StackFrameIteratorBase* iterator)
287 : StandardFrame(iterator) { 285 : StandardFrame(iterator) {
288 } 286 }
289 287
290 288
291 inline OptimizedFrame::OptimizedFrame(StackFrameIteratorBase* iterator) 289 inline OptimizedFrame::OptimizedFrame(StackFrameIteratorBase* iterator)
292 : JavaScriptFrame(iterator) { 290 : JavaScriptFrame(iterator) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 inline JavaScriptFrame* SafeStackFrameIterator::frame() const { 339 inline JavaScriptFrame* SafeStackFrameIterator::frame() const {
342 ASSERT(!done()); 340 ASSERT(!done());
343 ASSERT(frame_->is_java_script()); 341 ASSERT(frame_->is_java_script());
344 return static_cast<JavaScriptFrame*>(frame_); 342 return static_cast<JavaScriptFrame*>(frame_);
345 } 343 }
346 344
347 345
348 } } // namespace v8::internal 346 } } // namespace v8::internal
349 347
350 #endif // V8_FRAMES_INL_H_ 348 #endif // V8_FRAMES_INL_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698