| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_VISITING_INL_H_ | 5 #ifndef V8_OBJECTS_VISITING_INL_H_ |
| 6 #define V8_OBJECTS_VISITING_INL_H_ | 6 #define V8_OBJECTS_VISITING_INL_H_ |
| 7 | 7 |
| 8 #include "src/heap/array-buffer-tracker.h" | 8 #include "src/heap/array-buffer-tracker.h" |
| 9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/ic/ic-state.h" | 10 #include "src/ic/ic-state.h" |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 FixedArray* const literals = data->LiteralArray(); | 661 FixedArray* const literals = data->LiteralArray(); |
| 662 int const inlined_count = data->InlinedFunctionCount()->value(); | 662 int const inlined_count = data->InlinedFunctionCount()->value(); |
| 663 for (int i = 0; i < inlined_count; ++i) { | 663 for (int i = 0; i < inlined_count; ++i) { |
| 664 StaticVisitor::MarkObject( | 664 StaticVisitor::MarkObject( |
| 665 heap, SharedFunctionInfo::cast(literals->get(i))->code()); | 665 heap, SharedFunctionInfo::cast(literals->get(i))->code()); |
| 666 } | 666 } |
| 667 } | 667 } |
| 668 | 668 |
| 669 | 669 |
| 670 inline static bool HasValidNonBuiltinContext(JSFunction* function) { | 670 inline static bool HasValidNonBuiltinContext(JSFunction* function) { |
| 671 return function->context()->IsContext() && !function->IsBuiltin(); | 671 return function->context()->IsContext() && !function->shared()->IsBuiltin(); |
| 672 } | 672 } |
| 673 | 673 |
| 674 | 674 |
| 675 inline static bool HasSourceCode(Heap* heap, SharedFunctionInfo* info) { | 675 inline static bool HasSourceCode(Heap* heap, SharedFunctionInfo* info) { |
| 676 Object* undefined = heap->undefined_value(); | 676 Object* undefined = heap->undefined_value(); |
| 677 return (info->script() != undefined) && | 677 return (info->script() != undefined) && |
| 678 (reinterpret_cast<Script*>(info->script())->source() != undefined); | 678 (reinterpret_cast<Script*>(info->script())->source() != undefined); |
| 679 } | 679 } |
| 680 | 680 |
| 681 | 681 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 898 |
| 899 RelocIterator it(this, mode_mask); | 899 RelocIterator it(this, mode_mask); |
| 900 for (; !it.done(); it.next()) { | 900 for (; !it.done(); it.next()) { |
| 901 it.rinfo()->template Visit<StaticVisitor>(heap); | 901 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 902 } | 902 } |
| 903 } | 903 } |
| 904 } // namespace internal | 904 } // namespace internal |
| 905 } // namespace v8 | 905 } // namespace v8 |
| 906 | 906 |
| 907 #endif // V8_OBJECTS_VISITING_INL_H_ | 907 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |