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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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-inl.h ('k') | test/cctest/compiler/function-tester.h » ('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 4383 matching lines...) Expand 10 before | Expand all | Expand 10 after
4394 pushq(rbp); // Caller's frame pointer. 4394 pushq(rbp); // Caller's frame pointer.
4395 movp(rbp, rsp); 4395 movp(rbp, rsp);
4396 Push(rsi); // Callee's context. 4396 Push(rsi); // Callee's context.
4397 Push(rdi); // Callee's JS function. 4397 Push(rdi); // Callee's JS function.
4398 } 4398 }
4399 } 4399 }
4400 4400
4401 4401
4402 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 4402 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
4403 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 4403 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
4404 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 4404 movp(vector, FieldOperand(vector, JSFunction::kLiteralsOffset));
4405 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); 4405 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset));
4406 } 4406 }
4407 4407
4408 4408
4409 void MacroAssembler::EnterFrame(StackFrame::Type type, 4409 void MacroAssembler::EnterFrame(StackFrame::Type type,
4410 bool load_constant_pool_pointer_reg) { 4410 bool load_constant_pool_pointer_reg) {
4411 // Out-of-line constant pool not implemented on x64. 4411 // Out-of-line constant pool not implemented on x64.
4412 UNREACHABLE(); 4412 UNREACHABLE();
4413 } 4413 }
4414 4414
4415 4415
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
5721 movl(rax, dividend); 5721 movl(rax, dividend);
5722 shrl(rax, Immediate(31)); 5722 shrl(rax, Immediate(31));
5723 addl(rdx, rax); 5723 addl(rdx, rax);
5724 } 5724 }
5725 5725
5726 5726
5727 } // namespace internal 5727 } // namespace internal
5728 } // namespace v8 5728 } // namespace v8
5729 5729
5730 #endif // V8_TARGET_ARCH_X64 5730 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/type-feedback-vector-inl.h ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698