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

Side by Side Diff: test/cctest/cctest.h

Issue 583153002: Reland 24052 - Require V8 to be explicitly initialized before an Isolate is created (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « src/v8.cc ('k') | test/cctest/cctest.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static void Test##Name() 46 static void Test##Name()
47 #endif 47 #endif
48 48
49 #ifndef DEPENDENT_TEST 49 #ifndef DEPENDENT_TEST
50 #define DEPENDENT_TEST(Name, Dep) \ 50 #define DEPENDENT_TEST(Name, Dep) \
51 static void Test##Name(); \ 51 static void Test##Name(); \
52 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, true); \ 52 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, true); \
53 static void Test##Name() 53 static void Test##Name()
54 #endif 54 #endif
55 55
56 #ifndef UNINITIALIZED_DEPENDENT_TEST
57 #define UNINITIALIZED_DEPENDENT_TEST(Name, Dep) \
58 static void Test##Name(); \
59 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, false); \
60 static void Test##Name()
61 #endif
62
56 #ifndef DISABLED_TEST 63 #ifndef DISABLED_TEST
57 #define DISABLED_TEST(Name) \ 64 #define DISABLED_TEST(Name) \
58 static void Test##Name(); \ 65 static void Test##Name(); \
59 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \ 66 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \
60 static void Test##Name() 67 static void Test##Name()
61 #endif 68 #endif
62 69
63 #define EXTENSION_LIST(V) \ 70 #define EXTENSION_LIST(V) \
64 V(GC_EXTENSION, "v8/gc") \ 71 V(GC_EXTENSION, "v8/gc") \
65 V(PRINT_EXTENSION, "v8/print") \ 72 V(PRINT_EXTENSION, "v8/print") \
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 HandleAndZoneScope() : main_zone_(main_isolate()) {} 563 HandleAndZoneScope() : main_zone_(main_isolate()) {}
557 564
558 // Prefixing the below with main_ reduces a lot of naming clashes. 565 // Prefixing the below with main_ reduces a lot of naming clashes.
559 i::Zone* main_zone() { return &main_zone_; } 566 i::Zone* main_zone() { return &main_zone_; }
560 567
561 private: 568 private:
562 i::Zone main_zone_; 569 i::Zone main_zone_;
563 }; 570 };
564 571
565 #endif // ifndef CCTEST_H_ 572 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698