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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); | 457 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); |
458 | 458 |
459 // Set fields in the stack frame. Offsets are the frame pointer relative | 459 // Set fields in the stack frame. Offsets are the frame pointer relative |
460 // offsets defined in, e.g., StandardFrameConstants. | 460 // offsets defined in, e.g., StandardFrameConstants. |
461 void StoreToFrameField(int frame_offset, Register value); | 461 void StoreToFrameField(int frame_offset, Register value); |
462 | 462 |
463 // Load a value from the current context. Indices are defined as an enum | 463 // Load a value from the current context. Indices are defined as an enum |
464 // in v8::internal::Context. | 464 // in v8::internal::Context. |
465 void LoadContextField(Register dst, int context_index); | 465 void LoadContextField(Register dst, int context_index); |
466 | 466 |
467 // Create an operand for a context field. | |
468 MemOperand ContextOperand(Register context, int context_index); | |
469 | |
470 // AST node visit functions. | 467 // AST node visit functions. |
471 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 468 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
472 AST_NODE_LIST(DECLARE_VISIT) | 469 AST_NODE_LIST(DECLARE_VISIT) |
473 #undef DECLARE_VISIT | 470 #undef DECLARE_VISIT |
474 // Handles the shortcutted logical binary operations in VisitBinaryOperation. | 471 // Handles the shortcutted logical binary operations in VisitBinaryOperation. |
475 void EmitLogicalOperation(BinaryOperation* expr); | 472 void EmitLogicalOperation(BinaryOperation* expr); |
476 | 473 |
477 void VisitForTypeofValue(Expression* expr); | 474 void VisitForTypeofValue(Expression* expr); |
478 | 475 |
479 MacroAssembler* masm_; | 476 MacroAssembler* masm_; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 | 664 |
668 friend class NestedStatement; | 665 friend class NestedStatement; |
669 | 666 |
670 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 667 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
671 }; | 668 }; |
672 | 669 |
673 | 670 |
674 } } // namespace v8::internal | 671 } } // namespace v8::internal |
675 | 672 |
676 #endif // V8_FULL_CODEGEN_H_ | 673 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |