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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.cc

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 months 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
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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // the frame (that is done below). 115 // the frame (that is done below).
116 FrameScope frame_scope(masm_, StackFrame::MANUAL); 116 FrameScope frame_scope(masm_, StackFrame::MANUAL);
117 117
118 info->set_prologue_offset(masm_->pc_offset()); 118 info->set_prologue_offset(masm_->pc_offset());
119 __ Prologue(info->GeneratePreagedPrologue()); 119 __ Prologue(info->GeneratePreagedPrologue());
120 120
121 // Increment invocation count for the function. 121 // Increment invocation count for the function.
122 { 122 {
123 Comment cmnt(masm_, "[ Increment invocation count"); 123 Comment cmnt(masm_, "[ Increment invocation count");
124 __ mov(ecx, FieldOperand(edi, JSFunction::kFeedbackVectorOffset)); 124 __ mov(ecx, FieldOperand(edi, JSFunction::kFeedbackVectorOffset));
125 __ mov(ecx, FieldOperand(ecx, Cell::kValueOffset));
125 __ add(FieldOperand( 126 __ add(FieldOperand(
126 ecx, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + 127 ecx, TypeFeedbackVector::kInvocationCountIndex * kPointerSize +
127 TypeFeedbackVector::kHeaderSize), 128 TypeFeedbackVector::kHeaderSize),
128 Immediate(Smi::FromInt(1))); 129 Immediate(Smi::FromInt(1)));
129 } 130 }
130 131
131 { Comment cmnt(masm_, "[ Allocate locals"); 132 { Comment cmnt(masm_, "[ Allocate locals");
132 int locals_count = info->scope()->num_stack_slots(); 133 int locals_count = info->scope()->num_stack_slots();
133 OperandStackDepthIncrement(locals_count); 134 OperandStackDepthIncrement(locals_count);
134 if (locals_count == 1) { 135 if (locals_count == 1) {
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 isolate->builtins()->OnStackReplacement()->entry(), 2781 isolate->builtins()->OnStackReplacement()->entry(),
2781 Assembler::target_address_at(call_target_address, unoptimized_code)); 2782 Assembler::target_address_at(call_target_address, unoptimized_code));
2782 return ON_STACK_REPLACEMENT; 2783 return ON_STACK_REPLACEMENT;
2783 } 2784 }
2784 2785
2785 2786
2786 } // namespace internal 2787 } // namespace internal
2787 } // namespace v8 2788 } // namespace v8
2788 2789
2789 #endif // V8_TARGET_ARCH_IA32 2790 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698