| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 22 matching lines...) Expand all Loading... |
| 33 #include "codegen-inl.h" | 33 #include "codegen-inl.h" |
| 34 #include "compilation-cache.h" | 34 #include "compilation-cache.h" |
| 35 #include "debug.h" | 35 #include "debug.h" |
| 36 #include "global-handles.h" | 36 #include "global-handles.h" |
| 37 #include "mark-compact.h" | 37 #include "mark-compact.h" |
| 38 #include "natives.h" | 38 #include "natives.h" |
| 39 #include "scanner.h" | 39 #include "scanner.h" |
| 40 #include "scopeinfo.h" | 40 #include "scopeinfo.h" |
| 41 #include "v8threads.h" | 41 #include "v8threads.h" |
| 42 | 42 |
| 43 namespace v8 { namespace internal { | 43 namespace v8 { |
| 44 namespace internal { |
| 44 | 45 |
| 45 #define ROOT_ALLOCATION(type, name) type* Heap::name##_; | 46 #define ROOT_ALLOCATION(type, name) type* Heap::name##_; |
| 46 ROOT_LIST(ROOT_ALLOCATION) | 47 ROOT_LIST(ROOT_ALLOCATION) |
| 47 #undef ROOT_ALLOCATION | 48 #undef ROOT_ALLOCATION |
| 48 | 49 |
| 49 | 50 |
| 50 #define STRUCT_ALLOCATION(NAME, Name, name) Map* Heap::name##_map_; | 51 #define STRUCT_ALLOCATION(NAME, Name, name) Map* Heap::name##_map_; |
| 51 STRUCT_LIST(STRUCT_ALLOCATION) | 52 STRUCT_LIST(STRUCT_ALLOCATION) |
| 52 #undef STRUCT_ALLOCATION | 53 #undef STRUCT_ALLOCATION |
| 53 | 54 |
| (...skipping 3405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3459 #ifdef DEBUG | 3460 #ifdef DEBUG |
| 3460 bool Heap::GarbageCollectionGreedyCheck() { | 3461 bool Heap::GarbageCollectionGreedyCheck() { |
| 3461 ASSERT(FLAG_gc_greedy); | 3462 ASSERT(FLAG_gc_greedy); |
| 3462 if (Bootstrapper::IsActive()) return true; | 3463 if (Bootstrapper::IsActive()) return true; |
| 3463 if (disallow_allocation_failure()) return true; | 3464 if (disallow_allocation_failure()) return true; |
| 3464 return CollectGarbage(0, NEW_SPACE); | 3465 return CollectGarbage(0, NEW_SPACE); |
| 3465 } | 3466 } |
| 3466 #endif | 3467 #endif |
| 3467 | 3468 |
| 3468 } } // namespace v8::internal | 3469 } } // namespace v8::internal |
| OLD | NEW |