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

Side by Side Diff: src/jsregexp.h

Issue 8198005: Remove a static initializer that could potentially slow down startup time. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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
« no previous file with comments | « no previous file | src/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 uc16 from_; 382 uc16 from_;
383 uc16 to_; 383 uc16 to_;
384 OutSet* out_set_; 384 OutSet* out_set_;
385 }; 385 };
386 386
387 class Config { 387 class Config {
388 public: 388 public:
389 typedef uc16 Key; 389 typedef uc16 Key;
390 typedef Entry Value; 390 typedef Entry Value;
391 static const uc16 kNoKey; 391 static const uc16 kNoKey;
392 static const Entry kNoValue; 392 static const Entry NoValue() { return Value(); }
393 static inline int Compare(uc16 a, uc16 b) { 393 static inline int Compare(uc16 a, uc16 b) {
394 if (a == b) 394 if (a == b)
395 return 0; 395 return 0;
396 else if (a < b) 396 else if (a < b)
397 return -1; 397 return -1;
398 else 398 else
399 return 1; 399 return 1;
400 } 400 }
401 }; 401 };
402 402
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 int* vector_; 1491 int* vector_;
1492 int offsets_vector_length_; 1492 int offsets_vector_length_;
1493 1493
1494 friend class ExternalReference; 1494 friend class ExternalReference;
1495 }; 1495 };
1496 1496
1497 1497
1498 } } // namespace v8::internal 1498 } } // namespace v8::internal
1499 1499
1500 #endif // V8_JSREGEXP_H_ 1500 #endif // V8_JSREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698