diff options
author | Ben Murdoch <benm@google.com> | 2016-03-22 12:00:34 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2016-04-05 15:27:36 +0100 |
commit | 014dc512cdd3e367bee49a713fdc5ed92584a3e5 (patch) | |
tree | 742b8bb81c9998b13f6a801f8e0bec6ae9a568c1 /src/ic/access-compiler.cc | |
parent | 094c92c64194bd11593e915f372914dcfccf9dd2 (diff) | |
download | v8-014dc512cdd3e367bee49a713fdc5ed92584a3e5.tar.gz |
Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
Diffstat (limited to 'src/ic/access-compiler.cc')
-rw-r--r-- | src/ic/access-compiler.cc | 22 |
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 |