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

Side by Side Diff: src/frames.h

Issue 10103035: Share optimized code for closures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: rebased on r11394 Created 8 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
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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 virtual void GetFunctions(List<JSFunction*>* functions); 562 virtual void GetFunctions(List<JSFunction*>* functions);
563 563
564 virtual void Summarize(List<FrameSummary>* frames); 564 virtual void Summarize(List<FrameSummary>* frames);
565 565
566 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); 566 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index);
567 567
568 protected: 568 protected:
569 inline explicit OptimizedFrame(StackFrameIterator* iterator); 569 inline explicit OptimizedFrame(StackFrameIterator* iterator);
570 570
571 private: 571 private:
572 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id);
573
572 friend class StackFrameIterator; 574 friend class StackFrameIterator;
573 }; 575 };
574 576
575 577
576 // Arguments adaptor frames are automatically inserted below 578 // Arguments adaptor frames are automatically inserted below
577 // JavaScript frames when the actual number of parameters does not 579 // JavaScript frames when the actual number of parameters does not
578 // match the formal number of parameters. 580 // match the formal number of parameters.
579 class ArgumentsAdaptorFrame: public JavaScriptFrame { 581 class ArgumentsAdaptorFrame: public JavaScriptFrame {
580 public: 582 public:
581 virtual Type type() const { return ARGUMENTS_ADAPTOR; } 583 virtual Type type() const { return ARGUMENTS_ADAPTOR; }
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 }; 885 };
884 886
885 887
886 // Reads all frames on the current stack and copies them into the current 888 // Reads all frames on the current stack and copies them into the current
887 // zone memory. 889 // zone memory.
888 Vector<StackFrame*> CreateStackMap(); 890 Vector<StackFrame*> CreateStackMap();
889 891
890 } } // namespace v8::internal 892 } } // namespace v8::internal
891 893
892 #endif // V8_FRAMES_H_ 894 #endif // V8_FRAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698