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

Side by Side Diff: src/interpreter/bytecode-pipeline.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
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 #ifndef V8_INTERPRETER_BYTECODE_PIPELINE_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_PIPELINE_H_
6 #define V8_INTERPRETER_BYTECODE_PIPELINE_H_ 6 #define V8_INTERPRETER_BYTECODE_PIPELINE_H_
7 7
8 #include "src/interpreter/bytecode-register-allocator.h" 8 #include "src/interpreter/bytecode-register-allocator.h"
9 #include "src/interpreter/bytecode-register.h" 9 #include "src/interpreter/bytecode-register.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 29 matching lines...) Expand all
40 // written to the next stage. 40 // written to the next stage.
41 virtual void BindLabel(BytecodeLabel* label) = 0; 41 virtual void BindLabel(BytecodeLabel* label) = 0;
42 42
43 // Binds |label| to the location of |target|. This call implicitly 43 // Binds |label| to the location of |target|. This call implicitly
44 // ends the current basic block and so any deferred bytecodes should be 44 // ends the current basic block and so any deferred bytecodes should be
45 // written to the next stage. 45 // written to the next stage.
46 virtual void BindLabel(const BytecodeLabel& target, BytecodeLabel* label) = 0; 46 virtual void BindLabel(const BytecodeLabel& target, BytecodeLabel* label) = 0;
47 47
48 // Flush the pipeline and generate a bytecode array. 48 // Flush the pipeline and generate a bytecode array.
49 virtual Handle<BytecodeArray> ToBytecodeArray( 49 virtual Handle<BytecodeArray> ToBytecodeArray(
50 int fixed_register_count, int parameter_count, 50 Isolate* isolate, int fixed_register_count, int parameter_count,
51 Handle<FixedArray> handler_table) = 0; 51 Handle<FixedArray> handler_table) = 0;
52 }; 52 };
53 53
54 // Source code position information. 54 // Source code position information.
55 class BytecodeSourceInfo final { 55 class BytecodeSourceInfo final {
56 public: 56 public:
57 static const int kUninitializedPosition = -1; 57 static const int kUninitializedPosition = -1;
58 58
59 BytecodeSourceInfo() 59 BytecodeSourceInfo()
60 : position_type_(PositionType::kNone), 60 : position_type_(PositionType::kNone),
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 211 };
212 212
213 std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info); 213 std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info);
214 std::ostream& operator<<(std::ostream& os, const BytecodeNode& node); 214 std::ostream& operator<<(std::ostream& os, const BytecodeNode& node);
215 215
216 } // namespace interpreter 216 } // namespace interpreter
217 } // namespace internal 217 } // namespace internal
218 } // namespace v8 218 } // namespace v8
219 219
220 #endif // V8_INTERPRETER_BYTECODE_PIPELINE_H_ 220 #endif // V8_INTERPRETER_BYTECODE_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-peephole-optimizer.cc ('k') | src/interpreter/bytecode-register-optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698