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

Side by Side Diff: src/frames.cc

Issue 6903060: Version 3.3.2.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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/flag-definitions.h ('k') | src/heap.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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 accumulator->Add("="); 931 accumulator->Add("=");
932 } 932 }
933 accumulator->Add("%o", GetParameter(i)); 933 accumulator->Add("%o", GetParameter(i));
934 } 934 }
935 935
936 accumulator->Add(")"); 936 accumulator->Add(")");
937 if (mode == OVERVIEW) { 937 if (mode == OVERVIEW) {
938 accumulator->Add("\n"); 938 accumulator->Add("\n");
939 return; 939 return;
940 } 940 }
941 if (is_optimized()) {
942 accumulator->Add(" {\n// optimized frame\n}\n");
943 return;
944 }
941 accumulator->Add(" {\n"); 945 accumulator->Add(" {\n");
942 946
943 // Compute the number of locals and expression stack elements. 947 // Compute the number of locals and expression stack elements.
944 int stack_locals_count = info.number_of_stack_slots(); 948 int stack_locals_count = info.number_of_stack_slots();
945 int heap_locals_count = info.number_of_context_slots(); 949 int heap_locals_count = info.number_of_context_slots();
946 int expressions_count = ComputeExpressionsCount(); 950 int expressions_count = ComputeExpressionsCount();
947 951
948 // Print stack-allocated local variables. 952 // Print stack-allocated local variables.
949 if (stack_locals_count > 0) { 953 if (stack_locals_count > 0) {
950 accumulator->Add(" // stack-allocated locals\n"); 954 accumulator->Add(" // stack-allocated locals\n");
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 ZoneList<StackFrame*> list(10); 1228 ZoneList<StackFrame*> list(10);
1225 for (StackFrameIterator it; !it.done(); it.Advance()) { 1229 for (StackFrameIterator it; !it.done(); it.Advance()) {
1226 StackFrame* frame = AllocateFrameCopy(it.frame()); 1230 StackFrame* frame = AllocateFrameCopy(it.frame());
1227 list.Add(frame); 1231 list.Add(frame);
1228 } 1232 }
1229 return list.ToVector(); 1233 return list.ToVector();
1230 } 1234 }
1231 1235
1232 1236
1233 } } // namespace v8::internal 1237 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698