Commit f96053fc authored by Maya Lekova's avatar Maya Lekova Committed by Commit Bot

[csa] Remove redundant context parameter from NewConsString

This change allows passing no context to NewConsString,
since it's not used anyway.

Change-Id: I125e1dca90ff1b8d1c8695d5b688e8ff4e075044
Reviewed-on: https://chromium-review.googlesource.com/1190602
Commit-Queue: Maya Lekova <mslekova@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55440}
parent 32af1d0e
...@@ -3286,11 +3286,10 @@ TNode<String> CodeStubAssembler::AllocateTwoByteConsString( ...@@ -3286,11 +3286,10 @@ TNode<String> CodeStubAssembler::AllocateTwoByteConsString(
second, flags); second, flags);
} }
TNode<String> CodeStubAssembler::NewConsString(Node* context, TNode<Smi> length, TNode<String> CodeStubAssembler::NewConsString(TNode<Smi> length,
TNode<String> left, TNode<String> left,
TNode<String> right, TNode<String> right,
AllocationFlags flags) { AllocationFlags flags) {
CSA_ASSERT(this, IsContext(context));
// Added string can be a cons string. // Added string can be a cons string.
Comment("Allocating ConsString"); Comment("Allocating ConsString");
Node* left_instance_type = LoadInstanceType(left); Node* left_instance_type = LoadInstanceType(left);
...@@ -6486,8 +6485,8 @@ TNode<String> CodeStubAssembler::StringAdd(Node* context, TNode<String> left, ...@@ -6486,8 +6485,8 @@ TNode<String> CodeStubAssembler::StringAdd(Node* context, TNode<String> left,
GotoIf(SmiLessThan(new_length, SmiConstant(ConsString::kMinLength)), GotoIf(SmiLessThan(new_length, SmiConstant(ConsString::kMinLength)),
&non_cons); &non_cons);
result = NewConsString(context, new_length, var_left.value(), result =
var_right.value(), flags); NewConsString(new_length, var_left.value(), var_right.value(), flags);
Goto(&done_native); Goto(&done_native);
BIND(&non_cons); BIND(&non_cons);
......
...@@ -1310,8 +1310,8 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { ...@@ -1310,8 +1310,8 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
// Allocate an appropriate one- or two-byte ConsString with the first and // Allocate an appropriate one- or two-byte ConsString with the first and
// second parts specified by |left| and |right|. // second parts specified by |left| and |right|.
TNode<String> NewConsString(Node* context, TNode<Smi> length, TNode<String> NewConsString(TNode<Smi> length, TNode<String> left,
TNode<String> left, TNode<String> right, TNode<String> right,
AllocationFlags flags = kNone); AllocationFlags flags = kNone);
TNode<NameDictionary> AllocateNameDictionary(int at_least_space_for); TNode<NameDictionary> AllocateNameDictionary(int at_least_space_for);
......
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