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

Side by Side Diff: src/compiler.h

Issue 1120093002: Only swap undefined for the global object if necessary in the prologue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove flag Created 5 years, 7 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/arm64/lithium-codegen-arm64.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 "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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // TODO(titzer): inline and delete accessors of ParseInfo 141 // TODO(titzer): inline and delete accessors of ParseInfo
142 // ----------------------------------------------------------- 142 // -----------------------------------------------------------
143 Handle<Script> script() const; 143 Handle<Script> script() const;
144 bool is_eval() const; 144 bool is_eval() const;
145 bool is_native() const; 145 bool is_native() const;
146 bool is_module() const; 146 bool is_module() const;
147 LanguageMode language_mode() const; 147 LanguageMode language_mode() const;
148 Handle<JSFunction> closure() const; 148 Handle<JSFunction> closure() const;
149 FunctionLiteral* function() const; 149 FunctionLiteral* function() const;
150 Scope* scope() const; 150 Scope* scope() const;
151 bool MayUseThis() const;
151 Handle<Context> context() const; 152 Handle<Context> context() const;
152 Handle<SharedFunctionInfo> shared_info() const; 153 Handle<SharedFunctionInfo> shared_info() const;
153 bool has_shared_info() const; 154 bool has_shared_info() const;
154 // ----------------------------------------------------------- 155 // -----------------------------------------------------------
155 156
156 Isolate* isolate() const { 157 Isolate* isolate() const {
157 return isolate_; 158 return isolate_;
158 } 159 }
159 Zone* zone() { return zone_; } 160 Zone* zone() { return zone_; }
160 bool is_osr() const { return !osr_ast_id_.IsNone(); } 161 bool is_osr() const { return !osr_ast_id_.IsNone(); }
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 Zone zone_; 675 Zone zone_;
675 size_t info_zone_start_allocation_size_; 676 size_t info_zone_start_allocation_size_;
676 base::ElapsedTimer timer_; 677 base::ElapsedTimer timer_;
677 678
678 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 679 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
679 }; 680 };
680 681
681 } } // namespace v8::internal 682 } } // namespace v8::internal
682 683
683 #endif // V8_COMPILER_H_ 684 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698