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

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

Issue 2622643005: ARM64: Add NEON support (Closed)
Patch Set: Created 3 years, 11 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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());
124 } 124 }
125 125
126 static i::Heap* heap(); 126 static i::Heap* heap();
127 127
128 static bool sim_test_trace() { return sim_test_trace_; }
129
128 static void CollectGarbage(i::AllocationSpace space); 130 static void CollectGarbage(i::AllocationSpace space);
129 static void CollectAllGarbage(int flags); 131 static void CollectAllGarbage(int flags);
130 static void CollectAllAvailableGarbage(); 132 static void CollectAllAvailableGarbage();
131 133
132 static v8::base::RandomNumberGenerator* random_number_generator(); 134 static v8::base::RandomNumberGenerator* random_number_generator();
133 135
134 static v8::Local<v8::Object> global(); 136 static v8::Local<v8::Object> global();
135 137
136 static v8::ArrayBuffer::Allocator* array_buffer_allocator() { 138 static v8::ArrayBuffer::Allocator* array_buffer_allocator() {
137 return allocator_; 139 return allocator_;
(...skipping 24 matching lines...) Expand all
162 TestFunction* callback_; 164 TestFunction* callback_;
163 const char* file_; 165 const char* file_;
164 const char* name_; 166 const char* name_;
165 bool enabled_; 167 bool enabled_;
166 bool initialize_; 168 bool initialize_;
167 CcTest* prev_; 169 CcTest* prev_;
168 static CcTest* last_; 170 static CcTest* last_;
169 static v8::ArrayBuffer::Allocator* allocator_; 171 static v8::ArrayBuffer::Allocator* allocator_;
170 static v8::Isolate* isolate_; 172 static v8::Isolate* isolate_;
171 static bool initialize_called_; 173 static bool initialize_called_;
174 static bool sim_test_trace_;
bbudge 2017/01/31 01:41:31 As far as I can tell, this will always be false.
martyn.capewell 2017/02/03 11:01:30 This is a leftover from generating the reference t
172 static v8::base::Atomic32 isolate_used_; 175 static v8::base::Atomic32 isolate_used_;
173 }; 176 };
174 177
175 // Switches between all the Api tests using the threading support. 178 // Switches between all the Api tests using the threading support.
176 // In order to get a surprising but repeatable pattern of thread 179 // In order to get a surprising but repeatable pattern of thread
177 // switching it has extra semaphores to control the order in which 180 // switching it has extra semaphores to control the order in which
178 // the tests alternate, not relying solely on the big V8 lock. 181 // the tests alternate, not relying solely on the big V8 lock.
179 // 182 //
180 // A test is augmented with calls to ApiTestFuzzer::Fuzz() in its 183 // A test is augmented with calls to ApiTestFuzzer::Fuzz() in its
181 // callbacks. This will have no effect when we are not running the 184 // callbacks. This will have no effect when we are not running the
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 607
605 const char* data() const { return data_; } 608 const char* data() const { return data_; }
606 609
607 size_t length() const { return strlen(data_); } 610 size_t length() const { return strlen(data_); }
608 611
609 private: 612 private:
610 const char* data_; 613 const char* data_;
611 }; 614 };
612 615
613 #endif // ifndef CCTEST_H_ 616 #endif // ifndef CCTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698