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

Side by Side Diff: src/runtime.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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 int position); 669 int position);
670 670
671 // Helper functions used stubs. 671 // Helper functions used stubs.
672 static void PerformGC(Object* result); 672 static void PerformGC(Object* result);
673 }; 673 };
674 674
675 675
676 //--------------------------------------------------------------------------- 676 //---------------------------------------------------------------------------
677 // Constants used by interface to runtime functions. 677 // Constants used by interface to runtime functions.
678 678
679 enum kDeclareGlobalsFlags { 679 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
680 kDeclareGlobalsEvalFlag = 1 << 0, 680 class DeclareGlobalsStrictModeFlag: public BitField<StrictModeFlag, 1, 1> {};
681 kDeclareGlobalsStrictModeFlag = 1 << 1, 681 class DeclareGlobalsNativeFlag: public BitField<bool, 2, 1> {};
682 kDeclareGlobalsNativeFlag = 1 << 2
683 };
684 682
685 } } // namespace v8::internal 683 } } // namespace v8::internal
686 684
687 #endif // V8_RUNTIME_H_ 685 #endif // V8_RUNTIME_H_
OLDNEW
« src/compiler.cc ('K') | « src/preparser.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698