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

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

Issue 2549753002: Store OSR'd optimized code on the native context. (Closed)
Patch Set: Comment response. 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/bootstrapper.cc ('k') | src/builtins/arm64/builtins-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 Register temp = r1; 1363 Register temp = r1;
1364 Register array_pointer = r5; 1364 Register array_pointer = r5;
1365 1365
1366 // Does the native context match? 1366 // Does the native context match?
1367 __ add(array_pointer, map, Operand::PointerOffsetFromSmiKey(index)); 1367 __ add(array_pointer, map, Operand::PointerOffsetFromSmiKey(index));
1368 __ ldr(temp, FieldMemOperand(array_pointer, 1368 __ ldr(temp, FieldMemOperand(array_pointer,
1369 SharedFunctionInfo::kOffsetToPreviousContext)); 1369 SharedFunctionInfo::kOffsetToPreviousContext));
1370 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1370 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1371 __ cmp(temp, native_context); 1371 __ cmp(temp, native_context);
1372 __ b(ne, &loop_bottom); 1372 __ b(ne, &loop_bottom);
1373 // OSR id set to none?
1374 __ ldr(temp, FieldMemOperand(array_pointer,
1375 SharedFunctionInfo::kOffsetToPreviousOsrAstId));
1376 const int bailout_id = BailoutId::None().ToInt();
1377 __ cmp(temp, Operand(Smi::FromInt(bailout_id)));
1378 __ b(ne, &loop_bottom);
1379 // Literals available? 1373 // Literals available?
1380 __ ldr(temp, FieldMemOperand(array_pointer, 1374 __ ldr(temp, FieldMemOperand(array_pointer,
1381 SharedFunctionInfo::kOffsetToPreviousLiterals)); 1375 SharedFunctionInfo::kOffsetToPreviousLiterals));
1382 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); 1376 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
1383 __ JumpIfSmi(temp, &gotta_call_runtime); 1377 __ JumpIfSmi(temp, &gotta_call_runtime);
1384 1378
1385 // Save the literals in the closure. 1379 // Save the literals in the closure.
1386 __ ldr(r4, MemOperand(sp, 0)); 1380 __ ldr(r4, MemOperand(sp, 0));
1387 __ str(temp, FieldMemOperand(r4, JSFunction::kLiteralsOffset)); 1381 __ str(temp, FieldMemOperand(r4, JSFunction::kLiteralsOffset));
1388 __ push(index); 1382 __ push(index);
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2893 __ bkpt(0); 2887 __ bkpt(0);
2894 } 2888 }
2895 } 2889 }
2896 2890
2897 #undef __ 2891 #undef __
2898 2892
2899 } // namespace internal 2893 } // namespace internal
2900 } // namespace v8 2894 } // namespace v8
2901 2895
2902 #endif // V8_TARGET_ARCH_ARM 2896 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698