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

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

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. 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/v8.gyp ('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 4372 matching lines...) Expand 10 before | Expand all | Expand 10 after
4383 pushq(rbp); // Caller's frame pointer. 4383 pushq(rbp); // Caller's frame pointer.
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::kLiteralsOffset)); 4393 movp(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset));
4394 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset));
4395 } 4394 }
4396 4395
4397 4396
4398 void MacroAssembler::EnterFrame(StackFrame::Type type, 4397 void MacroAssembler::EnterFrame(StackFrame::Type type,
4399 bool load_constant_pool_pointer_reg) { 4398 bool load_constant_pool_pointer_reg) {
4400 // Out-of-line constant pool not implemented on x64. 4399 // Out-of-line constant pool not implemented on x64.
4401 UNREACHABLE(); 4400 UNREACHABLE();
4402 } 4401 }
4403 4402
4404 4403
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
5308 movl(rax, dividend); 5307 movl(rax, dividend);
5309 shrl(rax, Immediate(31)); 5308 shrl(rax, Immediate(31));
5310 addl(rdx, rax); 5309 addl(rdx, rax);
5311 } 5310 }
5312 5311
5313 5312
5314 } // namespace internal 5313 } // namespace internal
5315 } // namespace v8 5314 } // namespace v8
5316 5315
5317 #endif // V8_TARGET_ARCH_X64 5316 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8.gyp ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698