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

Side by Side Diff: src/full-codegen.h

Issue 8540005: Revert "Add a level of indirection to exception handler addresses." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
98 class StateField : public BitField<State, 0, 8> { }; 96 class StateField : public BitField<State, 0, 8> { };
99 class PcField : public BitField<unsigned, 8, 32-8> { }; 97 class PcField : public BitField<unsigned, 8, 32-8> { };
100 98
101 static const char* State2String(State state) { 99 static const char* State2String(State state) {
102 switch (state) { 100 switch (state) {
103 case NO_REGISTERS: return "NO_REGISTERS"; 101 case NO_REGISTERS: return "NO_REGISTERS";
104 case TOS_REG: return "TOS_REG"; 102 case TOS_REG: return "TOS_REG";
105 } 103 }
106 UNREACHABLE(); 104 UNREACHABLE();
107 return NULL; 105 return NULL;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 748
751 MacroAssembler* masm_; 749 MacroAssembler* masm_;
752 CompilationInfo* info_; 750 CompilationInfo* info_;
753 Scope* scope_; 751 Scope* scope_;
754 Label return_label_; 752 Label return_label_;
755 NestedStatement* nesting_stack_; 753 NestedStatement* nesting_stack_;
756 int loop_depth_; 754 int loop_depth_;
757 const ExpressionContext* context_; 755 const ExpressionContext* context_;
758 ZoneList<BailoutEntry> bailout_entries_; 756 ZoneList<BailoutEntry> bailout_entries_;
759 ZoneList<BailoutEntry> stack_checks_; 757 ZoneList<BailoutEntry> stack_checks_;
760 Handle<FixedArray> handler_table_;
761 758
762 friend class NestedStatement; 759 friend class NestedStatement;
763 760
764 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 761 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
765 }; 762 };
766 763
767 764
768 } } // namespace v8::internal 765 } } // namespace v8::internal
769 766
770 #endif // V8_FULL_CODEGEN_H_ 767 #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