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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 | 629 |
630 | 630 |
631 RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolDescription) { | 631 RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolDescription) { |
632 SealHandleScope shs(isolate); | 632 SealHandleScope shs(isolate); |
633 ASSERT(args.length() == 1); | 633 ASSERT(args.length() == 1); |
634 CONVERT_ARG_CHECKED(Symbol, symbol, 0); | 634 CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
635 return symbol->name(); | 635 return symbol->name(); |
636 } | 636 } |
637 | 637 |
638 | 638 |
| 639 RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolRegistry) { |
| 640 SealHandleScope shs(isolate); |
| 641 ASSERT(args.length() == 0); |
| 642 return isolate->heap()->symbol_registry(); |
| 643 } |
| 644 |
| 645 |
639 RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolIsPrivate) { | 646 RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolIsPrivate) { |
640 SealHandleScope shs(isolate); | 647 SealHandleScope shs(isolate); |
641 ASSERT(args.length() == 1); | 648 ASSERT(args.length() == 1); |
642 CONVERT_ARG_CHECKED(Symbol, symbol, 0); | 649 CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
643 return isolate->heap()->ToBoolean(symbol->is_private()); | 650 return isolate->heap()->ToBoolean(symbol->is_private()); |
644 } | 651 } |
645 | 652 |
646 | 653 |
647 RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) { | 654 RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) { |
648 SealHandleScope shs(isolate); | 655 SealHandleScope shs(isolate); |
(...skipping 14387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15036 // Handle last resort GC and make sure to allow future allocations | 15043 // Handle last resort GC and make sure to allow future allocations |
15037 // to grow the heap without causing GCs (if possible). | 15044 // to grow the heap without causing GCs (if possible). |
15038 isolate->counters()->gc_last_resort_from_js()->Increment(); | 15045 isolate->counters()->gc_last_resort_from_js()->Increment(); |
15039 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 15046 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
15040 "Runtime::PerformGC"); | 15047 "Runtime::PerformGC"); |
15041 } | 15048 } |
15042 } | 15049 } |
15043 | 15050 |
15044 | 15051 |
15045 } } // namespace v8::internal | 15052 } } // namespace v8::internal |
OLD | NEW |