OLD | NEW |
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ~CcTest() { i::DeleteArray(file_); } | 103 ~CcTest() { i::DeleteArray(file_); } |
104 void Run(); | 104 void Run(); |
105 static CcTest* last() { return last_; } | 105 static CcTest* last() { return last_; } |
106 CcTest* prev() { return prev_; } | 106 CcTest* prev() { return prev_; } |
107 const char* file() { return file_; } | 107 const char* file() { return file_; } |
108 const char* name() { return name_; } | 108 const char* name() { return name_; } |
109 bool enabled() { return enabled_; } | 109 bool enabled() { return enabled_; } |
110 | 110 |
111 static v8::Isolate* isolate() { | 111 static v8::Isolate* isolate() { |
112 CHECK(isolate_ != NULL); | 112 CHECK(isolate_ != NULL); |
113 v8::base::NoBarrier_Store(&isolate_used_, 1); | 113 v8::base::Relaxed_Store(&isolate_used_, 1); |
114 return isolate_; | 114 return isolate_; |
115 } | 115 } |
116 | 116 |
117 static i::Isolate* InitIsolateOnce() { | 117 static i::Isolate* InitIsolateOnce() { |
118 if (!initialize_called_) InitializeVM(); | 118 if (!initialize_called_) InitializeVM(); |
119 return i_isolate(); | 119 return i_isolate(); |
120 } | 120 } |
121 | 121 |
122 static i::Isolate* i_isolate() { | 122 static i::Isolate* i_isolate() { |
123 return reinterpret_cast<i::Isolate*>(isolate()); | 123 return reinterpret_cast<i::Isolate*>(isolate()); |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 605 |
606 const char* data() const { return data_; } | 606 const char* data() const { return data_; } |
607 | 607 |
608 size_t length() const { return strlen(data_); } | 608 size_t length() const { return strlen(data_); } |
609 | 609 |
610 private: | 610 private: |
611 const char* data_; | 611 const char* data_; |
612 }; | 612 }; |
613 | 613 |
614 #endif // ifndef CCTEST_H_ | 614 #endif // ifndef CCTEST_H_ |
OLD | NEW |