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

Side by Side Diff: src/builtins/mips/builtins-mips.cc

Issue 2583693003: [Ignition] Teach CompileLazy about interpreted functions. (Closed)
Patch Set: Fix arm Created 3 years, 11 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
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 __ pop(closure); 1445 __ pop(closure);
1446 __ pop(new_target); 1446 __ pop(new_target);
1447 __ pop(argument_count); 1447 __ pop(argument_count);
1448 __ lw(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1448 __ lw(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1449 // Is the shared function marked for tier up? 1449 // Is the shared function marked for tier up?
1450 __ lbu(t1, FieldMemOperand(entry, 1450 __ lbu(t1, FieldMemOperand(entry,
1451 SharedFunctionInfo::kMarkedForTierUpByteOffset)); 1451 SharedFunctionInfo::kMarkedForTierUpByteOffset));
1452 __ And(t1, t1, 1452 __ And(t1, t1,
1453 Operand(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte)); 1453 Operand(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte));
1454 __ Branch(&gotta_call_runtime_no_stack, ne, t1, Operand(zero_reg)); 1454 __ Branch(&gotta_call_runtime_no_stack, ne, t1, Operand(zero_reg));
1455 // Is the full code valid? 1455
1456 // If SFI points to anything other than CompileLazy, install that.
1456 __ lw(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); 1457 __ lw(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
1457 __ lw(t1, FieldMemOperand(entry, Code::kFlagsOffset)); 1458 __ Move(t1, masm->CodeObject());
1458 __ And(t1, t1, Operand(Code::KindField::kMask)); 1459 __ Branch(&gotta_call_runtime_no_stack, eq, entry, Operand(t1));
1459 __ srl(t1, t1, Code::KindField::kShift); 1460
1460 __ Branch(&gotta_call_runtime_no_stack, eq, t1, Operand(Code::BUILTIN)); 1461 // Install the SFI's code entry.
1461 // Yes, install the full code.
1462 __ Addu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); 1462 __ Addu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag));
1463 __ sw(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset)); 1463 __ sw(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset));
1464 __ RecordWriteCodeEntryField(closure, entry, t1); 1464 __ RecordWriteCodeEntryField(closure, entry, t1);
1465 __ Jump(entry); 1465 __ Jump(entry);
1466 1466
1467 __ bind(&gotta_call_runtime); 1467 __ bind(&gotta_call_runtime);
1468 __ pop(closure); 1468 __ pop(closure);
1469 __ pop(new_target); 1469 __ pop(new_target);
1470 __ pop(argument_count); 1470 __ pop(argument_count);
1471 __ bind(&gotta_call_runtime_no_stack); 1471 __ bind(&gotta_call_runtime_no_stack);
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 __ break_(0xCC); 2971 __ break_(0xCC);
2972 } 2972 }
2973 } 2973 }
2974 2974
2975 #undef __ 2975 #undef __
2976 2976
2977 } // namespace internal 2977 } // namespace internal
2978 } // namespace v8 2978 } // namespace v8
2979 2979
2980 #endif // V8_TARGET_ARCH_MIPS 2980 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698