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

Side by Side Diff: src/liveedit.cc

Issue 7111034: Kill some dead code: classic frame element and const lists. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Killed CompilationZoneScope Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/jsregexp.cc ('k') | src/parser.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 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 903
904 Handle<JSArray> result_; 904 Handle<JSArray> result_;
905 int len_; 905 int len_;
906 int current_parent_index_; 906 int current_parent_index_;
907 }; 907 };
908 908
909 909
910 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script, 910 JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script,
911 Handle<String> source) { 911 Handle<String> source) {
912 Isolate* isolate = Isolate::Current(); 912 Isolate* isolate = Isolate::Current();
913 CompilationZoneScope zone_scope(isolate, DELETE_ON_EXIT); 913 ZoneScope zone_scope(isolate, DELETE_ON_EXIT);
914 914
915 FunctionInfoListener listener; 915 FunctionInfoListener listener;
916 Handle<Object> original_source = Handle<Object>(script->source()); 916 Handle<Object> original_source = Handle<Object>(script->source());
917 script->set_source(*source); 917 script->set_source(*source);
918 isolate->set_active_function_info_listener(&listener); 918 isolate->set_active_function_info_listener(&listener);
919 CompileScriptForTracker(isolate, script); 919 CompileScriptForTracker(isolate, script);
920 isolate->set_active_function_info_listener(NULL); 920 isolate->set_active_function_info_listener(NULL);
921 script->set_source(*original_source); 921 script->set_source(*original_source);
922 922
923 return *(listener.GetResult()); 923 return *(listener.GetResult());
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 1778
1779 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 1779 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
1780 return false; 1780 return false;
1781 } 1781 }
1782 1782
1783 #endif // ENABLE_DEBUGGER_SUPPORT 1783 #endif // ENABLE_DEBUGGER_SUPPORT
1784 1784
1785 1785
1786 1786
1787 } } // namespace v8::internal 1787 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698