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