| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 EXTENSION_LIST(DEFINE_EXTENSION_FLAG) | 87 EXTENSION_LIST(DEFINE_EXTENSION_FLAG) |
| 88 #undef DEFINE_EXTENSION_FLAG | 88 #undef DEFINE_EXTENSION_FLAG |
| 89 | 89 |
| 90 | 90 |
| 91 // Use this to expose protected methods in i::Heap. | 91 // Use this to expose protected methods in i::Heap. |
| 92 class TestHeap : public i::Heap { | 92 class TestHeap : public i::Heap { |
| 93 public: | 93 public: |
| 94 using i::Heap::AllocateByteArray; | 94 using i::Heap::AllocateByteArray; |
| 95 using i::Heap::AllocateFixedArray; | 95 using i::Heap::AllocateFixedArray; |
| 96 using i::Heap::AllocateHeapNumber; | 96 using i::Heap::AllocateHeapNumber; |
| 97 using i::Heap::AllocateFloat32x4; | |
| 98 using i::Heap::AllocateJSObject; | 97 using i::Heap::AllocateJSObject; |
| 99 using i::Heap::AllocateJSObjectFromMap; | 98 using i::Heap::AllocateJSObjectFromMap; |
| 100 using i::Heap::AllocateMap; | 99 using i::Heap::AllocateMap; |
| 101 using i::Heap::CopyCode; | 100 using i::Heap::CopyCode; |
| 102 using i::Heap::kInitialNumberStringCacheSize; | 101 using i::Heap::kInitialNumberStringCacheSize; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 | 104 |
| 106 class CcTest { | 105 class CcTest { |
| 107 public: | 106 public: |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 HandleAndZoneScope() {} | 614 HandleAndZoneScope() {} |
| 616 | 615 |
| 617 // Prefixing the below with main_ reduces a lot of naming clashes. | 616 // Prefixing the below with main_ reduces a lot of naming clashes. |
| 618 i::Zone* main_zone() { return &main_zone_; } | 617 i::Zone* main_zone() { return &main_zone_; } |
| 619 | 618 |
| 620 private: | 619 private: |
| 621 i::Zone main_zone_; | 620 i::Zone main_zone_; |
| 622 }; | 621 }; |
| 623 | 622 |
| 624 #endif // ifndef CCTEST_H_ | 623 #endif // ifndef CCTEST_H_ |
| OLD | NEW |