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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 570 |
571 MacroAssembler* masm() { return masm_; } | 571 MacroAssembler* masm() { return masm_; } |
572 | 572 |
573 class ExpressionContext; | 573 class ExpressionContext; |
574 const ExpressionContext* context() { return context_; } | 574 const ExpressionContext* context() { return context_; } |
575 void set_new_context(const ExpressionContext* context) { context_ = context; } | 575 void set_new_context(const ExpressionContext* context) { context_ = context; } |
576 | 576 |
577 Handle<Script> script() { return info_->script(); } | 577 Handle<Script> script() { return info_->script(); } |
578 bool is_eval() { return info_->is_eval(); } | 578 bool is_eval() { return info_->is_eval(); } |
579 bool is_native() { return info_->is_native(); } | 579 bool is_native() { return info_->is_native(); } |
580 bool is_strict_mode() { return function()->strict_mode(); } | 580 bool is_strict_mode() { |
| 581 return strict_mode_flag() == kStrictMode; |
| 582 } |
581 StrictModeFlag strict_mode_flag() { | 583 StrictModeFlag strict_mode_flag() { |
582 return is_strict_mode() ? kStrictMode : kNonStrictMode; | 584 return function()->strict_mode_flag(); |
583 } | 585 } |
584 FunctionLiteral* function() { return info_->function(); } | 586 FunctionLiteral* function() { return info_->function(); } |
585 Scope* scope() { return scope_; } | 587 Scope* scope() { return scope_; } |
586 | 588 |
587 static Register result_register(); | 589 static Register result_register(); |
588 static Register context_register(); | 590 static Register context_register(); |
589 | 591 |
590 // Set fields in the stack frame. Offsets are the frame pointer relative | 592 // Set fields in the stack frame. Offsets are the frame pointer relative |
591 // offsets defined in, e.g., StandardFrameConstants. | 593 // offsets defined in, e.g., StandardFrameConstants. |
592 void StoreToFrameField(int frame_offset, Register value); | 594 void StoreToFrameField(int frame_offset, Register value); |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 826 |
825 friend class NestedStatement; | 827 friend class NestedStatement; |
826 | 828 |
827 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 829 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
828 }; | 830 }; |
829 | 831 |
830 | 832 |
831 } } // namespace v8::internal | 833 } } // namespace v8::internal |
832 | 834 |
833 #endif // V8_FULL_CODEGEN_H_ | 835 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |