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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. Created 4 years, 11 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/x64/builtins-x64.cc ('k') | test/cctest/cctest.status » ('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 4227 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 pushq(rbp); // Caller's frame pointer. 4238 pushq(rbp); // Caller's frame pointer.
4239 movp(rbp, rsp); 4239 movp(rbp, rsp);
4240 Push(rsi); // Callee's context. 4240 Push(rsi); // Callee's context.
4241 Push(rdi); // Callee's JS function. 4241 Push(rdi); // Callee's JS function.
4242 } 4242 }
4243 } 4243 }
4244 4244
4245 4245
4246 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 4246 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
4247 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 4247 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
4248 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 4248 movp(vector, FieldOperand(vector, JSFunction::kLiteralsOffset));
4249 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); 4249 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset));
4250 } 4250 }
4251 4251
4252 4252
4253 void MacroAssembler::EnterFrame(StackFrame::Type type, 4253 void MacroAssembler::EnterFrame(StackFrame::Type type,
4254 bool load_constant_pool_pointer_reg) { 4254 bool load_constant_pool_pointer_reg) {
4255 // Out-of-line constant pool not implemented on x64. 4255 // Out-of-line constant pool not implemented on x64.
4256 UNREACHABLE(); 4256 UNREACHABLE();
4257 } 4257 }
4258 4258
4259 4259
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 movl(rax, dividend); 5511 movl(rax, dividend);
5512 shrl(rax, Immediate(31)); 5512 shrl(rax, Immediate(31));
5513 addl(rdx, rax); 5513 addl(rdx, rax);
5514 } 5514 }
5515 5515
5516 5516
5517 } // namespace internal 5517 } // namespace internal
5518 } // namespace v8 5518 } // namespace v8
5519 5519
5520 #endif // V8_TARGET_ARCH_X64 5520 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698