| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 GenerateKnownReceivers(masm); | 404 GenerateKnownReceivers(masm); |
| 405 break; | 405 break; |
| 406 case CompareICState::GENERIC: | 406 case CompareICState::GENERIC: |
| 407 GenerateGeneric(masm); | 407 GenerateGeneric(masm); |
| 408 break; | 408 break; |
| 409 } | 409 } |
| 410 } | 410 } |
| 411 | 411 |
| 412 Handle<Code> TurboFanCodeStub::GenerateCode() { | 412 Handle<Code> TurboFanCodeStub::GenerateCode() { |
| 413 const char* name = CodeStub::MajorName(MajorKey()); | 413 const char* name = CodeStub::MajorName(MajorKey()); |
| 414 Zone zone(isolate()->allocator()); | 414 Zone zone(isolate()->allocator(), ZONE_NAME); |
| 415 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); | 415 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); |
| 416 CodeStubAssembler assembler(isolate(), &zone, descriptor, GetCodeFlags(), | 416 CodeStubAssembler assembler(isolate(), &zone, descriptor, GetCodeFlags(), |
| 417 name); | 417 name); |
| 418 GenerateAssembly(&assembler); | 418 GenerateAssembly(&assembler); |
| 419 return assembler.GenerateCode(); | 419 return assembler.GenerateCode(); |
| 420 } | 420 } |
| 421 | 421 |
| 422 void LoadICTrampolineStub::GenerateAssembly( | 422 void LoadICTrampolineStub::GenerateAssembly( |
| 423 CodeStubAssembler* assembler) const { | 423 CodeStubAssembler* assembler) const { |
| 424 typedef compiler::Node Node; | 424 typedef compiler::Node Node; |
| (...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3037 | 3037 |
| 3038 if (type == MachineType::Pointer()) { | 3038 if (type == MachineType::Pointer()) { |
| 3039 return Representation::External(); | 3039 return Representation::External(); |
| 3040 } | 3040 } |
| 3041 | 3041 |
| 3042 return Representation::Tagged(); | 3042 return Representation::Tagged(); |
| 3043 } | 3043 } |
| 3044 | 3044 |
| 3045 } // namespace internal | 3045 } // namespace internal |
| 3046 } // namespace v8 | 3046 } // namespace v8 |
| OLD | NEW |