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

Side by Side Diff: src/interpreter/bytecode-register-optimizer.h

Issue 2242193002: [Interpreter] Avoid accessing Isolate from during bytecode generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_sourceposition
Patch Set: Rebase 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/interpreter/bytecode-pipeline.h ('k') | src/interpreter/bytecode-register-optimizer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
6 #define V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 6 #define V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
7 7
8 #include "src/interpreter/bytecode-pipeline.h" 8 #include "src/interpreter/bytecode-pipeline.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 13 matching lines...) Expand all
24 int parameter_count, 24 int parameter_count,
25 BytecodePipelineStage* next_stage); 25 BytecodePipelineStage* next_stage);
26 virtual ~BytecodeRegisterOptimizer() {} 26 virtual ~BytecodeRegisterOptimizer() {}
27 27
28 // BytecodePipelineStage interface. 28 // BytecodePipelineStage interface.
29 void Write(BytecodeNode* node) override; 29 void Write(BytecodeNode* node) override;
30 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override; 30 void WriteJump(BytecodeNode* node, BytecodeLabel* label) override;
31 void BindLabel(BytecodeLabel* label) override; 31 void BindLabel(BytecodeLabel* label) override;
32 void BindLabel(const BytecodeLabel& target, BytecodeLabel* label) override; 32 void BindLabel(const BytecodeLabel& target, BytecodeLabel* label) override;
33 Handle<BytecodeArray> ToBytecodeArray( 33 Handle<BytecodeArray> ToBytecodeArray(
34 int fixed_register_count, int parameter_count, 34 Isolate* isolate, int fixed_register_count, int parameter_count,
35 Handle<FixedArray> handler_table) override; 35 Handle<FixedArray> handler_table) override;
36 36
37 private: 37 private:
38 static const uint32_t kInvalidEquivalenceId = kMaxUInt32; 38 static const uint32_t kInvalidEquivalenceId = kMaxUInt32;
39 39
40 class RegisterInfo; 40 class RegisterInfo;
41 41
42 // TemporaryRegisterObserver interface. 42 // TemporaryRegisterObserver interface.
43 void TemporaryRegisterFreeEvent(Register reg) override; 43 void TemporaryRegisterFreeEvent(Register reg) override;
44 44
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Zone* zone_; 146 Zone* zone_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(BytecodeRegisterOptimizer); 148 DISALLOW_COPY_AND_ASSIGN(BytecodeRegisterOptimizer);
149 }; 149 };
150 150
151 } // namespace interpreter 151 } // namespace interpreter
152 } // namespace internal 152 } // namespace internal
153 } // namespace v8 153 } // namespace v8
154 154
155 #endif // V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 155 #endif // V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-pipeline.h ('k') | src/interpreter/bytecode-register-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698