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

Side by Side Diff: src/frames.cc

Issue 17833002: Remove obsolete unchecked accessors in JSFunction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/heap-snapshot-generator.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 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 if (has_adapted_arguments()) { 734 if (has_adapted_arguments()) {
735 return Smi::cast(GetExpression(caller_fp(), 0))->value(); 735 return Smi::cast(GetExpression(caller_fp(), 0))->value();
736 } else { 736 } else {
737 return GetNumberOfIncomingArguments(); 737 return GetNumberOfIncomingArguments();
738 } 738 }
739 } 739 }
740 740
741 741
742 Code* JavaScriptFrame::unchecked_code() const { 742 Code* JavaScriptFrame::unchecked_code() const {
743 JSFunction* function = JSFunction::cast(this->function()); 743 JSFunction* function = JSFunction::cast(this->function());
744 return function->unchecked_code(); 744 return function->code();
745 } 745 }
746 746
747 747
748 int JavaScriptFrame::GetNumberOfIncomingArguments() const { 748 int JavaScriptFrame::GetNumberOfIncomingArguments() const {
749 ASSERT(can_access_heap_objects() && 749 ASSERT(can_access_heap_objects() &&
750 isolate()->heap()->gc_state() == Heap::NOT_IN_GC); 750 isolate()->heap()->gc_state() == Heap::NOT_IN_GC);
751 751
752 JSFunction* function = JSFunction::cast(this->function()); 752 JSFunction* function = JSFunction::cast(this->function());
753 return function->shared()->formal_parameter_count(); 753 return function->shared()->formal_parameter_count();
754 } 754 }
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 ZoneList<StackFrame*> list(10, zone); 1621 ZoneList<StackFrame*> list(10, zone);
1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1624 list.Add(frame, zone); 1624 list.Add(frame, zone);
1625 } 1625 }
1626 return list.ToVector(); 1626 return list.ToVector();
1627 } 1627 }
1628 1628
1629 1629
1630 } } // namespace v8::internal 1630 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698