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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // ----------------------------------------------------------------------------- | 354 // ----------------------------------------------------------------------------- |
355 // Forward declarations for frequently used classes | 355 // Forward declarations for frequently used classes |
356 // (sorted alphabetically) | 356 // (sorted alphabetically) |
357 | 357 |
358 class FreeStoreAllocationPolicy; | 358 class FreeStoreAllocationPolicy; |
359 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 359 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
360 | 360 |
361 // ----------------------------------------------------------------------------- | 361 // ----------------------------------------------------------------------------- |
362 // Declarations for use in both the preparser and the rest of V8. | 362 // Declarations for use in both the preparser and the rest of V8. |
363 | 363 |
| 364 enum LanguageMode { |
| 365 CLASSIC_MODE, |
| 366 STRICT_MODE, |
| 367 EXTENDED_MODE |
| 368 }; |
| 369 |
| 370 |
364 // The Strict Mode (ECMA-262 5th edition, 4.2.2). | 371 // The Strict Mode (ECMA-262 5th edition, 4.2.2). |
365 enum StrictModeFlag { | 372 enum StrictModeFlag { |
366 kNonStrictMode, | 373 kNonStrictMode, |
367 kStrictMode | 374 kStrictMode |
368 }; | 375 }; |
369 | 376 |
370 | 377 |
371 } } // namespace v8::internal | 378 } } // namespace v8::internal |
372 | 379 |
373 #endif // V8_GLOBALS_H_ | 380 #endif // V8_GLOBALS_H_ |
OLD | NEW |