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

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

Issue 16579: Experimental: fix a bug where we could have returns from a function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 11 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 | « no previous file | src/codegen-ia32.cc » ('j') | src/codegen-ia32.cc » ('J')
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 VisitStatements(statements); 257 VisitStatements(statements);
258 if (frame_ != NULL) { 258 if (frame_ != NULL) {
259 frame_->SpillAll(); 259 frame_->SpillAll();
260 } 260 }
261 set_in_spilled_code(true); 261 set_in_spilled_code(true);
262 } 262 }
263 263
264 // Main code generation function 264 // Main code generation function
265 void GenCode(FunctionLiteral* fun); 265 void GenCode(FunctionLiteral* fun);
266 266
267 // Generate the return sequence code. Should be called no more than once
268 // per compiled function (it binds the return target, which can not be
269 // done more than once). The return value is assumed to be in eax by the
270 // code generated.
271 void GenerateReturnSequence();
272
267 // The following are used by class Reference. 273 // The following are used by class Reference.
268 void LoadReference(Reference* ref); 274 void LoadReference(Reference* ref);
269 void UnloadReference(Reference* ref); 275 void UnloadReference(Reference* ref);
270 276
271 Operand ContextOperand(Register context, int index) const { 277 Operand ContextOperand(Register context, int index) const {
272 return Operand(context, Context::SlotOffset(index)); 278 return Operand(context, Context::SlotOffset(index));
273 } 279 }
274 280
275 Operand SlotOperand(Slot* slot, Register tmp); 281 Operand SlotOperand(Slot* slot, Register tmp);
276 282
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 cgen_->set_in_spilled_code(false); 511 cgen_->set_in_spilled_code(false);
506 GetValue(typeof_state); 512 GetValue(typeof_state);
507 cgen_->frame()->SpillAll(); 513 cgen_->frame()->SpillAll();
508 cgen_->set_in_spilled_code(true); 514 cgen_->set_in_spilled_code(true);
509 } 515 }
510 516
511 517
512 } } // namespace v8::internal 518 } } // namespace v8::internal
513 519
514 #endif // V8_CODEGEN_IA32_H_ 520 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen-ia32.cc » ('j') | src/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698