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

Side by Side Diff: src/builtins/x87/builtins-x87.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/x64/builtins-x64.cc ('k') | src/heap/heap.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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 Immediate(Smi::FromInt(1))); 557 Immediate(Smi::FromInt(1)));
558 558
559 // Check function data field is actually a BytecodeArray object. 559 // Check function data field is actually a BytecodeArray object.
560 if (FLAG_debug_code) { 560 if (FLAG_debug_code) {
561 __ AssertNotSmi(kInterpreterBytecodeArrayRegister); 561 __ AssertNotSmi(kInterpreterBytecodeArrayRegister);
562 __ CmpObjectType(kInterpreterBytecodeArrayRegister, BYTECODE_ARRAY_TYPE, 562 __ CmpObjectType(kInterpreterBytecodeArrayRegister, BYTECODE_ARRAY_TYPE,
563 eax); 563 eax);
564 __ Assert(equal, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 564 __ Assert(equal, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
565 } 565 }
566 566
567 // Reset code age.
568 __ mov_b(FieldOperand(kInterpreterBytecodeArrayRegister,
569 BytecodeArray::kBytecodeAgeOffset),
570 Immediate(BytecodeArray::kNoAgeBytecodeAge));
571
567 // Push bytecode array. 572 // Push bytecode array.
568 __ push(kInterpreterBytecodeArrayRegister); 573 __ push(kInterpreterBytecodeArrayRegister);
569 // Push Smi tagged initial bytecode array offset. 574 // Push Smi tagged initial bytecode array offset.
570 __ push(Immediate(Smi::FromInt(BytecodeArray::kHeaderSize - kHeapObjectTag))); 575 __ push(Immediate(Smi::FromInt(BytecodeArray::kHeaderSize - kHeapObjectTag)));
571 576
572 // Allocate the local and temporary register file on the stack. 577 // Allocate the local and temporary register file on the stack.
573 { 578 {
574 // Load frame size from the BytecodeArray object. 579 // Load frame size from the BytecodeArray object.
575 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister, 580 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister,
576 BytecodeArray::kFrameSizeOffset)); 581 BytecodeArray::kFrameSizeOffset));
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 3143
3139 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3144 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3140 Generate_OnStackReplacementHelper(masm, true); 3145 Generate_OnStackReplacementHelper(masm, true);
3141 } 3146 }
3142 3147
3143 #undef __ 3148 #undef __
3144 } // namespace internal 3149 } // namespace internal
3145 } // namespace v8 3150 } // namespace v8
3146 3151
3147 #endif // V8_TARGET_ARCH_X87 3152 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698