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

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

Issue 10537078: Preserve error message during finally block in try..finally. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/assembler.cc ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 void SetReturnPosition(FunctionLiteral* fun); 521 void SetReturnPosition(FunctionLiteral* fun);
522 void SetStatementPosition(Statement* stmt); 522 void SetStatementPosition(Statement* stmt);
523 void SetExpressionPosition(Expression* expr, int pos); 523 void SetExpressionPosition(Expression* expr, int pos);
524 void SetStatementPosition(int pos); 524 void SetStatementPosition(int pos);
525 void SetSourcePosition(int pos); 525 void SetSourcePosition(int pos);
526 526
527 // Non-local control flow support. 527 // Non-local control flow support.
528 void EnterFinallyBlock(); 528 void EnterFinallyBlock();
529 void ExitFinallyBlock(); 529 void ExitFinallyBlock();
530 530
531 void SavePendingMessage();
532 void RestorePendingMessage();
533
531 // Loop nesting counter. 534 // Loop nesting counter.
532 int loop_depth() { return loop_depth_; } 535 int loop_depth() { return loop_depth_; }
533 void increment_loop_depth() { loop_depth_++; } 536 void increment_loop_depth() { loop_depth_++; }
534 void decrement_loop_depth() { 537 void decrement_loop_depth() {
535 ASSERT(loop_depth_ > 0); 538 ASSERT(loop_depth_ > 0);
536 loop_depth_--; 539 loop_depth_--;
537 } 540 }
538 541
539 MacroAssembler* masm() { return masm_; } 542 MacroAssembler* masm() { return masm_; }
540 543
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 813 }
811 814
812 private: 815 private:
813 Zone* zone_; 816 Zone* zone_;
814 }; 817 };
815 818
816 819
817 } } // namespace v8::internal 820 } } // namespace v8::internal
818 821
819 #endif // V8_FULL_CODEGEN_H_ 822 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698