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

Side by Side Diff: src/x64/macro-assembler-x64.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
« no previous file with comments | « src/type-feedback-vector.cc ('k') | src/x87/macro-assembler-x87.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4373 matching lines...) Expand 10 before | Expand all | Expand 10 after
4384 movp(rbp, rsp); 4384 movp(rbp, rsp);
4385 Push(rsi); // Callee's context. 4385 Push(rsi); // Callee's context.
4386 Push(rdi); // Callee's JS function. 4386 Push(rdi); // Callee's JS function.
4387 } 4387 }
4388 } 4388 }
4389 4389
4390 4390
4391 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 4391 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
4392 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 4392 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
4393 movp(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset)); 4393 movp(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset));
4394 movp(vector, FieldOperand(vector, Cell::kValueOffset));
4394 } 4395 }
4395 4396
4396 4397
4397 void MacroAssembler::EnterFrame(StackFrame::Type type, 4398 void MacroAssembler::EnterFrame(StackFrame::Type type,
4398 bool load_constant_pool_pointer_reg) { 4399 bool load_constant_pool_pointer_reg) {
4399 // Out-of-line constant pool not implemented on x64. 4400 // Out-of-line constant pool not implemented on x64.
4400 UNREACHABLE(); 4401 UNREACHABLE();
4401 } 4402 }
4402 4403
4403 4404
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
5307 movl(rax, dividend); 5308 movl(rax, dividend);
5308 shrl(rax, Immediate(31)); 5309 shrl(rax, Immediate(31));
5309 addl(rdx, rax); 5310 addl(rdx, rax);
5310 } 5311 }
5311 5312
5312 5313
5313 } // namespace internal 5314 } // namespace internal
5314 } // namespace v8 5315 } // namespace v8
5315 5316
5316 #endif // V8_TARGET_ARCH_X64 5317 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/type-feedback-vector.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698