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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 FunctionLiteral* function() { return info_->function(); } | 537 FunctionLiteral* function() { return info_->function(); } |
538 Scope* scope() { return info_->scope(); } | 538 Scope* scope() { return info_->scope(); } |
539 | 539 |
540 static Register result_register(); | 540 static Register result_register(); |
541 static Register context_register(); | 541 static Register context_register(); |
542 | 542 |
543 // Helper for calling an IC stub. | 543 // Helper for calling an IC stub. |
544 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); | 544 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); |
545 | 545 |
546 // Calling an IC stub with a patch site. Passing NULL for patch_site | 546 // Calling an IC stub with a patch site. Passing NULL for patch_site |
547 // indicates no inlined smi code and emits a nop after the IC call. | 547 // or non NULL patch_site which is not activated indicates no inlined smi code |
| 548 // and emits a nop after the IC call. |
548 void EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site); | 549 void EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site); |
549 | 550 |
550 // Set fields in the stack frame. Offsets are the frame pointer relative | 551 // Set fields in the stack frame. Offsets are the frame pointer relative |
551 // offsets defined in, e.g., StandardFrameConstants. | 552 // offsets defined in, e.g., StandardFrameConstants. |
552 void StoreToFrameField(int frame_offset, Register value); | 553 void StoreToFrameField(int frame_offset, Register value); |
553 | 554 |
554 // Load a value from the current context. Indices are defined as an enum | 555 // Load a value from the current context. Indices are defined as an enum |
555 // in v8::internal::Context. | 556 // in v8::internal::Context. |
556 void LoadContextField(Register dst, int context_index); | 557 void LoadContextField(Register dst, int context_index); |
557 | 558 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 | 771 |
771 friend class NestedStatement; | 772 friend class NestedStatement; |
772 | 773 |
773 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 774 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
774 }; | 775 }; |
775 | 776 |
776 | 777 |
777 } } // namespace v8::internal | 778 } } // namespace v8::internal |
778 | 779 |
779 #endif // V8_FULL_CODEGEN_H_ | 780 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |