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

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

Issue 1959463003: MIPS64: Fix 'Visit the Optimized Code Map on first call rather than closure creation.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 // Store code entry in the closure. 1350 // Store code entry in the closure.
1351 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); 1351 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag));
1352 __ jmp(&install_optimized_code_and_tailcall); 1352 __ jmp(&install_optimized_code_and_tailcall);
1353 1353
1354 __ bind(&try_shared); 1354 __ bind(&try_shared);
1355 __ pop(new_target); 1355 __ pop(new_target);
1356 __ pop(argument_count); 1356 __ pop(argument_count);
1357 // Is the full code valid? 1357 // Is the full code valid?
1358 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1358 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1359 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); 1359 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
1360 __ ld(a5, FieldMemOperand(entry, Code::kFlagsOffset)); 1360 __ lw(a5, FieldMemOperand(entry, Code::kFlagsOffset));
1361 __ And(a5, a5, Operand(Code::KindField::kMask)); 1361 __ And(a5, a5, Operand(Code::KindField::kMask));
1362 __ dsrl(a5, a5, Code::KindField::kShift); 1362 __ dsrl(a5, a5, Code::KindField::kShift);
1363 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN)); 1363 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN));
1364 // Yes, install the full code. 1364 // Yes, install the full code.
1365 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); 1365 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag));
1366 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset)); 1366 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset));
1367 __ RecordWriteCodeEntryField(closure, entry, a5); 1367 __ RecordWriteCodeEntryField(closure, entry, a5);
1368 __ Jump(entry); 1368 __ Jump(entry);
1369 1369
1370 __ bind(&gotta_call_runtime); 1370 __ bind(&gotta_call_runtime);
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 } 2892 }
2893 } 2893 }
2894 2894
2895 2895
2896 #undef __ 2896 #undef __
2897 2897
2898 } // namespace internal 2898 } // namespace internal
2899 } // namespace v8 2899 } // namespace v8
2900 2900
2901 #endif // V8_TARGET_ARCH_MIPS64 2901 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698