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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 } | 508 } |
509 FunctionLiteral* function() { return info_->function(); } | 509 FunctionLiteral* function() { return info_->function(); } |
510 Scope* scope() { return info_->scope(); } | 510 Scope* scope() { return info_->scope(); } |
511 | 511 |
512 static Register result_register(); | 512 static Register result_register(); |
513 static Register context_register(); | 513 static Register context_register(); |
514 | 514 |
515 // Helper for calling an IC stub. | 515 // Helper for calling an IC stub. |
516 void EmitCallIC(Handle<Code> ic, | 516 void EmitCallIC(Handle<Code> ic, |
517 RelocInfo::Mode mode, | 517 RelocInfo::Mode mode, |
518 unsigned ast_id = AstNode::kNoNumber); | 518 unsigned ast_id); |
519 | 519 |
520 // Calling an IC stub with a patch site. Passing NULL for patch_site | 520 // Calling an IC stub with a patch site. Passing NULL for patch_site |
521 // or non NULL patch_site which is not activated indicates no inlined smi code | 521 // or non NULL patch_site which is not activated indicates no inlined smi code |
522 // and emits a nop after the IC call. | 522 // and emits a nop after the IC call. |
523 void EmitCallIC(Handle<Code> ic, | 523 void EmitCallIC(Handle<Code> ic, |
524 JumpPatchSite* patch_site, | 524 JumpPatchSite* patch_site, |
525 unsigned ast_id = AstNode::kNoNumber); | 525 unsigned ast_id); |
526 | 526 |
527 // Set fields in the stack frame. Offsets are the frame pointer relative | 527 // Set fields in the stack frame. Offsets are the frame pointer relative |
528 // offsets defined in, e.g., StandardFrameConstants. | 528 // offsets defined in, e.g., StandardFrameConstants. |
529 void StoreToFrameField(int frame_offset, Register value); | 529 void StoreToFrameField(int frame_offset, Register value); |
530 | 530 |
531 // Load a value from the current context. Indices are defined as an enum | 531 // Load a value from the current context. Indices are defined as an enum |
532 // in v8::internal::Context. | 532 // in v8::internal::Context. |
533 void LoadContextField(Register dst, int context_index); | 533 void LoadContextField(Register dst, int context_index); |
534 | 534 |
535 // AST node visit functions. | 535 // AST node visit functions. |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 749 |
750 friend class NestedStatement; | 750 friend class NestedStatement; |
751 | 751 |
752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
753 }; | 753 }; |
754 | 754 |
755 | 755 |
756 } } // namespace v8::internal | 756 } } // namespace v8::internal |
757 | 757 |
758 #endif // V8_FULL_CODEGEN_H_ | 758 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |