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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 HBasicBlock* function_return() const { | 772 HBasicBlock* function_return() const { |
773 return function_state()->function_return(); | 773 return function_state()->function_return(); |
774 } | 774 } |
775 TestContext* inlined_test_context() const { | 775 TestContext* inlined_test_context() const { |
776 return function_state()->test_context(); | 776 return function_state()->test_context(); |
777 } | 777 } |
778 void ClearInlinedTestContext() { | 778 void ClearInlinedTestContext() { |
779 function_state()->ClearInlinedTestContext(); | 779 function_state()->ClearInlinedTestContext(); |
780 } | 780 } |
781 StrictModeFlag function_strict_mode_flag() { | 781 StrictModeFlag function_strict_mode_flag() { |
782 return function_state()->compilation_info()->strict_mode_flag(); | 782 return function_state()->compilation_info()->is_classic_mode() |
| 783 ? kNonStrictMode : kStrictMode; |
783 } | 784 } |
784 | 785 |
785 // Generators for inline runtime functions. | 786 // Generators for inline runtime functions. |
786 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ | 787 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ |
787 void Generate##Name(CallRuntime* call); | 788 void Generate##Name(CallRuntime* call); |
788 | 789 |
789 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) | 790 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) |
790 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) | 791 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) |
791 #undef INLINE_FUNCTION_GENERATOR_DECLARATION | 792 #undef INLINE_FUNCTION_GENERATOR_DECLARATION |
792 | 793 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 const char* filename_; | 1250 const char* filename_; |
1250 HeapStringAllocator string_allocator_; | 1251 HeapStringAllocator string_allocator_; |
1251 StringStream trace_; | 1252 StringStream trace_; |
1252 int indent_; | 1253 int indent_; |
1253 }; | 1254 }; |
1254 | 1255 |
1255 | 1256 |
1256 } } // namespace v8::internal | 1257 } } // namespace v8::internal |
1257 | 1258 |
1258 #endif // V8_HYDROGEN_H_ | 1259 #endif // V8_HYDROGEN_H_ |
OLD | NEW |