| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void CollectGarbage(i::AllocationSpace space); |
| 129 static void CollectAllGarbage(int flags); |
| 130 static void CollectAllAvailableGarbage(); |
| 131 |
| 128 static v8::base::RandomNumberGenerator* random_number_generator(); | 132 static v8::base::RandomNumberGenerator* random_number_generator(); |
| 129 | 133 |
| 130 static v8::Local<v8::Object> global(); | 134 static v8::Local<v8::Object> global(); |
| 131 | 135 |
| 132 static v8::ArrayBuffer::Allocator* array_buffer_allocator() { | 136 static v8::ArrayBuffer::Allocator* array_buffer_allocator() { |
| 133 return allocator_; | 137 return allocator_; |
| 134 } | 138 } |
| 135 | 139 |
| 136 static void set_array_buffer_allocator( | 140 static void set_array_buffer_allocator( |
| 137 v8::ArrayBuffer::Allocator* allocator) { | 141 v8::ArrayBuffer::Allocator* allocator) { |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 585 |
| 582 // Prefixing the below with main_ reduces a lot of naming clashes. | 586 // Prefixing the below with main_ reduces a lot of naming clashes. |
| 583 i::Zone* main_zone() { return main_zone_.get(); } | 587 i::Zone* main_zone() { return main_zone_.get(); } |
| 584 | 588 |
| 585 private: | 589 private: |
| 586 v8::base::AccountingAllocator allocator_; | 590 v8::base::AccountingAllocator allocator_; |
| 587 std::unique_ptr<i::Zone> main_zone_; | 591 std::unique_ptr<i::Zone> main_zone_; |
| 588 }; | 592 }; |
| 589 | 593 |
| 590 #endif // ifndef CCTEST_H_ | 594 #endif // ifndef CCTEST_H_ |
| OLD | NEW |