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

Side by Side Diff: test/cctest/test-strings.cc

Issue 12729023: first step to remove unsafe handles (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: issue with debug build Created 7 years, 7 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 | « test/cctest/test-serialize.cc ('k') | test/cctest/test-symbols.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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 // Check that we can traverse very deep stacks of ConsStrings using 28 // Check that we can traverse very deep stacks of ConsStrings using
29 // StringCharacterStram. Check that Get(int) works on very deep stacks 29 // StringCharacterStram. Check that Get(int) works on very deep stacks
30 // of ConsStrings. These operations may not be very fast, but they 30 // of ConsStrings. These operations may not be very fast, but they
31 // should be possible without getting errors due to too deep recursion. 31 // should be possible without getting errors due to too deep recursion.
32 32
33 #include <stdlib.h> 33 #include <stdlib.h>
34 34
35 // TODO(dcarney): remove
36 #define V8_ALLOW_ACCESS_TO_PERSISTENT_IMPLICIT
37 #define V8_ALLOW_ACCESS_TO_PERSISTENT_ARROW
38
35 #include "v8.h" 39 #include "v8.h"
36 40
37 #include "api.h" 41 #include "api.h"
38 #include "factory.h" 42 #include "factory.h"
39 #include "objects.h" 43 #include "objects.h"
40 #include "cctest.h" 44 #include "cctest.h"
41 #include "zone-inl.h" 45 #include "zone-inl.h"
42 46
43 // Adapted from http://en.wikipedia.org/wiki/Multiply-with-carry 47 // Adapted from http://en.wikipedia.org/wiki/Multiply-with-carry
44 class RandomNumberGenerator { 48 class RandomNumberGenerator {
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 CheckCanonicalEquivalence(c, test); 1341 CheckCanonicalEquivalence(c, test);
1338 continue; 1342 continue;
1339 } 1343 }
1340 if (upper != c && lower != c) { 1344 if (upper != c && lower != c) {
1341 CheckCanonicalEquivalence(c, test); 1345 CheckCanonicalEquivalence(c, test);
1342 continue; 1346 continue;
1343 } 1347 }
1344 CHECK_EQ(Min(upper, lower), test); 1348 CHECK_EQ(Min(upper, lower), test);
1345 } 1349 }
1346 } 1350 }
OLDNEW
« no previous file with comments | « test/cctest/test-serialize.cc ('k') | test/cctest/test-symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698