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

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

Issue 56172: Clean up return statements in the code generator by explicitly... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.h » ('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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Fast support for constant-Smi switches. Tests whether switch statement 387 // Fast support for constant-Smi switches. Tests whether switch statement
388 // permits optimization and calls GenerateFastCaseSwitch if it does. 388 // permits optimization and calls GenerateFastCaseSwitch if it does.
389 // Returns true if the fast-case switch was generated, and false if not. 389 // Returns true if the fast-case switch was generated, and false if not.
390 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); 390 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node);
391 391
392 392
393 // Methods used to indicate which source code is generated for. Source 393 // Methods used to indicate which source code is generated for. Source
394 // positions are collected by the assembler and emitted with the relocation 394 // positions are collected by the assembler and emitted with the relocation
395 // information. 395 // information.
396 void CodeForFunctionPosition(FunctionLiteral* fun); 396 void CodeForFunctionPosition(FunctionLiteral* fun);
397 void CodeForReturnPosition(FunctionLiteral* fun);
397 void CodeForStatementPosition(Node* node); 398 void CodeForStatementPosition(Node* node);
398 void CodeForSourcePosition(int pos); 399 void CodeForSourcePosition(int pos);
399 400
400 #ifdef DEBUG 401 #ifdef DEBUG
401 // True if the registers are valid for entry to a block. 402 // True if the registers are valid for entry to a block.
402 bool HasValidEntryRegisters(); 403 bool HasValidEntryRegisters();
403 #endif 404 #endif
404 405
405 bool is_eval_; // Tells whether code is generated for eval. 406 bool is_eval_; // Tells whether code is generated for eval.
406 407
(...skipping 28 matching lines...) Expand all
435 friend class JumpTarget; 436 friend class JumpTarget;
436 friend class Reference; 437 friend class Reference;
437 438
438 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 439 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
439 }; 440 };
440 441
441 442
442 } } // namespace v8::internal 443 } } // namespace v8::internal
443 444
444 #endif // V8_CODEGEN_ARM_H_ 445 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698