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

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

Issue 871063002: Use a trampoline stub to load the type feedback vector for CallICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 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/arm64/code-stubs-arm64.cc ('k') | src/arm64/interface-descriptors-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2687 ZoneList<Expression*>* args = expr->arguments(); 2687 ZoneList<Expression*>* args = expr->arguments();
2688 int arg_count = args->length(); 2688 int arg_count = args->length();
2689 { PreservePositionScope scope(masm()->positions_recorder()); 2689 { PreservePositionScope scope(masm()->positions_recorder());
2690 for (int i = 0; i < arg_count; i++) { 2690 for (int i = 0; i < arg_count; i++) {
2691 VisitForStackValue(args->at(i)); 2691 VisitForStackValue(args->at(i));
2692 } 2692 }
2693 } 2693 }
2694 // Record source position of the IC call. 2694 // Record source position of the IC call.
2695 SetSourcePosition(expr->position()); 2695 SetSourcePosition(expr->position());
2696 2696
2697 Handle<Code> ic = CallIC::initialize_stub( 2697 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
2698 isolate(), arg_count, call_type);
2699 __ Mov(x3, SmiFromSlot(expr->CallFeedbackSlot())); 2698 __ Mov(x3, SmiFromSlot(expr->CallFeedbackSlot()));
2700 __ Peek(x1, (arg_count + 1) * kXRegSize); 2699 __ Peek(x1, (arg_count + 1) * kXRegSize);
2701 // Don't assign a type feedback id to the IC, since type feedback is provided 2700 // Don't assign a type feedback id to the IC, since type feedback is provided
2702 // by the vector above. 2701 // by the vector above.
2703 CallIC(ic); 2702 CallIC(ic);
2704 2703
2705 RecordJSReturnSite(expr); 2704 RecordJSReturnSite(expr);
2706 // Restore context register. 2705 // Restore context register.
2707 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2706 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2708 context()->DropAndPlug(1, x0); 2707 context()->DropAndPlug(1, x0);
(...skipping 2681 matching lines...) Expand 10 before | Expand all | Expand 10 after
5390 return previous_; 5389 return previous_;
5391 } 5390 }
5392 5391
5393 5392
5394 #undef __ 5393 #undef __
5395 5394
5396 5395
5397 } } // namespace v8::internal 5396 } } // namespace v8::internal
5398 5397
5399 #endif // V8_TARGET_ARCH_ARM64 5398 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698