| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 break; | 448 break; |
| 449 case CompareICState::GENERIC: | 449 case CompareICState::GENERIC: |
| 450 GenerateGeneric(masm); | 450 GenerateGeneric(masm); |
| 451 break; | 451 break; |
| 452 } | 452 } |
| 453 } | 453 } |
| 454 | 454 |
| 455 | 455 |
| 456 Handle<Code> TurboFanCodeStub::GenerateCode() { | 456 Handle<Code> TurboFanCodeStub::GenerateCode() { |
| 457 const char* name = CodeStub::MajorName(MajorKey()); | 457 const char* name = CodeStub::MajorName(MajorKey()); |
| 458 Zone zone; | 458 Zone zone(isolate()->allocator()); |
| 459 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); | 459 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); |
| 460 compiler::CodeStubAssembler assembler(isolate(), &zone, descriptor, | 460 compiler::CodeStubAssembler assembler(isolate(), &zone, descriptor, |
| 461 GetCodeFlags(), name); | 461 GetCodeFlags(), name); |
| 462 GenerateAssembly(&assembler); | 462 GenerateAssembly(&assembler); |
| 463 return assembler.GenerateCode(); | 463 return assembler.GenerateCode(); |
| 464 } | 464 } |
| 465 | 465 |
| 466 void AllocateHeapNumberStub::GenerateAssembly( | 466 void AllocateHeapNumberStub::GenerateAssembly( |
| 467 compiler::CodeStubAssembler* assembler) const { | 467 compiler::CodeStubAssembler* assembler) const { |
| 468 typedef compiler::Node Node; | 468 typedef compiler::Node Node; |
| (...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3452 if (type->Is(Type::UntaggedPointer())) { | 3452 if (type->Is(Type::UntaggedPointer())) { |
| 3453 return Representation::External(); | 3453 return Representation::External(); |
| 3454 } | 3454 } |
| 3455 | 3455 |
| 3456 DCHECK(!type->Is(Type::Untagged())); | 3456 DCHECK(!type->Is(Type::Untagged())); |
| 3457 return Representation::Tagged(); | 3457 return Representation::Tagged(); |
| 3458 } | 3458 } |
| 3459 | 3459 |
| 3460 } // namespace internal | 3460 } // namespace internal |
| 3461 } // namespace v8 | 3461 } // namespace v8 |
| OLD | NEW |