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

Side by Side Diff: src/v8globals.h

Issue 8680013: Remove the static qualifier from functions in header files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restored static const references on ARM and MIPS. Created 9 years 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 enum ScopeType { 477 enum ScopeType {
478 EVAL_SCOPE, // The top-level scope for an eval source. 478 EVAL_SCOPE, // The top-level scope for an eval source.
479 FUNCTION_SCOPE, // The top-level scope for a function. 479 FUNCTION_SCOPE, // The top-level scope for a function.
480 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. 480 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval.
481 CATCH_SCOPE, // The scope introduced by catch. 481 CATCH_SCOPE, // The scope introduced by catch.
482 BLOCK_SCOPE, // The scope introduced by a new block. 482 BLOCK_SCOPE, // The scope introduced by a new block.
483 WITH_SCOPE // The scope introduced by with. 483 WITH_SCOPE // The scope introduced by with.
484 }; 484 };
485 485
486 486
487 static const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; 487 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF;
488 static const uint32_t kHoleNanLower32 = 0xFFFFFFFF; 488 const uint32_t kHoleNanLower32 = 0xFFFFFFFF;
489 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; 489 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000;
490 490
491 const uint64_t kHoleNanInt64 = 491 const uint64_t kHoleNanInt64 =
492 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 492 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
493 const uint64_t kLastNonNaNInt64 = 493 const uint64_t kLastNonNaNInt64 =
494 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); 494 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32);
495 495
496 496
497 enum VariableMode { 497 enum VariableMode {
498 // User declared variables: 498 // User declared variables:
499 VAR, // declared via 'var', and 'function' declarations 499 VAR, // declared via 'var', and 'function' declarations
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 564
565 enum ClearExceptionFlag { 565 enum ClearExceptionFlag {
566 KEEP_EXCEPTION, 566 KEEP_EXCEPTION,
567 CLEAR_EXCEPTION 567 CLEAR_EXCEPTION
568 }; 568 };
569 569
570 570
571 } } // namespace v8::internal 571 } } // namespace v8::internal
572 572
573 #endif // V8_V8GLOBALS_H_ 573 #endif // V8_V8GLOBALS_H_
OLDNEW
« src/conversions-inl.h ('K') | « src/v8conversions.h ('k') | src/v8utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698