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

Side by Side Diff: src/objects.h

Issue 66513006: Merged r17620, r17621 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « src/factory.cc ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 8593 matching lines...) Expand 10 before | Expand all | Expand 10 after
8604 static const int kMaxLength = (1 << (32 - 2)) - 1; 8604 static const int kMaxLength = (1 << (32 - 2)) - 1;
8605 8605
8606 // Max length for computing hash. For strings longer than this limit the 8606 // Max length for computing hash. For strings longer than this limit the
8607 // string length is used as the hash value. 8607 // string length is used as the hash value.
8608 static const int kMaxHashCalcLength = 16383; 8608 static const int kMaxHashCalcLength = 16383;
8609 8609
8610 // Limit for truncation in short printing. 8610 // Limit for truncation in short printing.
8611 static const int kMaxShortPrintLength = 1024; 8611 static const int kMaxShortPrintLength = 1024;
8612 8612
8613 // Support for regular expressions. 8613 // Support for regular expressions.
8614 const uc16* GetTwoByteData();
8615 const uc16* GetTwoByteData(unsigned start); 8614 const uc16* GetTwoByteData(unsigned start);
8616 8615
8617 // Helper function for flattening strings. 8616 // Helper function for flattening strings.
8618 template <typename sinkchar> 8617 template <typename sinkchar>
8619 static void WriteToFlat(String* source, 8618 static void WriteToFlat(String* source,
8620 sinkchar* sink, 8619 sinkchar* sink,
8621 int from, 8620 int from,
8622 int to); 8621 int to);
8623 8622
8624 // The return value may point to the first aligned word containing the 8623 // The return value may point to the first aligned word containing the
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
10477 } else { 10476 } else {
10478 value &= ~(1 << bit_position); 10477 value &= ~(1 << bit_position);
10479 } 10478 }
10480 return value; 10479 return value;
10481 } 10480 }
10482 }; 10481 };
10483 10482
10484 } } // namespace v8::internal 10483 } } // namespace v8::internal
10485 10484
10486 #endif // V8_OBJECTS_H_ 10485 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698