Commit 3fdfebd2 authored by chunyang.dai's avatar chunyang.dai Committed by Commit bot

Currently on X87 platform we use only Double register (stack register) for Turbofan. So we directly

use 1 as allocatable Double register number when setting up the default register configuration..

It does not change the double register configuration of other platforms.

BUG=v8:4135
LOG=N

Review URL: https://codereview.chromium.org/1164813007

Cr-Commit-Position: refs/heads/master@{#29005}
parent 2ea4f01f
...@@ -21,8 +21,13 @@ class ArchDefaultRegisterConfiguration : public RegisterConfiguration { ...@@ -21,8 +21,13 @@ class ArchDefaultRegisterConfiguration : public RegisterConfiguration {
public: public:
ArchDefaultRegisterConfiguration() ArchDefaultRegisterConfiguration()
: RegisterConfiguration(Register::kMaxNumAllocatableRegisters, : RegisterConfiguration(Register::kMaxNumAllocatableRegisters,
#if V8_TARGET_ARCH_X87
1,
1,
#else
DoubleRegister::kMaxNumAllocatableRegisters, DoubleRegister::kMaxNumAllocatableRegisters,
DoubleRegister::NumAllocatableAliasedRegisters(), DoubleRegister::NumAllocatableAliasedRegisters(),
#endif
general_register_name_table_, general_register_name_table_,
double_register_name_table_) { double_register_name_table_) {
DCHECK_EQ(Register::kMaxNumAllocatableRegisters, DCHECK_EQ(Register::kMaxNumAllocatableRegisters,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment