| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 return obj->IsHeapObject() && | 663 return obj->IsHeapObject() && |
| 664 (SafeMap(obj)->instance_type() == JS_BUILTINS_OBJECT_TYPE); | 664 (SafeMap(obj)->instance_type() == JS_BUILTINS_OBJECT_TYPE); |
| 665 } | 665 } |
| 666 | 666 |
| 667 | 667 |
| 668 static inline bool IsValidNotBuiltinContext(Object* ctx) { | 668 static inline bool IsValidNotBuiltinContext(Object* ctx) { |
| 669 if (!ctx->IsHeapObject()) return false; | 669 if (!ctx->IsHeapObject()) return false; |
| 670 | 670 |
| 671 Map* map = SafeMap(ctx); | 671 Map* map = SafeMap(ctx); |
| 672 Heap* heap = map->heap(); | 672 Heap* heap = map->heap(); |
| 673 if (!(map == heap->raw_unchecked_context_map() || | 673 if (!(map == heap->raw_unchecked_function_context_map() || |
| 674 map == heap->raw_unchecked_catch_context_map() || | 674 map == heap->raw_unchecked_catch_context_map() || |
| 675 map == heap->raw_unchecked_with_context_map() || |
| 675 map == heap->raw_unchecked_global_context_map())) { | 676 map == heap->raw_unchecked_global_context_map())) { |
| 676 return false; | 677 return false; |
| 677 } | 678 } |
| 678 | 679 |
| 679 Context* context = reinterpret_cast<Context*>(ctx); | 680 Context* context = reinterpret_cast<Context*>(ctx); |
| 680 | 681 |
| 681 if (IsJSBuiltinsObject(context->global())) { | 682 if (IsJSBuiltinsObject(context->global())) { |
| 682 return false; | 683 return false; |
| 683 } | 684 } |
| 684 | 685 |
| (...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3146 } | 3147 } |
| 3147 | 3148 |
| 3148 | 3149 |
| 3149 void MarkCompactCollector::Initialize() { | 3150 void MarkCompactCollector::Initialize() { |
| 3150 StaticPointersToNewGenUpdatingVisitor::Initialize(); | 3151 StaticPointersToNewGenUpdatingVisitor::Initialize(); |
| 3151 StaticMarkingVisitor::Initialize(); | 3152 StaticMarkingVisitor::Initialize(); |
| 3152 } | 3153 } |
| 3153 | 3154 |
| 3154 | 3155 |
| 3155 } } // namespace v8::internal | 3156 } } // namespace v8::internal |
| OLD | NEW |