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

Side by Side Diff: src/liveedit.cc

Issue 8505012: A small collection of cleanup in the parser and AST. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/parser.h » ('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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 FunctionInfoListener() { 790 FunctionInfoListener() {
791 current_parent_index_ = -1; 791 current_parent_index_ = -1;
792 len_ = 0; 792 len_ = 0;
793 result_ = FACTORY->NewJSArray(10); 793 result_ = FACTORY->NewJSArray(10);
794 } 794 }
795 795
796 void FunctionStarted(FunctionLiteral* fun) { 796 void FunctionStarted(FunctionLiteral* fun) {
797 HandleScope scope; 797 HandleScope scope;
798 FunctionInfoWrapper info = FunctionInfoWrapper::Create(); 798 FunctionInfoWrapper info = FunctionInfoWrapper::Create();
799 info.SetInitialProperties(fun->name(), fun->start_position(), 799 info.SetInitialProperties(fun->name(), fun->start_position(),
800 fun->end_position(), fun->num_parameters(), 800 fun->end_position(), fun->parameter_count(),
801 current_parent_index_); 801 current_parent_index_);
802 current_parent_index_ = len_; 802 current_parent_index_ = len_;
803 SetElementNonStrict(result_, len_, info.GetJSArray()); 803 SetElementNonStrict(result_, len_, info.GetJSArray());
804 len_++; 804 len_++;
805 } 805 }
806 806
807 void FunctionDone() { 807 void FunctionDone() {
808 HandleScope scope; 808 HandleScope scope;
809 FunctionInfoWrapper info = 809 FunctionInfoWrapper info =
810 FunctionInfoWrapper::cast( 810 FunctionInfoWrapper::cast(
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 1764
1765 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 1765 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
1766 return false; 1766 return false;
1767 } 1767 }
1768 1768
1769 #endif // ENABLE_DEBUGGER_SUPPORT 1769 #endif // ENABLE_DEBUGGER_SUPPORT
1770 1770
1771 1771
1772 1772
1773 } } // namespace v8::internal 1773 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698