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

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

Issue 5277008: Save full source position state to avoid forced positions. (Closed)
Patch Set: Created 10 years 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/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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // Complete a keyed property assignment. The receiver and key are 416 // Complete a keyed property assignment. The receiver and key are
417 // expected on top of the stack and the right-hand-side value in the 417 // expected on top of the stack and the right-hand-side value in the
418 // accumulator. 418 // accumulator.
419 void EmitKeyedPropertyAssignment(Assignment* expr); 419 void EmitKeyedPropertyAssignment(Assignment* expr);
420 420
421 void SetFunctionPosition(FunctionLiteral* fun); 421 void SetFunctionPosition(FunctionLiteral* fun);
422 void SetReturnPosition(FunctionLiteral* fun); 422 void SetReturnPosition(FunctionLiteral* fun);
423 void SetStatementPosition(Statement* stmt); 423 void SetStatementPosition(Statement* stmt);
424 void SetExpressionPosition(Expression* expr, int pos); 424 void SetExpressionPosition(Expression* expr, int pos);
425 void SetStatementPosition(int pos); 425 void SetStatementPosition(int pos);
426 void SetSourcePosition( 426 void SetSourcePosition(int pos);
427 int pos,
428 PositionRecordingType recording_type = NORMAL_POSITION);
429 427
430 // Non-local control flow support. 428 // Non-local control flow support.
431 void EnterFinallyBlock(); 429 void EnterFinallyBlock();
432 void ExitFinallyBlock(); 430 void ExitFinallyBlock();
433 431
434 // Loop nesting counter. 432 // Loop nesting counter.
435 int loop_depth() { return loop_depth_; } 433 int loop_depth() { return loop_depth_; }
436 void increment_loop_depth() { loop_depth_++; } 434 void increment_loop_depth() { loop_depth_++; }
437 void decrement_loop_depth() { 435 void decrement_loop_depth() {
438 ASSERT(loop_depth_ > 0); 436 ASSERT(loop_depth_ > 0);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 662
665 friend class NestedStatement; 663 friend class NestedStatement;
666 664
667 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 665 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
668 }; 666 };
669 667
670 668
671 } } // namespace v8::internal 669 } } // namespace v8::internal
672 670
673 #endif // V8_FULL_CODEGEN_H_ 671 #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