Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: src/code-stubs.cc

Issue 2246463002: [compiler] Remove compiler internals from CodeAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698