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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 } | 702 } |
703 HBasicBlock* function_return() const { | 703 HBasicBlock* function_return() const { |
704 return function_state()->function_return(); | 704 return function_state()->function_return(); |
705 } | 705 } |
706 TestContext* inlined_test_context() const { | 706 TestContext* inlined_test_context() const { |
707 return function_state()->test_context(); | 707 return function_state()->test_context(); |
708 } | 708 } |
709 void ClearInlinedTestContext() { | 709 void ClearInlinedTestContext() { |
710 function_state()->ClearInlinedTestContext(); | 710 function_state()->ClearInlinedTestContext(); |
711 } | 711 } |
| 712 bool function_strict_mode() { |
| 713 return function_state()->compilation_info()->is_strict_mode(); |
| 714 } |
712 | 715 |
713 // Generators for inline runtime functions. | 716 // Generators for inline runtime functions. |
714 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ | 717 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ |
715 void Generate##Name(CallRuntime* call); | 718 void Generate##Name(CallRuntime* call); |
716 | 719 |
717 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) | 720 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) |
718 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) | 721 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) |
719 #undef INLINE_FUNCTION_GENERATOR_DECLARATION | 722 #undef INLINE_FUNCTION_GENERATOR_DECLARATION |
720 | 723 |
721 void Bailout(const char* reason); | 724 void Bailout(const char* reason); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 const char* filename_; | 1131 const char* filename_; |
1129 HeapStringAllocator string_allocator_; | 1132 HeapStringAllocator string_allocator_; |
1130 StringStream trace_; | 1133 StringStream trace_; |
1131 int indent_; | 1134 int indent_; |
1132 }; | 1135 }; |
1133 | 1136 |
1134 | 1137 |
1135 } } // namespace v8::internal | 1138 } } // namespace v8::internal |
1136 | 1139 |
1137 #endif // V8_HYDROGEN_H_ | 1140 #endif // V8_HYDROGEN_H_ |
OLD | NEW |