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

Side by Side Diff: src/frames.cc

Issue 23886002: remove Isolate::Current from most files starting with 'f' through 'i' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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.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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 // function name 807 // function name
808 JSFunction* fun = frame->function(); 808 JSFunction* fun = frame->function();
809 fun->PrintName(); 809 fun->PrintName();
810 Code* js_code = frame->unchecked_code(); 810 Code* js_code = frame->unchecked_code();
811 Address pc = frame->pc(); 811 Address pc = frame->pc();
812 int code_offset = 812 int code_offset =
813 static_cast<int>(pc - js_code->instruction_start()); 813 static_cast<int>(pc - js_code->instruction_start());
814 PrintF("+%d", code_offset); 814 PrintF("+%d", code_offset);
815 SharedFunctionInfo* shared = fun->shared(); 815 SharedFunctionInfo* shared = fun->shared();
816 if (print_line_number) { 816 if (print_line_number) {
817 Code* code = Code::cast( 817 Code* code = Code::cast(isolate->FindCodeObject(pc));
818 v8::internal::Isolate::Current()->FindCodeObject(pc));
819 int source_pos = code->SourcePosition(pc); 818 int source_pos = code->SourcePosition(pc);
820 Object* maybe_script = shared->script(); 819 Object* maybe_script = shared->script();
821 if (maybe_script->IsScript()) { 820 if (maybe_script->IsScript()) {
822 Handle<Script> script(Script::cast(maybe_script)); 821 Handle<Script> script(Script::cast(maybe_script));
823 int line = GetScriptLineNumberSafe(script, source_pos) + 1; 822 int line = GetScriptLineNumberSafe(script, source_pos) + 1;
824 Object* script_name_raw = script->name(); 823 Object* script_name_raw = script->name();
825 if (script_name_raw->IsString()) { 824 if (script_name_raw->IsString()) {
826 String* script_name = String::cast(script->name()); 825 String* script_name = String::cast(script->name());
827 SmartArrayPointer<char> c_script_name = 826 SmartArrayPointer<char> c_script_name =
828 script_name->ToCString(DISALLOW_NULLS, 827 script_name->ToCString(DISALLOW_NULLS,
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 ZoneList<StackFrame*> list(10, zone); 1627 ZoneList<StackFrame*> list(10, zone);
1629 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1628 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1630 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1629 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1631 list.Add(frame, zone); 1630 list.Add(frame, zone);
1632 } 1631 }
1633 return list.ToVector(); 1632 return list.ToVector();
1634 } 1633 }
1635 1634
1636 1635
1637 } } // namespace v8::internal 1636 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698