OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 | 600 |
601 MacroAssembler* masm() { return masm_; } | 601 MacroAssembler* masm() { return masm_; } |
602 | 602 |
603 class ExpressionContext; | 603 class ExpressionContext; |
604 const ExpressionContext* context() { return context_; } | 604 const ExpressionContext* context() { return context_; } |
605 void set_new_context(const ExpressionContext* context) { context_ = context; } | 605 void set_new_context(const ExpressionContext* context) { context_ = context; } |
606 | 606 |
607 Handle<Script> script() { return info_->script(); } | 607 Handle<Script> script() { return info_->script(); } |
608 bool is_eval() { return info_->is_eval(); } | 608 bool is_eval() { return info_->is_eval(); } |
609 bool is_native() { return info_->is_native(); } | 609 bool is_native() { return info_->is_native(); } |
610 bool is_classic_mode() { return language_mode() == CLASSIC_MODE; } | 610 bool is_sloppy_mode() { return language_mode() == SLOPPY_MODE; } |
611 StrictModeFlag strict_mode() { | 611 StrictModeFlag strict_mode() { |
612 return is_classic_mode() ? kNonStrictMode : kStrictMode; | 612 return is_sloppy_mode() ? kSloppyMode : kStrictMode; |
613 } | 613 } |
614 LanguageMode language_mode() { return function()->language_mode(); } | 614 LanguageMode language_mode() { return function()->language_mode(); } |
615 FunctionLiteral* function() { return info_->function(); } | 615 FunctionLiteral* function() { return info_->function(); } |
616 Scope* scope() { return scope_; } | 616 Scope* scope() { return scope_; } |
617 | 617 |
618 static Register result_register(); | 618 static Register result_register(); |
619 static Register context_register(); | 619 static Register context_register(); |
620 | 620 |
621 // Set fields in the stack frame. Offsets are the frame pointer relative | 621 // Set fields in the stack frame. Offsets are the frame pointer relative |
622 // offsets defined in, e.g., StandardFrameConstants. | 622 // offsets defined in, e.g., StandardFrameConstants. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 | 965 |
966 Address start_; | 966 Address start_; |
967 Address instruction_start_; | 967 Address instruction_start_; |
968 uint32_t length_; | 968 uint32_t length_; |
969 }; | 969 }; |
970 | 970 |
971 | 971 |
972 } } // namespace v8::internal | 972 } } // namespace v8::internal |
973 | 973 |
974 #endif // V8_FULL_CODEGEN_H_ | 974 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |