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

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

Issue 1150293002: Do not leak message object beyond try-catch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix memory leak by setting flag Created 5 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
« no previous file with comments | « src/compiler/ast-graph-builder.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 void SetReturnPosition(FunctionLiteral* fun); 702 void SetReturnPosition(FunctionLiteral* fun);
703 void SetStatementPosition(Statement* stmt); 703 void SetStatementPosition(Statement* stmt);
704 void SetExpressionPosition(Expression* expr); 704 void SetExpressionPosition(Expression* expr);
705 void SetSourcePosition(int pos); 705 void SetSourcePosition(int pos);
706 706
707 // Non-local control flow support. 707 // Non-local control flow support.
708 void EnterTryBlock(int handler_index, Label* handler); 708 void EnterTryBlock(int handler_index, Label* handler);
709 void ExitTryBlock(int handler_index); 709 void ExitTryBlock(int handler_index);
710 void EnterFinallyBlock(); 710 void EnterFinallyBlock();
711 void ExitFinallyBlock(); 711 void ExitFinallyBlock();
712 void ClearPendingMessage();
712 713
713 // Loop nesting counter. 714 // Loop nesting counter.
714 int loop_depth() { return loop_depth_; } 715 int loop_depth() { return loop_depth_; }
715 void increment_loop_depth() { loop_depth_++; } 716 void increment_loop_depth() { loop_depth_++; }
716 void decrement_loop_depth() { 717 void decrement_loop_depth() {
717 DCHECK(loop_depth_ > 0); 718 DCHECK(loop_depth_ > 0);
718 loop_depth_--; 719 loop_depth_--;
719 } 720 }
720 721
721 MacroAssembler* masm() const { return masm_; } 722 MacroAssembler* masm() const { return masm_; }
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 1096
1096 Address start_; 1097 Address start_;
1097 Address instruction_start_; 1098 Address instruction_start_;
1098 uint32_t length_; 1099 uint32_t length_;
1099 }; 1100 };
1100 1101
1101 1102
1102 } } // namespace v8::internal 1103 } } // namespace v8::internal
1103 1104
1104 #endif // V8_FULL_CODEGEN_H_ 1105 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698