Index: src/builtins/builtins-conversion.cc |
diff --git a/src/builtins/builtins-conversion.cc b/src/builtins/builtins-conversion.cc |
index 7914a3be6008ff49c494eaf343fb1777758c179f..50c34b90a3ccf6fa022a772dcda4ca3e609f05d2 100644 |
--- a/src/builtins/builtins-conversion.cc |
+++ b/src/builtins/builtins-conversion.cc |
@@ -28,9 +28,10 @@ void Generate_NonPrimitiveToPrimitive(CodeStubAssembler* assembler, |
ToPrimitiveHint hint) { |
typedef CodeStubAssembler::Label Label; |
typedef compiler::Node Node; |
+ typedef TypeConversionDescriptor Descriptor; |
- Node* input = assembler->Parameter(0); |
- Node* context = assembler->Parameter(1); |
+ Node* input = assembler->Parameter(Descriptor::kArgument); |
+ Node* context = assembler->Parameter(Descriptor::kContext); |
// Lookup the @@toPrimitive property on the {input}. |
Callable callable = CodeFactory::GetProperty(assembler->isolate()); |
@@ -113,9 +114,10 @@ void Builtins::Generate_NonNumberToNumber(CodeStubAssembler* assembler) { |
typedef CodeStubAssembler::Label Label; |
typedef compiler::Node Node; |
typedef CodeStubAssembler::Variable Variable; |
+ typedef TypeConversionDescriptor Descriptor; |
- Node* input = assembler->Parameter(0); |
- Node* context = assembler->Parameter(1); |
+ Node* input = assembler->Parameter(Descriptor::kArgument); |
+ Node* context = assembler->Parameter(Descriptor::kContext); |
// We might need to loop once here due to ToPrimitive conversions. |
Variable var_input(assembler, MachineRepresentation::kTagged); |
@@ -224,9 +226,10 @@ void Generate_OrdinaryToPrimitive(CodeStubAssembler* assembler, |
typedef CodeStubAssembler::Label Label; |
typedef compiler::Node Node; |
typedef CodeStubAssembler::Variable Variable; |
+ typedef TypeConversionDescriptor Descriptor; |
- Node* input = assembler->Parameter(0); |
- Node* context = assembler->Parameter(1); |
+ Node* input = assembler->Parameter(Descriptor::kArgument); |
+ Node* context = assembler->Parameter(Descriptor::kContext); |
Variable var_result(assembler, MachineRepresentation::kTagged); |
Label return_result(assembler, &var_result); |
@@ -304,8 +307,9 @@ void Builtins::Generate_OrdinaryToPrimitive_String( |
void Builtins::Generate_ToBoolean(CodeStubAssembler* assembler) { |
typedef compiler::Node Node; |
typedef CodeStubAssembler::Label Label; |
+ typedef TypeConversionDescriptor Descriptor; |
- Node* value = assembler->Parameter(0); |
+ Node* value = assembler->Parameter(Descriptor::kArgument); |
Label return_true(assembler), return_false(assembler); |
assembler->BranchIfToBooleanIsTrue(value, &return_true, &return_false); |