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 7873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7884 } | 7884 } |
7885 | 7885 |
7886 bool has_activations() { return has_activations_; } | 7886 bool has_activations() { return has_activations_; } |
7887 | 7887 |
7888 private: | 7888 private: |
7889 JSFunction* function_; | 7889 JSFunction* function_; |
7890 bool has_activations_; | 7890 bool has_activations_; |
7891 }; | 7891 }; |
7892 | 7892 |
7893 | 7893 |
7894 RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyICMiss) { | 7894 RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyStubFailure) { |
7895 HandleScope scope(isolate); | 7895 HandleScope scope(isolate); |
7896 ASSERT(args.length() == 0); | 7896 ASSERT(args.length() == 0); |
7897 Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate); | 7897 Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate); |
7898 ASSERT(isolate->heap()->IsAllocationAllowed()); | 7898 ASSERT(isolate->heap()->IsAllocationAllowed()); |
7899 ASSERT(deoptimizer->compiled_code_kind() == Code::COMPILED_STUB); | 7899 ASSERT(deoptimizer->compiled_code_kind() == Code::COMPILED_STUB); |
7900 delete deoptimizer; | 7900 delete deoptimizer; |
7901 return isolate->heap()->undefined_value(); | 7901 return isolate->heap()->undefined_value(); |
7902 } | 7902 } |
7903 | 7903 |
7904 | 7904 |
(...skipping 5716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13621 // Handle last resort GC and make sure to allow future allocations | 13621 // Handle last resort GC and make sure to allow future allocations |
13622 // to grow the heap without causing GCs (if possible). | 13622 // to grow the heap without causing GCs (if possible). |
13623 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13623 isolate->counters()->gc_last_resort_from_js()->Increment(); |
13624 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 13624 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
13625 "Runtime::PerformGC"); | 13625 "Runtime::PerformGC"); |
13626 } | 13626 } |
13627 } | 13627 } |
13628 | 13628 |
13629 | 13629 |
13630 } } // namespace v8::internal | 13630 } } // namespace v8::internal |
OLD | NEW |