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

Unified Diff: src/compiler.h

Issue 1372293005: [Interpreter] Support top-level code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased 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
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index d655571362469bc091ad0e8a5acf1126cd06944d..8ed34aa32e03f9bde5e1abe43ecd1fc681d3d1c4 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -173,6 +173,9 @@ class CompilationInfo {
parameter_count_ = parameter_count;
}
+ bool has_bytecode_array() const { return !bytecode_array_.is_null(); }
+ Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; }
+
bool is_tracking_positions() const { return track_positions_; }
bool is_calling() const {
@@ -274,6 +277,10 @@ class CompilationInfo {
}
void SetCode(Handle<Code> code) { code_ = code; }
+ void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) {
+ bytecode_array_ = bytecode_array;
+ }
+
bool ShouldTrapOnDeopt() const {
return (FLAG_trap_on_deopt && IsOptimizing()) ||
(FLAG_trap_on_stub_deopt && IsStub());
@@ -459,6 +466,9 @@ class CompilationInfo {
// data. Keep track which code we patched.
Handle<Code> unoptimized_code_;
+ // Holds the bytecode array generated by the interpreter.
+ Handle<BytecodeArray> bytecode_array_;
Michael Starzinger 2015/10/07 09:53:29 As discussed offline: I am not a huge fan of this
rmcilroy 2015/10/07 10:05:37 Added TODO.
+
// The zone from which the compilation pipeline working on this
// CompilationInfo allocates.
Zone* zone_;
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698