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/full-codegen.h

Issue 8462010: Add a level of indirection to exception handler addresses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review changes. Created 9 years, 1 month 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/frames-inl.h ('k') | src/full-codegen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 context_(NULL), 86 context_(NULL),
87 bailout_entries_(0), 87 bailout_entries_(0),
88 stack_checks_(2) { // There's always at least one. 88 stack_checks_(2) { // There's always at least one.
89 } 89 }
90 90
91 static bool MakeCode(CompilationInfo* info); 91 static bool MakeCode(CompilationInfo* info);
92 92
93 void Generate(CompilationInfo* info); 93 void Generate(CompilationInfo* info);
94 void PopulateDeoptimizationData(Handle<Code> code); 94 void PopulateDeoptimizationData(Handle<Code> code);
95 95
96 Handle<FixedArray> handler_table() { return handler_table_; }
97
96 class StateField : public BitField<State, 0, 8> { }; 98 class StateField : public BitField<State, 0, 8> { };
97 class PcField : public BitField<unsigned, 8, 32-8> { }; 99 class PcField : public BitField<unsigned, 8, 32-8> { };
98 100
99 static const char* State2String(State state) { 101 static const char* State2String(State state) {
100 switch (state) { 102 switch (state) {
101 case NO_REGISTERS: return "NO_REGISTERS"; 103 case NO_REGISTERS: return "NO_REGISTERS";
102 case TOS_REG: return "TOS_REG"; 104 case TOS_REG: return "TOS_REG";
103 } 105 }
104 UNREACHABLE(); 106 UNREACHABLE();
105 return NULL; 107 return NULL;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 750
749 MacroAssembler* masm_; 751 MacroAssembler* masm_;
750 CompilationInfo* info_; 752 CompilationInfo* info_;
751 Scope* scope_; 753 Scope* scope_;
752 Label return_label_; 754 Label return_label_;
753 NestedStatement* nesting_stack_; 755 NestedStatement* nesting_stack_;
754 int loop_depth_; 756 int loop_depth_;
755 const ExpressionContext* context_; 757 const ExpressionContext* context_;
756 ZoneList<BailoutEntry> bailout_entries_; 758 ZoneList<BailoutEntry> bailout_entries_;
757 ZoneList<BailoutEntry> stack_checks_; 759 ZoneList<BailoutEntry> stack_checks_;
760 Handle<FixedArray> handler_table_;
758 761
759 friend class NestedStatement; 762 friend class NestedStatement;
760 763
761 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 764 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
762 }; 765 };
763 766
764 767
765 } } // namespace v8::internal 768 } } // namespace v8::internal
766 769
767 #endif // V8_FULL_CODEGEN_H_ 770 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698