Commit a50b1ea1 authored by Victor Gomes's avatar Victor Gomes Committed by Commit Bot

[CleanUp] Mispelled receiver

Change-Id: I0657847fd58d9dc08e5bbdc37c6c0dcc9527e5eb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1967378
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65464}
parent 2d89d8a9
......@@ -25,7 +25,7 @@ class GeneratorBuiltinsAssembler : public CodeStubAssembler {
// the body of resume is factored out below, and shared by JSGeneratorObject
// prototype methods as well as AsyncModuleEvaluate. The only difference
// between AsyncModuleEvaluate and JSGeneratorObject::PrototypeNext is
// the expected reciever.
// the expected receiver.
void InnerResume(CodeStubArguments* args, TNode<JSGeneratorObject> receiver,
TNode<Object> value, TNode<Context> context,
JSGeneratorObject::ResumeMode resume_mode,
......
......@@ -745,9 +745,9 @@ TF_BUILTIN(ObjectToString, ObjectBuiltinsAssembler) {
// This is arranged to check the likely cases first.
GotoIf(TaggedIsSmi(receiver), &if_number);
TNode<HeapObject> reciever_heap_object = CAST(receiver);
TNode<Map> receiver_map = LoadMap(reciever_heap_object);
var_holder = reciever_heap_object;
TNode<HeapObject> receiver_heap_object = CAST(receiver);
TNode<Map> receiver_map = LoadMap(receiver_heap_object);
var_holder = receiver_heap_object;
TNode<Uint16T> receiver_instance_type = LoadMapInstanceType(receiver_map);
GotoIf(IsPrimitiveInstanceType(receiver_instance_type), &if_primitive);
const struct {
......@@ -968,10 +968,10 @@ TF_BUILTIN(ObjectToString, ObjectBuiltinsAssembler) {
if_value_is_string(this, Label::kDeferred);
TNode<Object> receiver_value =
LoadJSPrimitiveWrapperValue(CAST(reciever_heap_object));
LoadJSPrimitiveWrapperValue(CAST(receiver_heap_object));
// We need to start with the object to see if the value was a subclass
// which might have interesting properties.
var_holder = reciever_heap_object;
var_holder = receiver_heap_object;
GotoIf(TaggedIsSmi(receiver_value), &if_value_is_number);
TNode<Map> receiver_value_map = LoadMap(CAST(receiver_value));
GotoIf(IsHeapNumberMap(receiver_value_map), &if_value_is_number);
......
......@@ -4795,8 +4795,8 @@ void BytecodeGenerator::VisitCall(Call* expr) {
// Evaluate all arguments to the function call and store in sequential args
// registers.
VisitArguments(expr->arguments(), &args);
int reciever_arg_count = implicit_undefined_receiver ? 0 : 1;
CHECK_EQ(reciever_arg_count + expr->arguments()->length(),
int receiver_arg_count = implicit_undefined_receiver ? 0 : 1;
CHECK_EQ(receiver_arg_count + expr->arguments()->length(),
args.register_count());
// Resolve callee for a potential direct eval call. This block will mutate the
......@@ -4806,7 +4806,7 @@ void BytecodeGenerator::VisitCall(Call* expr) {
// Set up arguments for ResolvePossiblyDirectEval by copying callee, source
// strings and function closure, and loading language and
// position.
Register first_arg = args[reciever_arg_count];
Register first_arg = args[receiver_arg_count];
RegisterList runtime_call_args = register_allocator()->NewRegisterList(6);
builder()
->MoveRegister(callee, runtime_call_args[0])
......
......@@ -1585,9 +1585,9 @@ class InterpreterJSCallAssembler : public InterpreterAssembler {
const int kFirstArgumentOperandIndex = 1;
const int kReceiverOperandCount =
(receiver_mode == ConvertReceiverMode::kNullOrUndefined) ? 0 : 1;
const int kRecieverAndArgOperandCount = kReceiverOperandCount + arg_count;
const int kReceiverAndArgOperandCount = kReceiverOperandCount + arg_count;
const int kSlotOperandIndex =
kFirstArgumentOperandIndex + kRecieverAndArgOperandCount;
kFirstArgumentOperandIndex + kReceiverAndArgOperandCount;
TNode<Object> function = LoadRegisterAtOperandIndex(0);
TNode<UintPtrT> slot_id = BytecodeOperandIdx(kSlotOperandIndex);
......@@ -1597,7 +1597,7 @@ class InterpreterJSCallAssembler : public InterpreterAssembler {
// Collect the {function} feedback.
CollectCallFeedback(function, context, maybe_feedback_vector, slot_id);
switch (kRecieverAndArgOperandCount) {
switch (kReceiverAndArgOperandCount) {
case 0:
CallJSAndDispatch(function, context, Int32Constant(arg_count),
receiver_mode);
......
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