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

Side by Side Diff: src/accessors.cc

Issue 15012016: small misspelling fixes. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | « include/v8-profiler.h ('k') | src/arm/lithium-codegen-arm.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 // 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 JSFunction* next() { 696 JSFunction* next() {
697 if (functions_.length() == 0) return NULL; 697 if (functions_.length() == 0) return NULL;
698 JSFunction* next_function = functions_[index_]; 698 JSFunction* next_function = functions_[index_];
699 index_--; 699 index_--;
700 if (index_ < 0) { 700 if (index_ < 0) {
701 GetFunctions(); 701 GetFunctions();
702 } 702 }
703 return next_function; 703 return next_function;
704 } 704 }
705 705
706 // Iterate through functions until the first occurence of 'function'. 706 // Iterate through functions until the first occurrence of 'function'.
707 // Returns true if 'function' is found, and false if the iterator ends 707 // Returns true if 'function' is found, and false if the iterator ends
708 // without finding it. 708 // without finding it.
709 bool Find(JSFunction* function) { 709 bool Find(JSFunction* function) {
710 JSFunction* next_function; 710 JSFunction* next_function;
711 do { 711 do {
712 next_function = next(); 712 next_function = next();
713 if (next_function == function) return true; 713 if (next_function == function) return true;
714 } while (next_function != NULL); 714 } while (next_function != NULL);
715 return false; 715 return false;
716 } 716 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 info->set_data(Smi::FromInt(index)); 847 info->set_data(Smi::FromInt(index));
848 Handle<Object> getter = v8::FromCData(&ModuleGetExport); 848 Handle<Object> getter = v8::FromCData(&ModuleGetExport);
849 Handle<Object> setter = v8::FromCData(&ModuleSetExport); 849 Handle<Object> setter = v8::FromCData(&ModuleSetExport);
850 info->set_getter(*getter); 850 info->set_getter(*getter);
851 if (!(attributes & ReadOnly)) info->set_setter(*setter); 851 if (!(attributes & ReadOnly)) info->set_setter(*setter);
852 return info; 852 return info;
853 } 853 }
854 854
855 855
856 } } // namespace v8::internal 856 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698