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

Unified Diff: src/builtins/ppc/builtins-ppc.cc

Issue 2437043002: [compiler] Mark shared functions for optimization (Closed)
Patch Set: Save the files you actually changed, dummy Created 4 years, 2 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: src/builtins/ppc/builtins-ppc.cc
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc
index 019b443a35791025d53a50514530d90dfc0bc3a9..6dbc7231ead276f039daa3a0cfd183719e60b764 100644
--- a/src/builtins/ppc/builtins-ppc.cc
+++ b/src/builtins/ppc/builtins-ppc.cc
@@ -1499,9 +1499,16 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
__ b(&gotta_call_runtime);
__ bind(&try_shared);
- // Is the full code valid?
__ LoadP(entry,
FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
+ // Is the shared function marked for optimization?
+ __ lbz(r8,
+ FieldMemOperand(
+ entry, SharedFunctionInfo::kWasMarkedForOptimizationByteOffset));
+ __ TestBit(r8, SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte,
+ r0);
+ __ beq(&gotta_call_runtime);
+ // Is the full code valid?
__ LoadP(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
__ lwz(r8, FieldMemOperand(entry, Code::kFlagsOffset));
__ DecodeField<Code::KindField>(r8);

Powered by Google App Engine
This is Rietveld 408576698