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

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

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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-spaces.cc ('k') | test/cctest/test-strtod.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 #include "v8.h" 35 #include "src/v8.h"
36 36
37 #include "api.h" 37 #include "src/api.h"
38 #include "factory.h" 38 #include "src/factory.h"
39 #include "objects.h" 39 #include "src/objects.h"
40 #include "cctest.h" 40 #include "test/cctest/cctest.h"
41 41
42 // Adapted from http://en.wikipedia.org/wiki/Multiply-with-carry 42 // Adapted from http://en.wikipedia.org/wiki/Multiply-with-carry
43 class MyRandomNumberGenerator { 43 class MyRandomNumberGenerator {
44 public: 44 public:
45 MyRandomNumberGenerator() { 45 MyRandomNumberGenerator() {
46 init(); 46 init();
47 } 47 }
48 48
49 void init(uint32_t seed = 0x5688c73e) { 49 void init(uint32_t seed = 0x5688c73e) {
50 static const uint32_t phi = 0x9e3779b9; 50 static const uint32_t phi = 0x9e3779b9;
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 CHECK(isolate->has_pending_exception()); \ 1403 CHECK(isolate->has_pending_exception()); \
1404 isolate->clear_pending_exception(); \ 1404 isolate->clear_pending_exception(); \
1405 dummy.Dispose(); \ 1405 dummy.Dispose(); \
1406 } 1406 }
1407 1407
1408 INVALID_STRING_TEST(NewStringFromAscii, char) 1408 INVALID_STRING_TEST(NewStringFromAscii, char)
1409 INVALID_STRING_TEST(NewStringFromUtf8, char) 1409 INVALID_STRING_TEST(NewStringFromUtf8, char)
1410 INVALID_STRING_TEST(NewStringFromOneByte, uint8_t) 1410 INVALID_STRING_TEST(NewStringFromOneByte, uint8_t)
1411 1411
1412 #undef INVALID_STRING_TEST 1412 #undef INVALID_STRING_TEST
OLDNEW
« no previous file with comments | « test/cctest/test-spaces.cc ('k') | test/cctest/test-strtod.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698