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

Unified Diff: runtime/vm/code_generator.cc

Issue 150923002: Mark optimized code that used CHA for optimization so that lazy class 'finalization' does not inval… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 32284)
+++ runtime/vm/code_generator.cc (working copy)
@@ -1507,36 +1507,6 @@
}
-// Returns true if the given array of cids contains the given cid.
-static bool ContainsCid(const GrowableArray<intptr_t>& cids, intptr_t cid) {
- for (intptr_t i = 0; i < cids.length(); i++) {
- if (cids[i] == cid) {
- return true;
- }
- }
- return false;
-}
-
-
-// Deoptimize optimized code on stack if its class is in the 'classes' array.
-void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes) {
- DartFrameIterator iterator;
- StackFrame* frame = iterator.NextFrame();
- Code& optimized_code = Code::Handle();
- while (frame != NULL) {
- optimized_code = frame->LookupDartCode();
- if (optimized_code.is_optimized()) {
- const intptr_t owner_cid = Class::Handle(Function::Handle(
- optimized_code.function()).Owner()).id();
- if (ContainsCid(classes, owner_cid)) {
- DeoptimizeAt(optimized_code, frame->pc());
- }
- }
- frame = iterator.NextFrame();
- }
-}
-
-
static void CopySavedRegisters(uword saved_registers_address,
fpu_register_t** fpu_registers,
intptr_t** cpu_registers) {
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/compiler.cc » ('j') | runtime/vm/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698