Chromium Code Reviews| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 529 bool is_eval() { return info_->is_eval(); } | 529 bool is_eval() { return info_->is_eval(); } |
| 530 FunctionLiteral* function() { return info_->function(); } | 530 FunctionLiteral* function() { return info_->function(); } |
| 531 Scope* scope() { return info_->scope(); } | 531 Scope* scope() { return info_->scope(); } |
| 532 | 532 |
| 533 static Register result_register(); | 533 static Register result_register(); |
| 534 static Register context_register(); | 534 static Register context_register(); |
| 535 | 535 |
| 536 // Helper for calling an IC stub. | 536 // Helper for calling an IC stub. |
| 537 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); | 537 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); |
| 538 | 538 |
| 539 // Helper for calling an IC stub with a patch site. Passing NULL for patch_sit e | 539 // Calling an IC stub with a patch site. Passing NULL for patch_site |
|
William Hesse
2010/12/11 01:47:41
I would say:
// Emit code that calls an IC stub.
/
| |
| 540 // indicates no inlined smi code and emits a nop after the IC call. | 540 // indicates no inlined smi code and emits a nop after the IC call. |
| 541 void EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site); | 541 void EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site); |
| 542 | 542 |
| 543 // Set fields in the stack frame. Offsets are the frame pointer relative | 543 // Set fields in the stack frame. Offsets are the frame pointer relative |
| 544 // offsets defined in, e.g., StandardFrameConstants. | 544 // offsets defined in, e.g., StandardFrameConstants. |
| 545 void StoreToFrameField(int frame_offset, Register value); | 545 void StoreToFrameField(int frame_offset, Register value); |
| 546 | 546 |
| 547 // Load a value from the current context. Indices are defined as an enum | 547 // Load a value from the current context. Indices are defined as an enum |
| 548 // in v8::internal::Context. | 548 // in v8::internal::Context. |
| 549 void LoadContextField(Register dst, int context_index); | 549 void LoadContextField(Register dst, int context_index); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 763 | 763 |
| 764 friend class NestedStatement; | 764 friend class NestedStatement; |
| 765 | 765 |
| 766 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 766 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 767 }; | 767 }; |
| 768 | 768 |
| 769 | 769 |
| 770 } } // namespace v8::internal | 770 } } // namespace v8::internal |
| 771 | 771 |
| 772 #endif // V8_FULL_CODEGEN_H_ | 772 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |