| 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 5549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5560 Isolate* isolate) { | 5560 Isolate* isolate) { |
| 5561 FunctionEntryHook entry_hook = isolate->function_entry_hook(); | 5561 FunctionEntryHook entry_hook = isolate->function_entry_hook(); |
| 5562 DCHECK(entry_hook != NULL); | 5562 DCHECK(entry_hook != NULL); |
| 5563 entry_hook(function, stack_pointer); | 5563 entry_hook(function, stack_pointer); |
| 5564 } | 5564 } |
| 5565 | 5565 |
| 5566 void CreateAllocationSiteStub::GenerateAssembly( | 5566 void CreateAllocationSiteStub::GenerateAssembly( |
| 5567 CodeStubAssembler* assembler) const { | 5567 CodeStubAssembler* assembler) const { |
| 5568 typedef compiler::Node Node; | 5568 typedef compiler::Node Node; |
| 5569 Node* size = assembler->IntPtrConstant(AllocationSite::kSize); | 5569 Node* size = assembler->IntPtrConstant(AllocationSite::kSize); |
| 5570 Node* site = assembler->Allocate(size, compiler::CodeAssembler::kPretenured); | 5570 Node* site = assembler->Allocate(size, CodeStubAssembler::kPretenured); |
| 5571 | 5571 |
| 5572 // Store the map | 5572 // Store the map |
| 5573 assembler->StoreObjectFieldRoot(site, AllocationSite::kMapOffset, | 5573 assembler->StoreObjectFieldRoot(site, AllocationSite::kMapOffset, |
| 5574 Heap::kAllocationSiteMapRootIndex); | 5574 Heap::kAllocationSiteMapRootIndex); |
| 5575 | 5575 |
| 5576 Node* kind = | 5576 Node* kind = |
| 5577 assembler->SmiConstant(Smi::FromInt(GetInitialFastElementsKind())); | 5577 assembler->SmiConstant(Smi::FromInt(GetInitialFastElementsKind())); |
| 5578 assembler->StoreObjectFieldNoWriteBarrier( | 5578 assembler->StoreObjectFieldNoWriteBarrier( |
| 5579 site, AllocationSite::kTransitionInfoOffset, kind); | 5579 site, AllocationSite::kTransitionInfoOffset, kind); |
| 5580 | 5580 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5817 if (type->Is(Type::UntaggedPointer())) { | 5817 if (type->Is(Type::UntaggedPointer())) { |
| 5818 return Representation::External(); | 5818 return Representation::External(); |
| 5819 } | 5819 } |
| 5820 | 5820 |
| 5821 DCHECK(!type->Is(Type::Untagged())); | 5821 DCHECK(!type->Is(Type::Untagged())); |
| 5822 return Representation::Tagged(); | 5822 return Representation::Tagged(); |
| 5823 } | 5823 } |
| 5824 | 5824 |
| 5825 } // namespace internal | 5825 } // namespace internal |
| 5826 } // namespace v8 | 5826 } // namespace v8 |
| OLD | NEW |