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

Side by Side Diff: src/builtins/mips/builtins-mips.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/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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 Register temp = a1; 1373 Register temp = a1;
1374 Register array_pointer = t1; 1374 Register array_pointer = t1;
1375 1375
1376 // Does the native context match? 1376 // Does the native context match?
1377 __ sll(at, index, kPointerSizeLog2 - kSmiTagSize); 1377 __ sll(at, index, kPointerSizeLog2 - kSmiTagSize);
1378 __ Addu(array_pointer, map, Operand(at)); 1378 __ Addu(array_pointer, map, Operand(at));
1379 __ lw(temp, FieldMemOperand(array_pointer, 1379 __ lw(temp, FieldMemOperand(array_pointer,
1380 SharedFunctionInfo::kOffsetToPreviousContext)); 1380 SharedFunctionInfo::kOffsetToPreviousContext));
1381 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1381 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1382 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); 1382 __ Branch(&loop_bottom, ne, temp, Operand(native_context));
1383 // OSR id set to none?
1384 __ lw(temp, FieldMemOperand(array_pointer,
1385 SharedFunctionInfo::kOffsetToPreviousOsrAstId));
1386 const int bailout_id = BailoutId::None().ToInt();
1387 __ Branch(&loop_bottom, ne, temp, Operand(Smi::FromInt(bailout_id)));
1388 // Literals available? 1383 // Literals available?
1389 __ lw(temp, FieldMemOperand(array_pointer, 1384 __ lw(temp, FieldMemOperand(array_pointer,
1390 SharedFunctionInfo::kOffsetToPreviousLiterals)); 1385 SharedFunctionInfo::kOffsetToPreviousLiterals));
1391 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1386 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1392 __ JumpIfSmi(temp, &gotta_call_runtime); 1387 __ JumpIfSmi(temp, &gotta_call_runtime);
1393 1388
1394 // Save the literals in the closure. 1389 // Save the literals in the closure.
1395 __ lw(t0, MemOperand(sp, 0)); 1390 __ lw(t0, MemOperand(sp, 0));
1396 __ sw(temp, FieldMemOperand(t0, JSFunction::kLiteralsOffset)); 1391 __ sw(temp, FieldMemOperand(t0, JSFunction::kLiteralsOffset));
1397 __ push(index); 1392 __ push(index);
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 __ break_(0xCC); 2971 __ break_(0xCC);
2977 } 2972 }
2978 } 2973 }
2979 2974
2980 #undef __ 2975 #undef __
2981 2976
2982 } // namespace internal 2977 } // namespace internal
2983 } // namespace v8 2978 } // namespace v8
2984 2979
2985 #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