| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Use this to expose protected methods in i::Heap. | 92 // Use this to expose protected methods in i::Heap. |
| 93 class TestHeap : public i::Heap { | 93 class TestHeap : public i::Heap { |
| 94 public: | 94 public: |
| 95 using i::Heap::AllocateByteArray; | 95 using i::Heap::AllocateByteArray; |
| 96 using i::Heap::AllocateFixedArray; | 96 using i::Heap::AllocateFixedArray; |
| 97 using i::Heap::AllocateHeapNumber; | 97 using i::Heap::AllocateHeapNumber; |
| 98 using i::Heap::AllocateJSObject; | 98 using i::Heap::AllocateJSObject; |
| 99 using i::Heap::AllocateJSObjectFromMap; | 99 using i::Heap::AllocateJSObjectFromMap; |
| 100 using i::Heap::AllocateMap; | 100 using i::Heap::AllocateMap; |
| 101 using i::Heap::CopyCode; | 101 using i::Heap::CopyCode; |
| 102 using i::Heap::kInitialNumberStringCacheSize; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 | 105 |
| 105 class CcTest { | 106 class CcTest { |
| 106 public: | 107 public: |
| 107 typedef void (TestFunction)(); | 108 typedef void (TestFunction)(); |
| 108 CcTest(TestFunction* callback, const char* file, const char* name, | 109 CcTest(TestFunction* callback, const char* file, const char* name, |
| 109 const char* dependency, bool enabled, bool initialize); | 110 const char* dependency, bool enabled, bool initialize); |
| 110 void Run(); | 111 void Run(); |
| 111 static CcTest* last() { return last_; } | 112 static CcTest* last() { return last_; } |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 HandleAndZoneScope() : main_zone_(main_isolate()) {} | 580 HandleAndZoneScope() : main_zone_(main_isolate()) {} |
| 580 | 581 |
| 581 // Prefixing the below with main_ reduces a lot of naming clashes. | 582 // Prefixing the below with main_ reduces a lot of naming clashes. |
| 582 i::Zone* main_zone() { return &main_zone_; } | 583 i::Zone* main_zone() { return &main_zone_; } |
| 583 | 584 |
| 584 private: | 585 private: |
| 585 i::Zone main_zone_; | 586 i::Zone main_zone_; |
| 586 }; | 587 }; |
| 587 | 588 |
| 588 #endif // ifndef CCTEST_H_ | 589 #endif // ifndef CCTEST_H_ |
| OLD | NEW |