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

Side by Side Diff: src/compiler.h

Issue 1197703002: Use big-boy Types to annotate interface descriptor parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 5 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') | 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"
11 #include "src/compilation-dependencies.h" 11 #include "src/compilation-dependencies.h"
12 #include "src/signature.h"
12 #include "src/zone.h" 13 #include "src/zone.h"
13 14
14 namespace v8 { 15 namespace v8 {
15 namespace internal { 16 namespace internal {
16 17
17 class AstValueFactory; 18 class AstValueFactory;
18 class HydrogenCodeStub; 19 class HydrogenCodeStub;
19 class ParseInfo; 20 class ParseInfo;
20 class ScriptData; 21 class ScriptData;
21 22
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool IsOptimizable() const { return mode_ == BASE; } 287 bool IsOptimizable() const { return mode_ == BASE; }
287 bool IsStub() const { return mode_ == STUB; } 288 bool IsStub() const { return mode_ == STUB; }
288 void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) { 289 void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) {
289 DCHECK(!shared_info().is_null()); 290 DCHECK(!shared_info().is_null());
290 SetMode(OPTIMIZE); 291 SetMode(OPTIMIZE);
291 osr_ast_id_ = osr_ast_id; 292 osr_ast_id_ = osr_ast_id;
292 unoptimized_code_ = unoptimized; 293 unoptimized_code_ = unoptimized;
293 optimization_id_ = isolate()->NextOptimizationId(); 294 optimization_id_ = isolate()->NextOptimizationId();
294 } 295 }
295 296
297 void SetFunctionType(Type::FunctionType* function_type) {
298 function_type_ = function_type;
299 }
300 Type::FunctionType* function_type() const { return function_type_; }
301
296 void SetStub(CodeStub* code_stub) { 302 void SetStub(CodeStub* code_stub) {
297 SetMode(STUB); 303 SetMode(STUB);
298 code_stub_ = code_stub; 304 code_stub_ = code_stub;
299 } 305 }
300 306
301 // Deoptimization support. 307 // Deoptimization support.
302 bool HasDeoptimizationSupport() const { 308 bool HasDeoptimizationSupport() const {
303 return GetFlag(kDeoptimizationSupport); 309 return GetFlag(kDeoptimizationSupport);
304 } 310 }
305 void EnableDeoptimizationSupport() { 311 void EnableDeoptimizationSupport() {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // during graph optimization. 483 // during graph optimization.
478 int opt_count_; 484 int opt_count_;
479 485
480 // Number of parameters used for compilation of stubs that require arguments. 486 // Number of parameters used for compilation of stubs that require arguments.
481 int parameter_count_; 487 int parameter_count_;
482 488
483 int optimization_id_; 489 int optimization_id_;
484 490
485 int osr_expr_stack_height_; 491 int osr_expr_stack_height_;
486 492
493 Type::FunctionType* function_type_;
494
487 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); 495 DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
488 }; 496 };
489 497
490 498
491 // A wrapper around a CompilationInfo that detaches the Handles from 499 // A wrapper around a CompilationInfo that detaches the Handles from
492 // the underlying DeferredHandleScope and stores them in info_ on 500 // the underlying DeferredHandleScope and stores them in info_ on
493 // destruction. 501 // destruction.
494 class CompilationHandleScope BASE_EMBEDDED { 502 class CompilationHandleScope BASE_EMBEDDED {
495 public: 503 public:
496 explicit CompilationHandleScope(CompilationInfo* info) 504 explicit CompilationHandleScope(CompilationInfo* info)
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 Zone zone_; 694 Zone zone_;
687 size_t info_zone_start_allocation_size_; 695 size_t info_zone_start_allocation_size_;
688 base::ElapsedTimer timer_; 696 base::ElapsedTimer timer_;
689 697
690 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 698 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
691 }; 699 };
692 700
693 } } // namespace v8::internal 701 } } // namespace v8::internal
694 702
695 #endif // V8_COMPILER_H_ 703 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698