Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: src/hydrogen.h

Issue 8344082: Replace boolean indications of strict mode by an enum value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some fixes and adapted the preparser. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 } 762 }
763 HBasicBlock* function_return() const { 763 HBasicBlock* function_return() const {
764 return function_state()->function_return(); 764 return function_state()->function_return();
765 } 765 }
766 TestContext* inlined_test_context() const { 766 TestContext* inlined_test_context() const {
767 return function_state()->test_context(); 767 return function_state()->test_context();
768 } 768 }
769 void ClearInlinedTestContext() { 769 void ClearInlinedTestContext() {
770 function_state()->ClearInlinedTestContext(); 770 function_state()->ClearInlinedTestContext();
771 } 771 }
772 bool function_strict_mode() { 772 StrictModeFlag function_strict_mode_flag() {
773 return function_state()->compilation_info()->is_strict_mode(); 773 return function_state()->compilation_info()->strict_mode_flag();
774 } 774 }
775 775
776 // Generators for inline runtime functions. 776 // Generators for inline runtime functions.
777 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ 777 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \
778 void Generate##Name(CallRuntime* call); 778 void Generate##Name(CallRuntime* call);
779 779
780 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) 780 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION)
781 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) 781 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION)
782 #undef INLINE_FUNCTION_GENERATOR_DECLARATION 782 #undef INLINE_FUNCTION_GENERATOR_DECLARATION
783 783
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 const char* filename_; 1240 const char* filename_;
1241 HeapStringAllocator string_allocator_; 1241 HeapStringAllocator string_allocator_;
1242 StringStream trace_; 1242 StringStream trace_;
1243 int indent_; 1243 int indent_;
1244 }; 1244 };
1245 1245
1246 1246
1247 } } // namespace v8::internal 1247 } } // namespace v8::internal
1248 1248
1249 #endif // V8_HYDROGEN_H_ 1249 #endif // V8_HYDROGEN_H_
OLDNEW
« src/compiler.cc ('K') | « src/full-codegen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698