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

Side by Side Diff: src/frames.cc

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 accumulator->PrintSecurityTokenIfChanged(function); 1080 accumulator->PrintSecurityTokenIfChanged(function);
1081 PrintIndex(accumulator, mode, index); 1081 PrintIndex(accumulator, mode, index);
1082 Code* code = NULL; 1082 Code* code = NULL;
1083 if (IsConstructor()) accumulator->Add("new "); 1083 if (IsConstructor()) accumulator->Add("new ");
1084 accumulator->PrintFunction(function, receiver, &code); 1084 accumulator->PrintFunction(function, receiver, &code);
1085 1085
1086 // Get scope information for nicer output, if possible. If code is NULL, or 1086 // Get scope information for nicer output, if possible. If code is NULL, or
1087 // doesn't contain scope info, scope_info will return 0 for the number of 1087 // doesn't contain scope info, scope_info will return 0 for the number of
1088 // parameters, stack local variables, context local variables, stack slots, 1088 // parameters, stack local variables, context local variables, stack slots,
1089 // or context slots. 1089 // or context slots.
1090 Handle<ScopeInfo> scope_info(ScopeInfo::Empty()); 1090 Handle<ScopeInfo> scope_info(ScopeInfo::Empty(isolate()));
1091 1091
1092 if (function->IsJSFunction()) { 1092 if (function->IsJSFunction()) {
1093 Handle<SharedFunctionInfo> shared(JSFunction::cast(function)->shared()); 1093 Handle<SharedFunctionInfo> shared(JSFunction::cast(function)->shared());
1094 scope_info = Handle<ScopeInfo>(shared->scope_info()); 1094 scope_info = Handle<ScopeInfo>(shared->scope_info());
1095 Object* script_obj = shared->script(); 1095 Object* script_obj = shared->script();
1096 if (script_obj->IsScript()) { 1096 if (script_obj->IsScript()) {
1097 Handle<Script> script(Script::cast(script_obj)); 1097 Handle<Script> script(Script::cast(script_obj));
1098 accumulator->Add(" ["); 1098 accumulator->Add(" [");
1099 accumulator->PrintName(script->name()); 1099 accumulator->PrintName(script->name());
1100 1100
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 ZoneList<StackFrame*> list(10, zone); 1493 ZoneList<StackFrame*> list(10, zone);
1494 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1494 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1495 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1495 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1496 list.Add(frame, zone); 1496 list.Add(frame, zone);
1497 } 1497 }
1498 return list.ToVector(); 1498 return list.ToVector();
1499 } 1499 }
1500 1500
1501 1501
1502 } } // namespace v8::internal 1502 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698