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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 1425633002: [Interpreter] Add support for loading from / storing to outer context variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_conditional
Patch Set: Fix interpreter-assembler-unittests Created 5 years, 1 month 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/compiler/interpreter-assembler.cc ('k') | src/interpreter/bytecode-generator.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 // Memory Operations. 121 // Memory Operations.
122 Node* Load(MachineType rep, Node* base) { 122 Node* Load(MachineType rep, Node* base) {
123 return Load(rep, base, IntPtrConstant(0)); 123 return Load(rep, base, IntPtrConstant(0));
124 } 124 }
125 Node* Load(MachineType rep, Node* base, Node* index) { 125 Node* Load(MachineType rep, Node* base, Node* index) {
126 return AddNode(machine()->Load(rep), base, index, graph()->start(), 126 return AddNode(machine()->Load(rep), base, index, graph()->start(),
127 graph()->start()); 127 graph()->start());
128 } 128 }
129 Node* Store(MachineType rep, Node* base, Node* value) { 129 Node* Store(StoreRepresentation rep, Node* base, Node* value) {
130 return Store(rep, base, IntPtrConstant(0), value); 130 return Store(rep, base, IntPtrConstant(0), value);
131 } 131 }
132 Node* Store(MachineType rep, Node* base, Node* index, Node* value) { 132 Node* Store(StoreRepresentation rep, Node* base, Node* index, Node* value) {
133 return AddNode(machine()->Store(StoreRepresentation(rep, kNoWriteBarrier)), 133 return AddNode(machine()->Store(rep), base, index, value, graph()->start(),
134 base, index, value, graph()->start(), graph()->start()); 134 graph()->start());
135 } 135 }
136 136
137 // Arithmetic Operations. 137 // Arithmetic Operations.
138 Node* WordAnd(Node* a, Node* b) { 138 Node* WordAnd(Node* a, Node* b) {
139 return AddNode(machine()->WordAnd(), a, b); 139 return AddNode(machine()->WordAnd(), a, b);
140 } 140 }
141 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); } 141 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); }
142 Node* WordXor(Node* a, Node* b) { 142 Node* WordXor(Node* a, Node* b) {
143 return AddNode(machine()->WordXor(), a, b); 143 return AddNode(machine()->WordXor(), a, b);
144 } 144 }
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); } 479 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); }
480 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); } 480 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); }
481 481
482 // Parameters. 482 // Parameters.
483 Node* Parameter(size_t index); 483 Node* Parameter(size_t index);
484 484
485 // Pointer utilities. 485 // Pointer utilities.
486 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { 486 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) {
487 return Load(rep, PointerConstant(address), Int32Constant(offset)); 487 return Load(rep, PointerConstant(address), Int32Constant(offset));
488 } 488 }
489 Node* StoreToPointer(void* address, MachineType rep, Node* node) { 489 Node* StoreToPointer(void* address, StoreRepresentation rep, Node* node) {
490 return Store(rep, PointerConstant(address), node); 490 return Store(rep, PointerConstant(address), node);
491 } 491 }
492 Node* StringConstant(const char* string) { 492 Node* StringConstant(const char* string) {
493 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); 493 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string));
494 } 494 }
495 495
496 // Call a given call descriptor and the given arguments. 496 // Call a given call descriptor and the given arguments.
497 Node* CallN(CallDescriptor* desc, Node* function, Node** args); 497 Node* CallN(CallDescriptor* desc, Node* function, Node** args);
498 // Call a given call descriptor and the given arguments and frame-state. 498 // Call a given call descriptor and the given arguments and frame-state.
499 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args, 499 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 BasicBlock* current_block_; 588 BasicBlock* current_block_;
589 589
590 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 590 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
591 }; 591 };
592 592
593 } // namespace compiler 593 } // namespace compiler
594 } // namespace internal 594 } // namespace internal
595 } // namespace v8 595 } // namespace v8
596 596
597 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 597 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698