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

Unified Diff: src/compiler/code-assembler.h

Issue 1893383002: Complete separation of CodeAssembler and CodeStubAssembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-assembler.h
diff --git a/src/compiler/code-assembler.h b/src/compiler/code-assembler.h
index 333912d7271def785e1ca240d7e77bd4eb85fdff..f7333bb59d682fec304503a8a447355fb8bf20af 100644
--- a/src/compiler/code-assembler.h
+++ b/src/compiler/code-assembler.h
@@ -52,6 +52,7 @@ class Schedule;
V(Int32LessThanOrEqual) \
V(IntPtrLessThan) \
V(IntPtrLessThanOrEqual) \
+ V(IntPtrEqual) \
V(Uint32LessThan) \
V(UintPtrGreaterThanOrEqual) \
V(WordEqual) \
@@ -191,13 +192,7 @@ class CodeAssembler {
Node* BooleanConstant(bool value);
Node* ExternalConstant(ExternalReference address);
Node* Float64Constant(double value);
- Node* BooleanMapConstant();
- Node* EmptyStringConstant();
- Node* HeapNumberMapConstant();
Node* NaNConstant();
- Node* NoContextConstant();
- Node* NullConstant();
- Node* UndefinedConstant();
Node* Parameter(int value);
void Return(Node* value);
@@ -223,6 +218,9 @@ class CodeAssembler {
Node* Load(MachineType rep, Node* base, Node* index);
Node* AtomicLoad(MachineType rep, Node* base, Node* index);
+ // Load a value from the root array.
+ Node* LoadRoot(Heap::RootListIndex root_index);
+
// Store value to raw memory location.
Node* Store(MachineRepresentation rep, Node* base, Node* value);
Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value);
@@ -307,22 +305,6 @@ class CodeAssembler {
Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor,
Node* code_target_address, Node** args);
- // ===========================================================================
- // Macros
- // ===========================================================================
-
- // Tag a Word as a Smi value.
- Node* SmiTag(Node* value);
- // Untag a Smi value as a Word.
- Node* SmiUntag(Node* value);
-
- // Load a value from the root array.
- Node* LoadRoot(Heap::RootListIndex root_index);
-
- // Allocate an object of the given size.
- Node* Allocate(int size, AllocationFlags flags = kNone);
- Node* InnerAllocate(Node* previous, int offset);
-
// Branching helpers.
void BranchIf(Node* condition, Label* if_true, Label* if_false);
@@ -357,11 +339,6 @@ class CodeAssembler {
Node* CallN(CallDescriptor* descriptor, Node* code_target, Node** args);
Node* TailCallN(CallDescriptor* descriptor, Node* code_target, Node** args);
- Node* AllocateRawAligned(Node* size_in_bytes, AllocationFlags flags,
- Node* top_address, Node* limit_address);
- Node* AllocateRawUnaligned(Node* size_in_bytes, AllocationFlags flags,
- Node* top_adddress, Node* limit_address);
-
base::SmartPointer<RawMachineAssembler> raw_assembler_;
Code::Flags flags_;
const char* name_;
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698