OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |