OLD | NEW |
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 Loading... |
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(int pos); | 426 void SetSourcePosition( |
| 427 int pos, |
| 428 PositionRecordingType recording_type = NORMAL_POSITION); |
427 | 429 |
428 // Non-local control flow support. | 430 // Non-local control flow support. |
429 void EnterFinallyBlock(); | 431 void EnterFinallyBlock(); |
430 void ExitFinallyBlock(); | 432 void ExitFinallyBlock(); |
431 | 433 |
432 // Loop nesting counter. | 434 // Loop nesting counter. |
433 int loop_depth() { return loop_depth_; } | 435 int loop_depth() { return loop_depth_; } |
434 void increment_loop_depth() { loop_depth_++; } | 436 void increment_loop_depth() { loop_depth_++; } |
435 void decrement_loop_depth() { | 437 void decrement_loop_depth() { |
436 ASSERT(loop_depth_ > 0); | 438 ASSERT(loop_depth_ > 0); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 | 667 |
666 friend class NestedStatement; | 668 friend class NestedStatement; |
667 | 669 |
668 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 670 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
669 }; | 671 }; |
670 | 672 |
671 | 673 |
672 } } // namespace v8::internal | 674 } } // namespace v8::internal |
673 | 675 |
674 #endif // V8_FULL_CODEGEN_H_ | 676 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |