Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: src/heap/objects-visiting-inl.h

Issue 1417213005: Remove several JSFunction delegator functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698