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

Side by Side Diff: src/runtime.cc

Issue 13529004: Remove LOGGER macro (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 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/log.cc ('k') | test/cctest/test-log.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 12820 matching lines...) Expand 10 before | Expand all | Expand 10 after
12831 12831
12832 12832
12833 RUNTIME_FUNCTION(MaybeObject*, Runtime_Log) { 12833 RUNTIME_FUNCTION(MaybeObject*, Runtime_Log) {
12834 NoHandleAllocation ha(isolate); 12834 NoHandleAllocation ha(isolate);
12835 ASSERT(args.length() == 2); 12835 ASSERT(args.length() == 2);
12836 CONVERT_ARG_CHECKED(String, format, 0); 12836 CONVERT_ARG_CHECKED(String, format, 0);
12837 CONVERT_ARG_CHECKED(JSArray, elms, 1); 12837 CONVERT_ARG_CHECKED(JSArray, elms, 1);
12838 String::FlatContent format_content = format->GetFlatContent(); 12838 String::FlatContent format_content = format->GetFlatContent();
12839 RUNTIME_ASSERT(format_content.IsAscii()); 12839 RUNTIME_ASSERT(format_content.IsAscii());
12840 Vector<const uint8_t> chars = format_content.ToOneByteVector(); 12840 Vector<const uint8_t> chars = format_content.ToOneByteVector();
12841 LOGGER->LogRuntime(isolate, Vector<const char>::cast(chars), elms); 12841 isolate->logger()->LogRuntime(Vector<const char>::cast(chars), elms);
12842 return isolate->heap()->undefined_value(); 12842 return isolate->heap()->undefined_value();
12843 } 12843 }
12844 12844
12845 12845
12846 RUNTIME_FUNCTION(MaybeObject*, Runtime_IS_VAR) { 12846 RUNTIME_FUNCTION(MaybeObject*, Runtime_IS_VAR) {
12847 UNREACHABLE(); // implemented as macro in the parser 12847 UNREACHABLE(); // implemented as macro in the parser
12848 return NULL; 12848 return NULL;
12849 } 12849 }
12850 12850
12851 12851
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
13051 // Handle last resort GC and make sure to allow future allocations 13051 // Handle last resort GC and make sure to allow future allocations
13052 // to grow the heap without causing GCs (if possible). 13052 // to grow the heap without causing GCs (if possible).
13053 isolate->counters()->gc_last_resort_from_js()->Increment(); 13053 isolate->counters()->gc_last_resort_from_js()->Increment();
13054 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13054 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13055 "Runtime::PerformGC"); 13055 "Runtime::PerformGC");
13056 } 13056 }
13057 } 13057 }
13058 13058
13059 13059
13060 } } // namespace v8::internal 13060 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698