Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: src/runtime.cc

Issue 11635015: Generalize calling to C++ on stub deopt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698