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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 | 520 |
521 MacroAssembler* masm() { return masm_; } | 521 MacroAssembler* masm() { return masm_; } |
522 | 522 |
523 class ExpressionContext; | 523 class ExpressionContext; |
524 const ExpressionContext* context() { return context_; } | 524 const ExpressionContext* context() { return context_; } |
525 void set_new_context(const ExpressionContext* context) { context_ = context; } | 525 void set_new_context(const ExpressionContext* context) { context_ = context; } |
526 | 526 |
527 Handle<Script> script() { return info_->script(); } | 527 Handle<Script> script() { return info_->script(); } |
528 bool is_eval() { return info_->is_eval(); } | 528 bool is_eval() { return info_->is_eval(); } |
529 bool is_native() { return info_->is_native(); } | 529 bool is_native() { return info_->is_native(); } |
530 bool is_strict_mode() { | 530 bool is_strict_or_extended_mode() { |
rossberg
2011/11/08 15:02:46
As before.
Steven
2011/11/08 16:13:49
Done.
| |
531 return strict_mode_flag() == kStrictMode; | 531 return language_mode() != CLASSIC_MODE; |
532 } | 532 } |
533 StrictModeFlag strict_mode_flag() { | 533 bool is_classic_mode() { |
534 return function()->strict_mode_flag(); | 534 return language_mode() == CLASSIC_MODE; |
535 } | |
536 LanguageMode language_mode() { | |
537 return function()->language_mode(); | |
535 } | 538 } |
536 FunctionLiteral* function() { return info_->function(); } | 539 FunctionLiteral* function() { return info_->function(); } |
537 Scope* scope() { return scope_; } | 540 Scope* scope() { return scope_; } |
538 | 541 |
539 static Register result_register(); | 542 static Register result_register(); |
540 static Register context_register(); | 543 static Register context_register(); |
541 | 544 |
542 // Set fields in the stack frame. Offsets are the frame pointer relative | 545 // Set fields in the stack frame. Offsets are the frame pointer relative |
543 // offsets defined in, e.g., StandardFrameConstants. | 546 // offsets defined in, e.g., StandardFrameConstants. |
544 void StoreToFrameField(int frame_offset, Register value); | 547 void StoreToFrameField(int frame_offset, Register value); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 | 761 |
759 friend class NestedStatement; | 762 friend class NestedStatement; |
760 | 763 |
761 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 764 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
762 }; | 765 }; |
763 | 766 |
764 | 767 |
765 } } // namespace v8::internal | 768 } } // namespace v8::internal |
766 | 769 |
767 #endif // V8_FULL_CODEGEN_H_ | 770 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |