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

Unified 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: Created 5 years, 2 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
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index c3db3be963dcc704add4acf03b213c2e428e9eb4..17e3bc211652181a3f1b444ecbf22cb9a19636e6 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -126,12 +126,15 @@ class RawMachineAssembler {
return AddNode(machine()->Load(rep), base, index, graph()->start(),
graph()->start());
}
- Node* Store(MachineType rep, Node* base, Node* value) {
- return Store(rep, base, IntPtrConstant(0), value);
- }
- Node* Store(MachineType rep, Node* base, Node* index, Node* value) {
- return AddNode(machine()->Store(StoreRepresentation(rep, kNoWriteBarrier)),
- base, index, value, graph()->start(), graph()->start());
+ Node* Store(MachineType rep, Node* base, Node* value,
+ WriteBarrierKind write_barrier_kind = kNoWriteBarrier) {
Michael Starzinger 2015/10/26 13:28:13 Joking aside: How much overhead would it be to not
rmcilroy 2015/10/26 15:37:51 Good point - done by changing Store to take a Stor
+ return Store(rep, base, IntPtrConstant(0), value, write_barrier_kind);
+ }
+ Node* Store(MachineType rep, Node* base, Node* index, Node* value,
+ WriteBarrierKind write_barrier_kind = kNoWriteBarrier) {
Michael Starzinger 2015/10/26 13:28:13 Likewise.
rmcilroy 2015/10/26 15:37:51 Done.
+ return AddNode(
+ machine()->Store(StoreRepresentation(rep, write_barrier_kind)), base,
+ index, value, graph()->start(), graph()->start());
}
// Arithmetic Operations.

Powered by Google App Engine
This is Rietveld 408576698