OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // canonical JS true value so we will insert a (dead) test against true at | 396 // canonical JS true value so we will insert a (dead) test against true at |
397 // the actual bailout target from the optimized code. If not | 397 // the actual bailout target from the optimized code. If not |
398 // should_normalize, the true and false labels are ignored. | 398 // should_normalize, the true and false labels are ignored. |
399 void PrepareForBailoutBeforeSplit(State state, | 399 void PrepareForBailoutBeforeSplit(State state, |
400 bool should_normalize, | 400 bool should_normalize, |
401 Label* if_true, | 401 Label* if_true, |
402 Label* if_false); | 402 Label* if_false); |
403 | 403 |
404 // Platform-specific code for a variable, constant, or function | 404 // Platform-specific code for a variable, constant, or function |
405 // declaration. Functions have an initial value. | 405 // declaration. Functions have an initial value. |
406 void EmitDeclaration(Variable* variable, | 406 void EmitDeclaration(VariableProxy* proxy, |
407 Variable::Mode mode, | 407 Variable::Mode mode, |
408 FunctionLiteral* function); | 408 FunctionLiteral* function); |
409 | 409 |
410 // Platform-specific code for checking the stack limit at the back edge of | 410 // Platform-specific code for checking the stack limit at the back edge of |
411 // a loop. | 411 // a loop. |
412 void EmitStackCheck(IterationStatement* stmt); | 412 void EmitStackCheck(IterationStatement* stmt); |
413 // Record the OSR AST id corresponding to a stack check in the code. | 413 // Record the OSR AST id corresponding to a stack check in the code. |
414 void RecordStackCheck(int osr_ast_id); | 414 void RecordStackCheck(int osr_ast_id); |
415 // Emit a table of stack check ids and pcs into the code stream. Return | 415 // Emit a table of stack check ids and pcs into the code stream. Return |
416 // the offset of the start of the table. | 416 // the offset of the start of the table. |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 804 |
805 friend class NestedStatement; | 805 friend class NestedStatement; |
806 | 806 |
807 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 807 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
808 }; | 808 }; |
809 | 809 |
810 | 810 |
811 } } // namespace v8::internal | 811 } } // namespace v8::internal |
812 | 812 |
813 #endif // V8_FULL_CODEGEN_H_ | 813 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |