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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 // Check function data field is actually a BytecodeArray object. 1048 // Check function data field is actually a BytecodeArray object.
1049 1049
1050 if (FLAG_debug_code) { 1050 if (FLAG_debug_code) {
1051 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); 1051 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0);
1052 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1052 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1053 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r3, no_reg, 1053 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r3, no_reg,
1054 BYTECODE_ARRAY_TYPE); 1054 BYTECODE_ARRAY_TYPE);
1055 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1055 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
1056 } 1056 }
1057 1057
1058 // Reset code age.
1059 __ mov(r8, Operand(BytecodeArray::kNoAgeBytecodeAge));
1060 __ StoreByte(r8, FieldMemOperand(kInterpreterBytecodeArrayRegister,
1061 BytecodeArray::kBytecodeAgeOffset),
1062 r0);
1063
1058 // Load initial bytecode offset. 1064 // Load initial bytecode offset.
1059 __ mov(kInterpreterBytecodeOffsetRegister, 1065 __ mov(kInterpreterBytecodeOffsetRegister,
1060 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 1066 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
1061 1067
1062 // Push new.target, bytecode array and Smi tagged bytecode array offset. 1068 // Push new.target, bytecode array and Smi tagged bytecode array offset.
1063 __ SmiTag(r3, kInterpreterBytecodeOffsetRegister); 1069 __ SmiTag(r3, kInterpreterBytecodeOffsetRegister);
1064 __ Push(r6, kInterpreterBytecodeArrayRegister, r3); 1070 __ Push(r6, kInterpreterBytecodeArrayRegister, r3);
1065 1071
1066 // Allocate the local and temporary register file on the stack. 1072 // Allocate the local and temporary register file on the stack.
1067 { 1073 {
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2946 __ CallRuntime(Runtime::kThrowStackOverflow); 2952 __ CallRuntime(Runtime::kThrowStackOverflow);
2947 __ bkpt(0); 2953 __ bkpt(0);
2948 } 2954 }
2949 } 2955 }
2950 2956
2951 #undef __ 2957 #undef __
2952 } // namespace internal 2958 } // namespace internal
2953 } // namespace v8 2959 } // namespace v8
2954 2960
2955 #endif // V8_TARGET_ARCH_PPC 2961 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698