diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/deps/v8/src/builtins/builtins.cc b/deps/v8/src/builtins/builtins.cc index ec981fe01e..5997eb3550 100644 --- a/deps/v8/src/builtins/builtins.cc +++ b/deps/v8/src/builtins/builtins.cc @@ -4,7 +4,7 @@ #include "src/builtins/builtins.h" #include "src/code-events.h" -#include "src/code-stub-assembler.h" +#include "src/compiler/code-assembler.h" #include "src/ic/ic-state.h" #include "src/interface-descriptors.h" #include "src/isolate.h" @@ -42,7 +42,7 @@ void PostBuildProfileAndTracing(Isolate* isolate, Code* code, } typedef void (*MacroAssemblerGenerator)(MacroAssembler*); -typedef void (*CodeAssemblerGenerator)(CodeStubAssembler*); +typedef void (*CodeAssemblerGenerator)(compiler::CodeAssemblerState*); Code* BuildWithMacroAssembler(Isolate* isolate, MacroAssemblerGenerator generator, @@ -86,9 +86,10 @@ Code* BuildWithCodeStubAssemblerJS(Isolate* isolate, Zone zone(isolate->allocator(), ZONE_NAME); const int argc_with_recv = (argc == SharedFunctionInfo::kDontAdaptArgumentsSentinel) ? 0 : argc + 1; - CodeStubAssembler assembler(isolate, &zone, argc_with_recv, flags, name); - generator(&assembler); - Handle<Code> code = assembler.GenerateCode(); + compiler::CodeAssemblerState state(isolate, &zone, argc_with_recv, flags, + name); + generator(&state); + Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state); PostBuildProfileAndTracing(isolate, *code, name); return *code; } @@ -105,9 +106,9 @@ Code* BuildWithCodeStubAssemblerCS(Isolate* isolate, CallInterfaceDescriptor descriptor(isolate, interface_descriptor); // Ensure descriptor is already initialized. DCHECK_LE(0, descriptor.GetRegisterParameterCount()); - CodeStubAssembler assembler(isolate, &zone, descriptor, flags, name); - generator(&assembler); - Handle<Code> code = assembler.GenerateCode(); + compiler::CodeAssemblerState state(isolate, &zone, descriptor, flags, name); + generator(&state); + Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state); PostBuildProfileAndTracing(isolate, *code, name); return *code; } |