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

Side by Side Diff: src/builtins/s390/builtins-s390.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/ppc/builtins-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_S390 5 #if V8_TARGET_ARCH_S390
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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 1051
1052 // Check function data field is actually a BytecodeArray object. 1052 // Check function data field is actually a BytecodeArray object.
1053 if (FLAG_debug_code) { 1053 if (FLAG_debug_code) {
1054 __ TestIfSmi(kInterpreterBytecodeArrayRegister); 1054 __ TestIfSmi(kInterpreterBytecodeArrayRegister);
1055 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1055 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1056 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r2, no_reg, 1056 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r2, no_reg,
1057 BYTECODE_ARRAY_TYPE); 1057 BYTECODE_ARRAY_TYPE);
1058 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1058 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1059 } 1059 }
1060 1060
1061 // Reset code age.
1062 __ mov(r1, Operand(BytecodeArray::kNoAgeBytecodeAge));
1063 __ StoreByte(r1, FieldMemOperand(kInterpreterBytecodeArrayRegister,
1064 BytecodeArray::kBytecodeAgeOffset),
1065 r0);
1066
1061 // Load the initial bytecode offset. 1067 // Load the initial bytecode offset.
1062 __ mov(kInterpreterBytecodeOffsetRegister, 1068 __ mov(kInterpreterBytecodeOffsetRegister,
1063 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 1069 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
1064 1070
1065 // Push new.target, bytecode array and Smi tagged bytecode array offset. 1071 // Push new.target, bytecode array and Smi tagged bytecode array offset.
1066 __ SmiTag(r4, kInterpreterBytecodeOffsetRegister); 1072 __ SmiTag(r4, kInterpreterBytecodeOffsetRegister);
1067 __ Push(r5, kInterpreterBytecodeArrayRegister, r4); 1073 __ Push(r5, kInterpreterBytecodeArrayRegister, r4);
1068 1074
1069 // Allocate the local and temporary register file on the stack. 1075 // Allocate the local and temporary register file on the stack.
1070 { 1076 {
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
2959 __ bkpt(0); 2965 __ bkpt(0);
2960 } 2966 }
2961 } 2967 }
2962 2968
2963 #undef __ 2969 #undef __
2964 2970
2965 } // namespace internal 2971 } // namespace internal
2966 } // namespace v8 2972 } // namespace v8
2967 2973
2968 #endif // V8_TARGET_ARCH_S390 2974 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698