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

Side by Side Diff: src/compiler.h

Issue 915583002: Massage the CodeStub class hierarchy a bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/code-stubs-hydrogen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return construct_language_mode(GetFlag(kStrictMode), GetFlag(kStrongMode)); 114 return construct_language_mode(GetFlag(kStrictMode), GetFlag(kStrongMode));
115 } 115 }
116 FunctionLiteral* function() const { return function_; } 116 FunctionLiteral* function() const { return function_; }
117 Scope* scope() const { return scope_; } 117 Scope* scope() const { return scope_; }
118 Scope* script_scope() const { return script_scope_; } 118 Scope* script_scope() const { return script_scope_; }
119 Handle<Code> code() const { return code_; } 119 Handle<Code> code() const { return code_; }
120 Handle<JSFunction> closure() const { return closure_; } 120 Handle<JSFunction> closure() const { return closure_; }
121 Handle<SharedFunctionInfo> shared_info() const { return shared_info_; } 121 Handle<SharedFunctionInfo> shared_info() const { return shared_info_; }
122 Handle<Script> script() const { return script_; } 122 Handle<Script> script() const { return script_; }
123 void set_script(Handle<Script> script) { script_ = script; } 123 void set_script(Handle<Script> script) { script_ = script; }
124 HydrogenCodeStub* code_stub() const {return code_stub_; } 124 CodeStub* code_stub() const { return code_stub_; }
125 v8::Extension* extension() const { return extension_; } 125 v8::Extension* extension() const { return extension_; }
126 ScriptData** cached_data() const { return cached_data_; } 126 ScriptData** cached_data() const { return cached_data_; }
127 ScriptCompiler::CompileOptions compile_options() const { 127 ScriptCompiler::CompileOptions compile_options() const {
128 return compile_options_; 128 return compile_options_;
129 } 129 }
130 ScriptCompiler::ExternalSourceStream* source_stream() const { 130 ScriptCompiler::ExternalSourceStream* source_stream() const {
131 return source_stream_; 131 return source_stream_;
132 } 132 }
133 ScriptCompiler::StreamedSource::Encoding source_stream_encoding() const { 133 ScriptCompiler::StreamedSource::Encoding source_stream_encoding() const {
134 return source_stream_encoding_; 134 return source_stream_encoding_;
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 // Fields filled in by the compilation pipeline. 469 // Fields filled in by the compilation pipeline.
470 // AST filled in by the parser. 470 // AST filled in by the parser.
471 FunctionLiteral* function_; 471 FunctionLiteral* function_;
472 // The scope of the function literal as a convenience. Set to indicate 472 // The scope of the function literal as a convenience. Set to indicate
473 // that scopes have been analyzed. 473 // that scopes have been analyzed.
474 Scope* scope_; 474 Scope* scope_;
475 // The script scope provided as a convenience. 475 // The script scope provided as a convenience.
476 Scope* script_scope_; 476 Scope* script_scope_;
477 // For compiled stubs, the stub object 477 // For compiled stubs, the stub object
478 HydrogenCodeStub* code_stub_; 478 CodeStub* code_stub_;
479 // The compiled code. 479 // The compiled code.
480 Handle<Code> code_; 480 Handle<Code> code_;
481 481
482 // Possible initial inputs to the compilation process. 482 // Possible initial inputs to the compilation process.
483 Handle<JSFunction> closure_; 483 Handle<JSFunction> closure_;
484 Handle<SharedFunctionInfo> shared_info_; 484 Handle<SharedFunctionInfo> shared_info_;
485 Handle<Script> script_; 485 Handle<Script> script_;
486 ScriptCompiler::ExternalSourceStream* source_stream_; // Not owned. 486 ScriptCompiler::ExternalSourceStream* source_stream_; // Not owned.
487 ScriptCompiler::StreamedSource::Encoding source_stream_encoding_; 487 ScriptCompiler::StreamedSource::Encoding source_stream_encoding_;
488 488
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 Zone zone_; 777 Zone zone_;
778 unsigned info_zone_start_allocation_size_; 778 unsigned info_zone_start_allocation_size_;
779 base::ElapsedTimer timer_; 779 base::ElapsedTimer timer_;
780 780
781 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 781 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
782 }; 782 };
783 783
784 } } // namespace v8::internal 784 } } // namespace v8::internal
785 785
786 #endif // V8_COMPILER_H_ 786 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698