summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/c-linkage.cc
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-10-18 15:03:02 -0700
committerMichaël Zasso <targos@protonmail.com>2017-10-18 17:01:41 -0700
commit3d1b3df9486c0e7708065257f7311902f6b7b366 (patch)
treecb051bdeaead11e06dcd97725783e0f113afb1bf /deps/v8/src/compiler/c-linkage.cc
parente2cddbb8ccdb7b3c4a40c8acc630f68703bc77b5 (diff)
downloadnode-new-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.gz
deps: update V8 to 6.2.414.32
PR-URL: https://github.com/nodejs/node/pull/15362 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/compiler/c-linkage.cc')
-rw-r--r--deps/v8/src/compiler/c-linkage.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/deps/v8/src/compiler/c-linkage.cc b/deps/v8/src/compiler/c-linkage.cc
index 16a7ce8908..c70b4c1924 100644
--- a/deps/v8/src/compiler/c-linkage.cc
+++ b/deps/v8/src/compiler/c-linkage.cc
@@ -14,10 +14,6 @@ namespace internal {
namespace compiler {
namespace {
-LinkageLocation regloc(Register reg, MachineType type) {
- return LinkageLocation::ForRegister(reg.code(), type);
-}
-
// Platform-specific configuration for C calling convention.
#if V8_TARGET_ARCH_IA32
@@ -178,19 +174,21 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor(
CHECK(locations.return_count_ <= 2);
if (locations.return_count_ > 0) {
- locations.AddReturn(regloc(kReturnRegister0, msig->GetReturn(0)));
+ locations.AddReturn(LinkageLocation::ForRegister(kReturnRegister0.code(),
+ msig->GetReturn(0)));
}
if (locations.return_count_ > 1) {
- locations.AddReturn(regloc(kReturnRegister1, msig->GetReturn(1)));
+ locations.AddReturn(LinkageLocation::ForRegister(kReturnRegister1.code(),
+ msig->GetReturn(1)));
}
const int parameter_count = static_cast<int>(msig->parameter_count());
#ifdef PARAM_REGISTERS
- const Register kParamRegisters[] = {PARAM_REGISTERS};
+ const v8::internal::Register kParamRegisters[] = {PARAM_REGISTERS};
const int kParamRegisterCount = static_cast<int>(arraysize(kParamRegisters));
#else
- const Register* kParamRegisters = nullptr;
+ const v8::internal::Register* kParamRegisters = nullptr;
const int kParamRegisterCount = 0;
#endif
@@ -202,7 +200,8 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor(
// Add register and/or stack parameter(s).
for (int i = 0; i < parameter_count; i++) {
if (i < kParamRegisterCount) {
- locations.AddParam(regloc(kParamRegisters[i], msig->GetParam(i)));
+ locations.AddParam(LinkageLocation::ForRegister(kParamRegisters[i].code(),
+ msig->GetParam(i)));
} else {
locations.AddParam(LinkageLocation::ForCallerFrameSlot(
-1 - stack_offset, msig->GetParam(i)));