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

Side by Side Diff: src/compiler.h

Issue 2212383003: Revert of Separate Scope into DeclarationScope and Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ast/scopes.cc ('k') | src/compiler.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 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 <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); 170 Code::Flags code_flags = Code::ComputeFlags(Code::STUB));
171 ~CompilationInfo(); 171 ~CompilationInfo();
172 172
173 ParseInfo* parse_info() const { return parse_info_; } 173 ParseInfo* parse_info() const { return parse_info_; }
174 174
175 // ----------------------------------------------------------- 175 // -----------------------------------------------------------
176 // TODO(titzer): inline and delete accessors of ParseInfo 176 // TODO(titzer): inline and delete accessors of ParseInfo
177 // ----------------------------------------------------------- 177 // -----------------------------------------------------------
178 Handle<Script> script() const; 178 Handle<Script> script() const;
179 FunctionLiteral* literal() const; 179 FunctionLiteral* literal() const;
180 DeclarationScope* scope() const; 180 Scope* scope() const;
181 Handle<Context> context() const; 181 Handle<Context> context() const;
182 Handle<SharedFunctionInfo> shared_info() const; 182 Handle<SharedFunctionInfo> shared_info() const;
183 bool has_shared_info() const; 183 bool has_shared_info() const;
184 // ----------------------------------------------------------- 184 // -----------------------------------------------------------
185 185
186 Isolate* isolate() const { 186 Isolate* isolate() const {
187 return isolate_; 187 return isolate_;
188 } 188 }
189 Zone* zone() { return zone_; } 189 Zone* zone() { return zone_; }
190 bool is_osr() const { return !osr_ast_id_.IsNone(); } 190 bool is_osr() const { return !osr_ast_id_.IsNone(); }
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 MUST_USE_RESULT Status SetLastStatus(Status status) { 593 MUST_USE_RESULT Status SetLastStatus(Status status) {
594 last_status_ = status; 594 last_status_ = status;
595 return last_status_; 595 return last_status_;
596 } 596 }
597 }; 597 };
598 598
599 } // namespace internal 599 } // namespace internal
600 } // namespace v8 600 } // namespace v8
601 601
602 #endif // V8_COMPILER_H_ 602 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698