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

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

Issue 10829: Finish porting jump target changes to the ARM platform. The v8 test... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 12 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 | « no previous file | src/codegen-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 int end_position, 151 int end_position,
152 bool is_expression, 152 bool is_expression,
153 bool is_toplevel, 153 bool is_toplevel,
154 Handle<Script> script); 154 Handle<Script> script);
155 155
156 // Accessors 156 // Accessors
157 MacroAssembler* masm() { return masm_; } 157 MacroAssembler* masm() { return masm_; }
158 158
159 VirtualFrame* frame() const { return frame_; } 159 VirtualFrame* frame() const { return frame_; }
160 160
161 void set_frame(VirtualFrame* frame) { frame_ = frame; }
162
163 void delete_frame() {
164 delete frame_;
165 frame_ = NULL;
166 }
167
161 CodeGenState* state() { return state_; } 168 CodeGenState* state() { return state_; }
162 void set_state(CodeGenState* state) { state_ = state; } 169 void set_state(CodeGenState* state) { state_ = state; }
163 170
164 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } 171 void AddDeferred(DeferredCode* code) { deferred_.Add(code); }
165 172
166 private: 173 private:
167 // Construction/Destruction 174 // Construction/Destruction
168 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); 175 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval);
169 virtual ~CodeGenerator() { delete masm_; } 176 virtual ~CodeGenerator() { delete masm_; }
170 177
171 // Accessors 178 // Accessors
172 Scope* scope() const { return scope_; } 179 Scope* scope() const { return scope_; }
173 180
174 void ProcessDeferred(); 181 void ProcessDeferred();
175 182
176 bool is_eval() { return is_eval_; } 183 bool is_eval() { return is_eval_; }
177 184
178 // State 185 // State
179 bool has_cc() const { return cc_reg_ != al; } 186 bool has_cc() const { return cc_reg_ != al; }
180 TypeofState typeof_state() const { return state_->typeof_state(); } 187 TypeofState typeof_state() const { return state_->typeof_state(); }
181 JumpTarget* true_target() const { return state_->true_target(); } 188 JumpTarget* true_target() const { return state_->true_target(); }
182 JumpTarget* false_target() const { return state_->false_target(); } 189 JumpTarget* false_target() const { return state_->false_target(); }
183 190
184 191
185 // Node visitors. 192 // Node visitors.
193 void VisitStatements(ZoneList<Statement*>* statements);
194
186 #define DEF_VISIT(type) \ 195 #define DEF_VISIT(type) \
187 void Visit##type(type* node); 196 void Visit##type(type* node);
188 NODE_LIST(DEF_VISIT) 197 NODE_LIST(DEF_VISIT)
189 #undef DEF_VISIT 198 #undef DEF_VISIT
190 199
191 // Main code generation function 200 // Main code generation function
192 void GenCode(FunctionLiteral* fun); 201 void GenCode(FunctionLiteral* fun);
193 202
194 // The following are used by class Reference. 203 // The following are used by class Reference.
195 void LoadReference(Reference* ref); 204 void LoadReference(Reference* ref);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 359
351 friend class VirtualFrame; 360 friend class VirtualFrame;
352 friend class Reference; 361 friend class Reference;
353 362
354 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 363 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
355 }; 364 };
356 365
357 } } // namespace v8::internal 366 } } // namespace v8::internal
358 367
359 #endif // V8_CODEGEN_ARM_H_ 368 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698