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

Side by Side Diff: src/arm64/builtins-arm64.cc

Issue 1268783004: VectorICs: refactoring to eliminate "for queries only" vector ic mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation error. Created 5 years, 4 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/arm/builtins-arm.cc ('k') | src/heap/heap.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 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/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 Register vector = LoadWithVectorDescriptor::VectorRegister(); 1474 Register vector = LoadWithVectorDescriptor::VectorRegister();
1475 1475
1476 __ Ldr(key, MemOperand(fp, indexOffset)); 1476 __ Ldr(key, MemOperand(fp, indexOffset));
1477 __ B(&entry); 1477 __ B(&entry);
1478 1478
1479 // Load the current argument from the arguments array. 1479 // Load the current argument from the arguments array.
1480 __ Bind(&loop); 1480 __ Bind(&loop);
1481 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); 1481 __ Ldr(receiver, MemOperand(fp, argumentsOffset));
1482 1482
1483 // Use inline caching to speed up access to arguments. 1483 // Use inline caching to speed up access to arguments.
1484 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 1484 Code::Kind kinds[] = {Code::KEYED_LOAD_IC};
1485 FeedbackVectorSpec spec(0, 1, kinds);
1485 Handle<TypeFeedbackVector> feedback_vector = 1486 Handle<TypeFeedbackVector> feedback_vector =
1486 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); 1487 masm->isolate()->factory()->NewTypeFeedbackVector(&spec);
1487 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); 1488 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0));
1488 __ Mov(slot, Smi::FromInt(index)); 1489 __ Mov(slot, Smi::FromInt(index));
1489 __ Mov(vector, feedback_vector); 1490 __ Mov(vector, feedback_vector);
1490 Handle<Code> ic = 1491 Handle<Code> ic =
1491 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); 1492 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode();
1492 __ Call(ic, RelocInfo::CODE_TARGET); 1493 __ Call(ic, RelocInfo::CODE_TARGET);
1493 1494
1494 // Push the nth argument. 1495 // Push the nth argument.
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 } 1924 }
1924 } 1925 }
1925 1926
1926 1927
1927 #undef __ 1928 #undef __
1928 1929
1929 } // namespace internal 1930 } // namespace internal
1930 } // namespace v8 1931 } // namespace v8
1931 1932
1932 #endif // V8_TARGET_ARCH_ARM 1933 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698