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

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

Issue 2561083002: Reland Store OSR'd optimized code on the native context. (Closed)
Patch Set: 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
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.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_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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 Register temp = a1; 1364 Register temp = a1;
1365 Register array_pointer = a5; 1365 Register array_pointer = a5;
1366 1366
1367 // Does the native context match? 1367 // Does the native context match?
1368 __ SmiScale(at, index, kPointerSizeLog2); 1368 __ SmiScale(at, index, kPointerSizeLog2);
1369 __ Daddu(array_pointer, map, Operand(at)); 1369 __ Daddu(array_pointer, map, Operand(at));
1370 __ ld(temp, FieldMemOperand(array_pointer, 1370 __ ld(temp, FieldMemOperand(array_pointer,
1371 SharedFunctionInfo::kOffsetToPreviousContext)); 1371 SharedFunctionInfo::kOffsetToPreviousContext));
1372 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1372 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1373 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); 1373 __ Branch(&loop_bottom, ne, temp, Operand(native_context));
1374 // OSR id set to none?
1375 __ ld(temp, FieldMemOperand(array_pointer,
1376 SharedFunctionInfo::kOffsetToPreviousOsrAstId));
1377 const int bailout_id = BailoutId::None().ToInt();
1378 __ Branch(&loop_bottom, ne, temp, Operand(Smi::FromInt(bailout_id)));
1379 // Literals available? 1374 // Literals available?
1380 __ ld(temp, FieldMemOperand(array_pointer, 1375 __ ld(temp, FieldMemOperand(array_pointer,
1381 SharedFunctionInfo::kOffsetToPreviousLiterals)); 1376 SharedFunctionInfo::kOffsetToPreviousLiterals));
1382 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1377 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1383 __ JumpIfSmi(temp, &gotta_call_runtime); 1378 __ JumpIfSmi(temp, &gotta_call_runtime);
1384 1379
1385 // Save the literals in the closure. 1380 // Save the literals in the closure.
1386 __ ld(a4, MemOperand(sp, 0)); 1381 __ ld(a4, MemOperand(sp, 0));
1387 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset)); 1382 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset));
1388 __ push(index); 1383 __ push(index);
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 __ break_(0xCC); 2997 __ break_(0xCC);
3003 } 2998 }
3004 } 2999 }
3005 3000
3006 #undef __ 3001 #undef __
3007 3002
3008 } // namespace internal 3003 } // namespace internal
3009 } // namespace v8 3004 } // namespace v8
3010 3005
3011 #endif // V8_TARGET_ARCH_MIPS64 3006 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698