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

Side by Side Diff: src/frames.h

Issue 14843020: Unify deoptimizer for JavaScript frames. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/ia32/deoptimizer-ia32.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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 // Returns the levels of inlining for this frame. 578 // Returns the levels of inlining for this frame.
579 virtual int GetInlineCount() { return 1; } 579 virtual int GetInlineCount() { return 1; }
580 580
581 // Return a list with JSFunctions of this frame. 581 // Return a list with JSFunctions of this frame.
582 virtual void GetFunctions(List<JSFunction*>* functions); 582 virtual void GetFunctions(List<JSFunction*>* functions);
583 583
584 // Build a list with summaries for this frame including all inlined frames. 584 // Build a list with summaries for this frame including all inlined frames.
585 virtual void Summarize(List<FrameSummary>* frames); 585 virtual void Summarize(List<FrameSummary>* frames);
586 586
587 // Architecture-specific register description.
588 static Register fp_register();
589 static Register context_register();
590
587 static JavaScriptFrame* cast(StackFrame* frame) { 591 static JavaScriptFrame* cast(StackFrame* frame) {
588 ASSERT(frame->is_java_script()); 592 ASSERT(frame->is_java_script());
589 return static_cast<JavaScriptFrame*>(frame); 593 return static_cast<JavaScriptFrame*>(frame);
590 } 594 }
591 595
592 static void PrintTop(Isolate* isolate, 596 static void PrintTop(Isolate* isolate,
593 FILE* file, 597 FILE* file,
594 bool print_args, 598 bool print_args,
595 bool print_line_number); 599 bool print_line_number);
596 600
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 }; 1004 };
1001 1005
1002 1006
1003 // Reads all frames on the current stack and copies them into the current 1007 // Reads all frames on the current stack and copies them into the current
1004 // zone memory. 1008 // zone memory.
1005 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 1009 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
1006 1010
1007 } } // namespace v8::internal 1011 } } // namespace v8::internal
1008 1012
1009 #endif // V8_FRAMES_H_ 1013 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698