aboutsummaryrefslogtreecommitdiff
path: root/src/ic/access-compiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ic/access-compiler.cc')
-rw-r--r--src/ic/access-compiler.cc22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/ic/access-compiler.cc b/src/ic/access-compiler.cc
index c3bf11c4..0f1b7b9b 100644
--- a/src/ic/access-compiler.cc
+++ b/src/ic/access-compiler.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/v8.h"
-
#include "src/ic/access-compiler.h"
@@ -51,5 +49,23 @@ Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) {
DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC);
return store_calling_convention();
}
+
+
+Register PropertyAccessCompiler::slot() const {
+ if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) {
+ return LoadDescriptor::SlotRegister();
+ }
+ DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC);
+ return VectorStoreICDescriptor::SlotRegister();
+}
+
+
+Register PropertyAccessCompiler::vector() const {
+ if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) {
+ return LoadWithVectorDescriptor::VectorRegister();
+ }
+ DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC);
+ return VectorStoreICDescriptor::VectorRegister();
}
-} // namespace v8::internal
+} // namespace internal
+} // namespace v8