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

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

Issue 23597037: Unify handling of position info in AST, part 2 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplify SetExpressionPosition Created 7 years, 3 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/ast.h ('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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 // accumulator. 628 // accumulator.
629 void EmitKeyedPropertyAssignment(Assignment* expr); 629 void EmitKeyedPropertyAssignment(Assignment* expr);
630 630
631 void CallIC(Handle<Code> code, 631 void CallIC(Handle<Code> code,
632 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, 632 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET,
633 TypeFeedbackId id = TypeFeedbackId::None()); 633 TypeFeedbackId id = TypeFeedbackId::None());
634 634
635 void SetFunctionPosition(FunctionLiteral* fun); 635 void SetFunctionPosition(FunctionLiteral* fun);
636 void SetReturnPosition(FunctionLiteral* fun); 636 void SetReturnPosition(FunctionLiteral* fun);
637 void SetStatementPosition(Statement* stmt); 637 void SetStatementPosition(Statement* stmt);
638 void SetExpressionPosition(Expression* expr, int pos); 638 void SetExpressionPosition(Expression* expr);
639 void SetStatementPosition(int pos); 639 void SetStatementPosition(int pos);
640 void SetSourcePosition(int pos); 640 void SetSourcePosition(int pos);
641 641
642 // Non-local control flow support. 642 // Non-local control flow support.
643 void EnterFinallyBlock(); 643 void EnterFinallyBlock();
644 void ExitFinallyBlock(); 644 void ExitFinallyBlock();
645 645
646 // Loop nesting counter. 646 // Loop nesting counter.
647 int loop_depth() { return loop_depth_; } 647 int loop_depth() { return loop_depth_; }
648 void increment_loop_depth() { loop_depth_++; } 648 void increment_loop_depth() { loop_depth_++; }
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 } 936 }
937 937
938 private: 938 private:
939 Zone* zone_; 939 Zone* zone_;
940 }; 940 };
941 941
942 942
943 } } // namespace v8::internal 943 } } // namespace v8::internal
944 944
945 #endif // V8_FULL_CODEGEN_H_ 945 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698