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/cctest.h

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 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
« no previous file with comments | « src/zone/accounting-allocator.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/zone/accounting-allocator.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698