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

Side by Side Diff: src/runtime.cc

Issue 83004: Fix style issues caught by presubmit script. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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/debug.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 6775 matching lines...) Expand 10 before | Expand all | Expand 10 after
6786 ASSERT(args.length() == 1); 6786 ASSERT(args.length() == 1);
6787 // Get the function and make sure it is compiled. 6787 // Get the function and make sure it is compiled.
6788 CONVERT_ARG_CHECKED(JSFunction, func, 0); 6788 CONVERT_ARG_CHECKED(JSFunction, func, 0);
6789 if (!func->is_compiled() && !CompileLazy(func, KEEP_EXCEPTION)) { 6789 if (!func->is_compiled() && !CompileLazy(func, KEEP_EXCEPTION)) {
6790 return Failure::Exception(); 6790 return Failure::Exception();
6791 } 6791 }
6792 func->code()->PrintLn(); 6792 func->code()->PrintLn();
6793 #endif // DEBUG 6793 #endif // DEBUG
6794 return Heap::undefined_value(); 6794 return Heap::undefined_value();
6795 } 6795 }
6796 #endif // ENABLE_DEBUGGER_SUPPORT 6796 #endif // ENABLE_DEBUGGER_SUPPORT
6797
6797 6798
6798 // Finds the script object from the script data. NOTE: This operation uses 6799 // Finds the script object from the script data. NOTE: This operation uses
6799 // heap traversal to find the function generated for the source position 6800 // heap traversal to find the function generated for the source position
6800 // for the requested break point. For lazily compiled functions several heap 6801 // for the requested break point. For lazily compiled functions several heap
6801 // traversals might be required rendering this operation as a rather slow 6802 // traversals might be required rendering this operation as a rather slow
6802 // operation. However for setting break points which is normally done through 6803 // operation. However for setting break points which is normally done through
6803 // some kind of user interaction the performance is not crucial. 6804 // some kind of user interaction the performance is not crucial.
6804 static Handle<Object> Runtime_GetScriptFromScriptName( 6805 static Handle<Object> Runtime_GetScriptFromScriptName(
6805 Handle<String> script_name) { 6806 Handle<String> script_name) {
6806 // Scan the heap for Script objects to find the script with the requested 6807 // Scan the heap for Script objects to find the script with the requested
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
6936 } else { 6937 } else {
6937 // Handle last resort GC and make sure to allow future allocations 6938 // Handle last resort GC and make sure to allow future allocations
6938 // to grow the heap without causing GCs (if possible). 6939 // to grow the heap without causing GCs (if possible).
6939 Counters::gc_last_resort_from_js.Increment(); 6940 Counters::gc_last_resort_from_js.Increment();
6940 Heap::CollectAllGarbage(); 6941 Heap::CollectAllGarbage();
6941 } 6942 }
6942 } 6943 }
6943 6944
6944 6945
6945 } } // namespace v8::internal 6946 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698