| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 void EmitKeyedPropertyAssignment(Assignment* expr); | 272 void EmitKeyedPropertyAssignment(Assignment* expr); |
| 273 | 273 |
| 274 void SetFunctionPosition(FunctionLiteral* fun); | 274 void SetFunctionPosition(FunctionLiteral* fun); |
| 275 void SetReturnPosition(FunctionLiteral* fun); | 275 void SetReturnPosition(FunctionLiteral* fun); |
| 276 void SetStatementPosition(Statement* stmt); | 276 void SetStatementPosition(Statement* stmt); |
| 277 void SetSourcePosition(int pos); | 277 void SetSourcePosition(int pos); |
| 278 | 278 |
| 279 // Non-local control flow support. | 279 // Non-local control flow support. |
| 280 void EnterFinallyBlock(); | 280 void EnterFinallyBlock(); |
| 281 void ExitFinallyBlock(); | 281 void ExitFinallyBlock(); |
| 282 void ThrowException(); | |
| 283 | 282 |
| 284 // Loop nesting counter. | 283 // Loop nesting counter. |
| 285 int loop_depth() { return loop_depth_; } | 284 int loop_depth() { return loop_depth_; } |
| 286 void increment_loop_depth() { loop_depth_++; } | 285 void increment_loop_depth() { loop_depth_++; } |
| 287 void decrement_loop_depth() { | 286 void decrement_loop_depth() { |
| 288 ASSERT(loop_depth_ > 0); | 287 ASSERT(loop_depth_ > 0); |
| 289 loop_depth_--; | 288 loop_depth_--; |
| 290 } | 289 } |
| 291 | 290 |
| 292 MacroAssembler* masm() { return masm_; } | 291 MacroAssembler* masm() { return masm_; } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 321 | 320 |
| 322 friend class NestedStatement; | 321 friend class NestedStatement; |
| 323 | 322 |
| 324 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 323 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
| 325 }; | 324 }; |
| 326 | 325 |
| 327 | 326 |
| 328 } } // namespace v8::internal | 327 } } // namespace v8::internal |
| 329 | 328 |
| 330 #endif // V8_FAST_CODEGEN_H_ | 329 #endif // V8_FAST_CODEGEN_H_ |
| OLD | NEW |