Chromium Code Reviews| 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 HandleScope scope(isolate); | |
|
Michael Starzinger
2014/03/19 10:15:25
nit: Not that it makes much of a difference, but t
rossberg
2014/03/20 10:40:13
Done.
| |
| 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 14370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15019 // Handle last resort GC and make sure to allow future allocations | 15026 // Handle last resort GC and make sure to allow future allocations |
| 15020 // to grow the heap without causing GCs (if possible). | 15027 // to grow the heap without causing GCs (if possible). |
| 15021 isolate->counters()->gc_last_resort_from_js()->Increment(); | 15028 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 15022 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 15029 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 15023 "Runtime::PerformGC"); | 15030 "Runtime::PerformGC"); |
| 15024 } | 15031 } |
| 15025 } | 15032 } |
| 15026 | 15033 |
| 15027 | 15034 |
| 15028 } } // namespace v8::internal | 15035 } } // namespace v8::internal |
| OLD | NEW |