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

Side by Side Diff: src/debug/liveedit.cc

Issue 2170743003: [api] Introduce fast instantiations cache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing uint issue under windows Created 4 years, 4 months 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
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 #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
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
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
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/heap/object-stats.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698