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