Index: src/builtins/builtins-symbol.cc |
diff --git a/src/builtins/builtins-symbol.cc b/src/builtins/builtins-symbol.cc |
index 8dd8a1fa275f0680057ed4420281a15c7d9febd8..209bd58f6faaa3ac09528829be9b60af492a7eca 100644 |
--- a/src/builtins/builtins-symbol.cc |
+++ b/src/builtins/builtins-symbol.cc |
@@ -34,42 +34,47 @@ BUILTIN(SymbolConstructor_ConstructStub) { |
// ES6 section 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) |
void Builtins::Generate_SymbolPrototypeToPrimitive( |
- CodeStubAssembler* assembler) { |
+ compiler::CodeAssemblerState* state) { |
typedef compiler::Node Node; |
+ CodeStubAssembler assembler(state); |
- Node* receiver = assembler->Parameter(0); |
- Node* context = assembler->Parameter(4); |
+ Node* receiver = assembler.Parameter(0); |
+ Node* context = assembler.Parameter(4); |
Node* result = |
- assembler->ToThisValue(context, receiver, PrimitiveType::kSymbol, |
- "Symbol.prototype [ @@toPrimitive ]"); |
- assembler->Return(result); |
+ assembler.ToThisValue(context, receiver, PrimitiveType::kSymbol, |
+ "Symbol.prototype [ @@toPrimitive ]"); |
+ assembler.Return(result); |
} |
// ES6 section 19.4.3.2 Symbol.prototype.toString ( ) |
-void Builtins::Generate_SymbolPrototypeToString(CodeStubAssembler* assembler) { |
+void Builtins::Generate_SymbolPrototypeToString( |
+ compiler::CodeAssemblerState* state) { |
typedef compiler::Node Node; |
+ CodeStubAssembler assembler(state); |
- Node* receiver = assembler->Parameter(0); |
- Node* context = assembler->Parameter(3); |
+ Node* receiver = assembler.Parameter(0); |
+ Node* context = assembler.Parameter(3); |
- Node* value = assembler->ToThisValue( |
- context, receiver, PrimitiveType::kSymbol, "Symbol.prototype.toString"); |
+ Node* value = assembler.ToThisValue(context, receiver, PrimitiveType::kSymbol, |
+ "Symbol.prototype.toString"); |
Node* result = |
- assembler->CallRuntime(Runtime::kSymbolDescriptiveString, context, value); |
- assembler->Return(result); |
+ assembler.CallRuntime(Runtime::kSymbolDescriptiveString, context, value); |
+ assembler.Return(result); |
} |
// ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) |
-void Builtins::Generate_SymbolPrototypeValueOf(CodeStubAssembler* assembler) { |
+void Builtins::Generate_SymbolPrototypeValueOf( |
+ compiler::CodeAssemblerState* state) { |
typedef compiler::Node Node; |
+ CodeStubAssembler assembler(state); |
- Node* receiver = assembler->Parameter(0); |
- Node* context = assembler->Parameter(3); |
+ Node* receiver = assembler.Parameter(0); |
+ Node* context = assembler.Parameter(3); |
- Node* result = assembler->ToThisValue( |
+ Node* result = assembler.ToThisValue( |
context, receiver, PrimitiveType::kSymbol, "Symbol.prototype.valueOf"); |
- assembler->Return(result); |
+ assembler.Return(result); |
} |
} // namespace internal |