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

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

Issue 2437043002: [compiler] Mark shared functions for optimization (Closed)
Patch Set: Unmark after compiling 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
« no previous file with comments | « no previous file | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/arm/builtins-arm.cc
diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc
index a2a1692eeeb0da3a0f58cc931f968a41e8e588ad..b739545996e3e206ce3eab1a24ccbb56cda843b9 100644
--- a/src/builtins/arm/builtins-arm.cc
+++ b/src/builtins/arm/builtins-arm.cc
@@ -1480,9 +1480,17 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
__ pop(closure);
__ pop(new_target);
__ pop(argument_count);
- // Is the full code valid?
__ ldr(entry,
FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
+ // Is the shared function marked for optimization?
+ __ ldrb(r5,
+ FieldMemOperand(
+ entry, SharedFunctionInfo::kWasMarkedForOptimizationByteOffset));
+ __ tst(
+ r5,
+ Operand(1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte));
+ __ b(eq, &gotta_call_runtime_no_stack);
+ // Is the full code valid?
__ ldr(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
__ ldr(r5, FieldMemOperand(entry, Code::kFlagsOffset));
__ and_(r5, r5, Operand(Code::KindField::kMask));
« no previous file with comments | « no previous file | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698