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

Side by Side Diff: src/runtime.cc

Issue 21406: Changed all log messages to be handled through the LogMessageBuilder instead ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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/log.cc ('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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 6017 matching lines...) Expand 10 before | Expand all | Expand 10 after
6028 } 6028 }
6029 RUNTIME_FUNCTION_LIST(ADD_ENTRY) 6029 RUNTIME_FUNCTION_LIST(ADD_ENTRY)
6030 #undef ADD_ENTRY 6030 #undef ADD_ENTRY
6031 return *result; 6031 return *result;
6032 } 6032 }
6033 #endif 6033 #endif
6034 6034
6035 6035
6036 static Object* Runtime_Log(Arguments args) { 6036 static Object* Runtime_Log(Arguments args) {
6037 ASSERT(args.length() == 2); 6037 ASSERT(args.length() == 2);
6038 String* format = String::cast(args[0]); 6038 CONVERT_CHECKED(String, format, args[0]);
6039 CONVERT_CHECKED(JSArray, elms, args[1]);
6039 Vector<const char> chars = format->ToAsciiVector(); 6040 Vector<const char> chars = format->ToAsciiVector();
6040 JSArray* elms = JSArray::cast(args[1]);
6041 Logger::LogRuntime(chars, elms); 6041 Logger::LogRuntime(chars, elms);
6042 return Heap::undefined_value(); 6042 return Heap::undefined_value();
6043 } 6043 }
6044 6044
6045 6045
6046 static Object* Runtime_IS_VAR(Arguments args) { 6046 static Object* Runtime_IS_VAR(Arguments args) {
6047 UNREACHABLE(); // implemented as macro in the parser 6047 UNREACHABLE(); // implemented as macro in the parser
6048 return NULL; 6048 return NULL;
6049 } 6049 }
6050 6050
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
6089 } else { 6089 } else {
6090 // Handle last resort GC and make sure to allow future allocations 6090 // Handle last resort GC and make sure to allow future allocations
6091 // to grow the heap without causing GCs (if possible). 6091 // to grow the heap without causing GCs (if possible).
6092 Counters::gc_last_resort_from_js.Increment(); 6092 Counters::gc_last_resort_from_js.Increment();
6093 Heap::CollectAllGarbage(); 6093 Heap::CollectAllGarbage();
6094 } 6094 }
6095 } 6095 }
6096 6096
6097 6097
6098 } } // namespace v8::internal 6098 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698