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

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

Issue 2534763003: [Interpreter] Add bytecode aging and use it enable CompilationCache for bytecode (Closed)
Patch Set: Rebase 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/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 1033
1034 // Check function data field is actually a BytecodeArray object. 1034 // Check function data field is actually a BytecodeArray object.
1035 if (FLAG_debug_code) { 1035 if (FLAG_debug_code) {
1036 __ AssertNotSmi(kInterpreterBytecodeArrayRegister, 1036 __ AssertNotSmi(kInterpreterBytecodeArrayRegister,
1037 kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1037 kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1038 __ CompareObjectType(kInterpreterBytecodeArrayRegister, x0, x0, 1038 __ CompareObjectType(kInterpreterBytecodeArrayRegister, x0, x0,
1039 BYTECODE_ARRAY_TYPE); 1039 BYTECODE_ARRAY_TYPE);
1040 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1040 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1041 } 1041 }
1042 1042
1043 // Reset code age.
1044 __ Mov(x10, Operand(BytecodeArray::kNoAgeBytecodeAge));
1045 __ Strb(x10, FieldMemOperand(kInterpreterBytecodeArrayRegister,
1046 BytecodeArray::kBytecodeAgeOffset));
1047
1043 // Load the initial bytecode offset. 1048 // Load the initial bytecode offset.
1044 __ Mov(kInterpreterBytecodeOffsetRegister, 1049 __ Mov(kInterpreterBytecodeOffsetRegister,
1045 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 1050 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
1046 1051
1047 // Push new.target, bytecode array and Smi tagged bytecode array offset. 1052 // Push new.target, bytecode array and Smi tagged bytecode array offset.
1048 __ SmiTag(x0, kInterpreterBytecodeOffsetRegister); 1053 __ SmiTag(x0, kInterpreterBytecodeOffsetRegister);
1049 __ Push(x3, kInterpreterBytecodeArrayRegister, x0); 1054 __ Push(x3, kInterpreterBytecodeArrayRegister, x0);
1050 1055
1051 // Allocate the local and temporary register file on the stack. 1056 // Allocate the local and temporary register file on the stack.
1052 { 1057 {
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2999 __ Unreachable(); 3004 __ Unreachable();
3000 } 3005 }
3001 } 3006 }
3002 3007
3003 #undef __ 3008 #undef __
3004 3009
3005 } // namespace internal 3010 } // namespace internal
3006 } // namespace v8 3011 } // namespace v8
3007 3012
3008 #endif // V8_TARGET_ARCH_ARM 3013 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/builtins/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698