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

Side by Side Diff: src/char-predicates-inl.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, 1 month 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 2006-2008 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
11 // with the distribution. 11 // with the distribution.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 inline bool IsCarriageReturn(uc32 c) { 45 inline bool IsCarriageReturn(uc32 c) {
46 return c == 0x000D; 46 return c == 0x000D;
47 } 47 }
48 48
49 49
50 inline bool IsLineFeed(uc32 c) { 50 inline bool IsLineFeed(uc32 c) {
51 return c == 0x000A; 51 return c == 0x000A;
52 } 52 }
53 53
54 54
55 static inline bool IsInRange(int value, int lower_limit, int higher_limit) { 55 inline bool IsInRange(int value, int lower_limit, int higher_limit) {
56 ASSERT(lower_limit <= higher_limit); 56 ASSERT(lower_limit <= higher_limit);
57 return static_cast<unsigned int>(value - lower_limit) <= 57 return static_cast<unsigned int>(value - lower_limit) <=
58 static_cast<unsigned int>(higher_limit - lower_limit); 58 static_cast<unsigned int>(higher_limit - lower_limit);
59 } 59 }
60 60
61 61
62 inline bool IsDecimalDigit(uc32 c) { 62 inline bool IsDecimalDigit(uc32 c) {
63 // ECMA-262, 3rd, 7.8.3 (p 16) 63 // ECMA-262, 3rd, 7.8.3 (p 16)
64 return IsInRange(c, '0', '9'); 64 return IsInRange(c, '0', '9');
65 } 65 }
(...skipping 19 matching lines...) Expand all
85 return false; 85 return false;
86 default: 86 default:
87 return true; 87 return true;
88 } 88 }
89 } 89 }
90 90
91 91
92 } } // namespace v8::internal 92 } } // namespace v8::internal
93 93
94 #endif // V8_CHAR_PREDICATES_INL_H_ 94 #endif // V8_CHAR_PREDICATES_INL_H_
OLDNEW
« no previous file with comments | « src/bytecodes-irregexp.h ('k') | src/checks.h » ('j') | src/conversions-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698