| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 bool is_strict_mode() { return function()->strict_mode(); } | 529 bool is_strict_mode() { return function()->strict_mode(); } |
| 530 StrictModeFlag strict_mode_flag() { | 530 StrictModeFlag strict_mode_flag() { |
| 531 return is_strict_mode() ? kStrictMode : kNonStrictMode; | 531 return is_strict_mode() ? kStrictMode : kNonStrictMode; |
| 532 } | 532 } |
| 533 FunctionLiteral* function() { return info_->function(); } | 533 FunctionLiteral* function() { return info_->function(); } |
| 534 Scope* scope() { return info_->scope(); } | 534 Scope* scope() { return info_->scope(); } |
| 535 | 535 |
| 536 static Register result_register(); | 536 static Register result_register(); |
| 537 static Register context_register(); | 537 static Register context_register(); |
| 538 | 538 |
| 539 // Helper for calling an IC stub. | |
| 540 void EmitCallIC(Handle<Code> ic, | |
| 541 RelocInfo::Mode mode, | |
| 542 unsigned ast_id); | |
| 543 | |
| 544 // Set fields in the stack frame. Offsets are the frame pointer relative | 539 // Set fields in the stack frame. Offsets are the frame pointer relative |
| 545 // offsets defined in, e.g., StandardFrameConstants. | 540 // offsets defined in, e.g., StandardFrameConstants. |
| 546 void StoreToFrameField(int frame_offset, Register value); | 541 void StoreToFrameField(int frame_offset, Register value); |
| 547 | 542 |
| 548 // Load a value from the current context. Indices are defined as an enum | 543 // Load a value from the current context. Indices are defined as an enum |
| 549 // in v8::internal::Context. | 544 // in v8::internal::Context. |
| 550 void LoadContextField(Register dst, int context_index); | 545 void LoadContextField(Register dst, int context_index); |
| 551 | 546 |
| 552 // Push the function argument for the runtime functions PushWithContext | 547 // Push the function argument for the runtime functions PushWithContext |
| 553 // and PushCatchContext. | 548 // and PushCatchContext. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 | 757 |
| 763 friend class NestedStatement; | 758 friend class NestedStatement; |
| 764 | 759 |
| 765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 760 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 766 }; | 761 }; |
| 767 | 762 |
| 768 | 763 |
| 769 } } // namespace v8::internal | 764 } } // namespace v8::internal |
| 770 | 765 |
| 771 #endif // V8_FULL_CODEGEN_H_ | 766 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |