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

Side by Side Diff: src/compiler/interpreter-assembler.cc

Issue 1604923002: [Interpreter] Always store current context in the frames context slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_fix_block_context_scope
Patch Set: Rebase Created 4 years, 11 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/compiler/bytecode-graph-builder.cc ('k') | src/ia32/builtins-ia32.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/interpreter-assembler.h" 5 #include "src/compiler/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 Node* InterpreterAssembler::GetAccumulator() { return accumulator_; } 74 Node* InterpreterAssembler::GetAccumulator() { return accumulator_; }
75 75
76 76
77 void InterpreterAssembler::SetAccumulator(Node* value) { accumulator_ = value; } 77 void InterpreterAssembler::SetAccumulator(Node* value) { accumulator_ = value; }
78 78
79 79
80 Node* InterpreterAssembler::GetContext() { return context_; } 80 Node* InterpreterAssembler::GetContext() { return context_; }
81 81
82 82
83 void InterpreterAssembler::SetContext(Node* value) { context_ = value; } 83 void InterpreterAssembler::SetContext(Node* value) {
84 StoreRegister(value, interpreter::Register::current_context());
85 context_ = value;
86 }
84 87
85 88
86 Node* InterpreterAssembler::BytecodeOffset() { return bytecode_offset_; } 89 Node* InterpreterAssembler::BytecodeOffset() { return bytecode_offset_; }
87 90
88 91
89 Node* InterpreterAssembler::RegisterFileRawPointer() { 92 Node* InterpreterAssembler::RegisterFileRawPointer() {
90 return raw_assembler_->Parameter(Linkage::kInterpreterRegisterFileParameter); 93 return raw_assembler_->Parameter(Linkage::kInterpreterRegisterFileParameter);
91 } 94 }
92 95
93 96
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 return raw_assembler_->call_descriptor(); 755 return raw_assembler_->call_descriptor();
753 } 756 }
754 757
755 758
756 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 759 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
757 760
758 761
759 } // namespace compiler 762 } // namespace compiler
760 } // namespace internal 763 } // namespace internal
761 } // namespace v8 764 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698