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

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

Issue 2549753002: Store OSR'd optimized code on the native context. (Closed)
Patch Set: Improvements. Created 4 years 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
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 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 Register temp = a1; 1354 Register temp = a1;
1355 Register array_pointer = a5; 1355 Register array_pointer = a5;
1356 1356
1357 // Does the native context match? 1357 // Does the native context match?
1358 __ SmiScale(at, index, kPointerSizeLog2); 1358 __ SmiScale(at, index, kPointerSizeLog2);
1359 __ Daddu(array_pointer, map, Operand(at)); 1359 __ Daddu(array_pointer, map, Operand(at));
1360 __ ld(temp, FieldMemOperand(array_pointer, 1360 __ ld(temp, FieldMemOperand(array_pointer,
1361 SharedFunctionInfo::kOffsetToPreviousContext)); 1361 SharedFunctionInfo::kOffsetToPreviousContext));
1362 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1362 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1363 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); 1363 __ Branch(&loop_bottom, ne, temp, Operand(native_context));
1364 // OSR id set to none?
1365 __ ld(temp, FieldMemOperand(array_pointer,
1366 SharedFunctionInfo::kOffsetToPreviousOsrAstId));
1367 const int bailout_id = BailoutId::None().ToInt();
1368 __ Branch(&loop_bottom, ne, temp, Operand(Smi::FromInt(bailout_id)));
1369 // Literals available? 1364 // Literals available?
1370 __ ld(temp, FieldMemOperand(array_pointer, 1365 __ ld(temp, FieldMemOperand(array_pointer,
1371 SharedFunctionInfo::kOffsetToPreviousLiterals)); 1366 SharedFunctionInfo::kOffsetToPreviousLiterals));
1372 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1367 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1373 __ JumpIfSmi(temp, &gotta_call_runtime); 1368 __ JumpIfSmi(temp, &gotta_call_runtime);
1374 1369
1375 // Save the literals in the closure. 1370 // Save the literals in the closure.
1376 __ ld(a4, MemOperand(sp, 0)); 1371 __ ld(a4, MemOperand(sp, 0));
1377 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset)); 1372 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset));
1378 __ push(index); 1373 __ push(index);
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 __ break_(0xCC); 2987 __ break_(0xCC);
2993 } 2988 }
2994 } 2989 }
2995 2990
2996 #undef __ 2991 #undef __
2997 2992
2998 } // namespace internal 2993 } // namespace internal
2999 } // namespace v8 2994 } // namespace v8
3000 2995
3001 #endif // V8_TARGET_ARCH_MIPS64 2996 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698