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

Side by Side Diff: src/frames.cc

Issue 8117001: Remove #include "isolate-inl.h" from v8.h. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 JSFunction::cast(data->LiteralArray()->get(function_id)); 881 JSFunction::cast(data->LiteralArray()->get(function_id));
882 functions->Add(function); 882 functions->Add(function);
883 } else { 883 } else {
884 // Skip over operands to advance to the next opcode. 884 // Skip over operands to advance to the next opcode.
885 it.Skip(Translation::NumberOfOperandsFor(opcode)); 885 it.Skip(Translation::NumberOfOperandsFor(opcode));
886 } 886 }
887 } 887 }
888 } 888 }
889 889
890 890
891 int ArgumentsAdaptorFrame::GetNumberOfIncomingArguments() const {
892 return Smi::cast(GetExpression(0))->value();
893 }
894
895
891 Address ArgumentsAdaptorFrame::GetCallerStackPointer() const { 896 Address ArgumentsAdaptorFrame::GetCallerStackPointer() const {
892 return fp() + StandardFrameConstants::kCallerSPOffset; 897 return fp() + StandardFrameConstants::kCallerSPOffset;
893 } 898 }
894 899
895 900
896 Address InternalFrame::GetCallerStackPointer() const { 901 Address InternalFrame::GetCallerStackPointer() const {
897 // Internal frames have no arguments. The stack pointer of the 902 // Internal frames have no arguments. The stack pointer of the
898 // caller is at a fixed offset from the frame pointer. 903 // caller is at a fixed offset from the frame pointer.
899 return fp() + StandardFrameConstants::kCallerSPOffset; 904 return fp() + StandardFrameConstants::kCallerSPOffset;
900 } 905 }
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 ZoneList<StackFrame*> list(10); 1319 ZoneList<StackFrame*> list(10);
1315 for (StackFrameIterator it; !it.done(); it.Advance()) { 1320 for (StackFrameIterator it; !it.done(); it.Advance()) {
1316 StackFrame* frame = AllocateFrameCopy(it.frame()); 1321 StackFrame* frame = AllocateFrameCopy(it.frame());
1317 list.Add(frame); 1322 list.Add(frame);
1318 } 1323 }
1319 return list.ToVector(); 1324 return list.ToVector();
1320 } 1325 }
1321 1326
1322 1327
1323 } } // namespace v8::internal 1328 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698