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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 } | 524 } |
525 | 525 |
526 MacroAssembler* masm() { return masm_; } | 526 MacroAssembler* masm() { return masm_; } |
527 | 527 |
528 class ExpressionContext; | 528 class ExpressionContext; |
529 const ExpressionContext* context() { return context_; } | 529 const ExpressionContext* context() { return context_; } |
530 void set_new_context(const ExpressionContext* context) { context_ = context; } | 530 void set_new_context(const ExpressionContext* context) { context_ = context; } |
531 | 531 |
532 Handle<Script> script() { return info_->script(); } | 532 Handle<Script> script() { return info_->script(); } |
533 bool is_eval() { return info_->is_eval(); } | 533 bool is_eval() { return info_->is_eval(); } |
| 534 bool is_strict() { return function()->strict_mode(); } |
534 StrictModeFlag strict_mode_flag() { | 535 StrictModeFlag strict_mode_flag() { |
535 return function()->strict_mode() ? kStrictMode : kNonStrictMode; | 536 return is_strict() ? kStrictMode : kNonStrictMode; |
536 } | 537 } |
537 FunctionLiteral* function() { return info_->function(); } | 538 FunctionLiteral* function() { return info_->function(); } |
538 Scope* scope() { return info_->scope(); } | 539 Scope* scope() { return info_->scope(); } |
539 | 540 |
540 static Register result_register(); | 541 static Register result_register(); |
541 static Register context_register(); | 542 static Register context_register(); |
542 | 543 |
543 // Helper for calling an IC stub. | 544 // Helper for calling an IC stub. |
544 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); | 545 void EmitCallIC(Handle<Code> ic, RelocInfo::Mode mode); |
545 | 546 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 | 772 |
772 friend class NestedStatement; | 773 friend class NestedStatement; |
773 | 774 |
774 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 775 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
775 }; | 776 }; |
776 | 777 |
777 | 778 |
778 } } // namespace v8::internal | 779 } } // namespace v8::internal |
779 | 780 |
780 #endif // V8_FULL_CODEGEN_H_ | 781 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |