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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 MacroAssembler* masm() { return masm_; } | 502 MacroAssembler* masm() { return masm_; } |
503 | 503 |
504 Handle<Script> script() { return info_->script(); } | 504 Handle<Script> script() { return info_->script(); } |
505 bool is_eval() { return info_->is_eval(); } | 505 bool is_eval() { return info_->is_eval(); } |
506 FunctionLiteral* function() { return info_->function(); } | 506 FunctionLiteral* function() { return info_->function(); } |
507 Scope* scope() { return info_->scope(); } | 507 Scope* scope() { return info_->scope(); } |
508 | 508 |
509 static Register result_register(); | 509 static Register result_register(); |
510 static Register context_register(); | 510 static Register context_register(); |
511 | 511 |
| 512 // Helper for calling an IC stub. |
| 513 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); |
| 514 |
512 // Set fields in the stack frame. Offsets are the frame pointer relative | 515 // Set fields in the stack frame. Offsets are the frame pointer relative |
513 // offsets defined in, e.g., StandardFrameConstants. | 516 // offsets defined in, e.g., StandardFrameConstants. |
514 void StoreToFrameField(int frame_offset, Register value); | 517 void StoreToFrameField(int frame_offset, Register value); |
515 | 518 |
516 // Load a value from the current context. Indices are defined as an enum | 519 // Load a value from the current context. Indices are defined as an enum |
517 // in v8::internal::Context. | 520 // in v8::internal::Context. |
518 void LoadContextField(Register dst, int context_index); | 521 void LoadContextField(Register dst, int context_index); |
519 | 522 |
520 // Create an operand for a context field. | 523 // Create an operand for a context field. |
521 MemOperand ContextOperand(Register context, int context_index); | 524 MemOperand ContextOperand(Register context, int context_index); |
(...skipping 28 matching lines...) Expand all Loading... |
550 | 553 |
551 friend class NestedStatement; | 554 friend class NestedStatement; |
552 | 555 |
553 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 556 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
554 }; | 557 }; |
555 | 558 |
556 | 559 |
557 } } // namespace v8::internal | 560 } } // namespace v8::internal |
558 | 561 |
559 #endif // V8_FULL_CODEGEN_H_ | 562 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |