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 #include "src/debug/liveedit.h" | 5 #include "src/debug/liveedit.h" |
6 | 6 |
7 #include "src/ast/scopeinfo.h" | 7 #include "src/ast/scopeinfo.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 Handle<FixedArray> function_instances = | 875 Handle<FixedArray> function_instances = |
876 CollectJSFunctions(shared_info, isolate); | 876 CollectJSFunctions(shared_info, isolate); |
877 Handle<TypeFeedbackMetadata> feedback_metadata( | 877 Handle<TypeFeedbackMetadata> feedback_metadata( |
878 shared_info->feedback_metadata()); | 878 shared_info->feedback_metadata()); |
879 | 879 |
880 for (int i = 0; i < function_instances->length(); i++) { | 880 for (int i = 0; i < function_instances->length(); i++) { |
881 Handle<JSFunction> fun(JSFunction::cast(function_instances->get(i))); | 881 Handle<JSFunction> fun(JSFunction::cast(function_instances->get(i))); |
882 Handle<TypeFeedbackVector> vector = | 882 Handle<TypeFeedbackVector> vector = |
883 TypeFeedbackVector::New(isolate, feedback_metadata); | 883 TypeFeedbackVector::New(isolate, feedback_metadata); |
884 Handle<LiteralsArray> new_literals = | 884 Handle<LiteralsArray> new_literals = |
885 LiteralsArray::New(isolate, vector, new_literal_count, TENURED); | 885 LiteralsArray::New(isolate, vector, new_literal_count); |
886 fun->set_literals(*new_literals); | 886 fun->set_literals(*new_literals); |
887 } | 887 } |
888 | 888 |
889 shared_info->set_num_literals(new_literal_count); | 889 shared_info->set_num_literals(new_literal_count); |
890 } | 890 } |
891 } | 891 } |
892 | 892 |
893 private: | 893 private: |
894 // Iterates all function instances in the HEAP that refers to the | 894 // Iterates all function instances in the HEAP that refers to the |
895 // provided shared_info. | 895 // provided shared_info. |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 scope_info_length++; | 1941 scope_info_length++; |
1942 | 1942 |
1943 current_scope = current_scope->outer_scope(); | 1943 current_scope = current_scope->outer_scope(); |
1944 } | 1944 } |
1945 | 1945 |
1946 return scope_info_list; | 1946 return scope_info_list; |
1947 } | 1947 } |
1948 | 1948 |
1949 } // namespace internal | 1949 } // namespace internal |
1950 } // namespace v8 | 1950 } // namespace v8 |
OLD | NEW |