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

Side by Side Diff: src/full-codegen/full-codegen.h

Issue 1301583005: Rename ParserInfo::function() and CompilationInfo::function() to literal(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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_FULL_CODEGEN_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 24 matching lines...) Expand all
35 FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info) 35 FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info)
36 : masm_(masm), 36 : masm_(masm),
37 info_(info), 37 info_(info),
38 scope_(info->scope()), 38 scope_(info->scope()),
39 nesting_stack_(NULL), 39 nesting_stack_(NULL),
40 loop_depth_(0), 40 loop_depth_(0),
41 try_catch_depth_(0), 41 try_catch_depth_(0),
42 globals_(NULL), 42 globals_(NULL),
43 context_(NULL), 43 context_(NULL),
44 bailout_entries_(info->HasDeoptimizationSupport() 44 bailout_entries_(info->HasDeoptimizationSupport()
45 ? info->function()->ast_node_count() 45 ? info->literal()->ast_node_count()
46 : 0, 46 : 0,
47 info->zone()), 47 info->zone()),
48 back_edges_(2, info->zone()), 48 back_edges_(2, info->zone()),
49 handler_table_(info->zone()), 49 handler_table_(info->zone()),
50 ic_total_count_(0) { 50 ic_total_count_(0) {
51 DCHECK(!info->IsStub()); 51 DCHECK(!info->IsStub());
52 Initialize(); 52 Initialize();
53 } 53 }
54 54
55 void Initialize(); 55 void Initialize();
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 class ExpressionContext; 692 class ExpressionContext;
693 const ExpressionContext* context() { return context_; } 693 const ExpressionContext* context() { return context_; }
694 void set_new_context(const ExpressionContext* context) { context_ = context; } 694 void set_new_context(const ExpressionContext* context) { context_ = context; }
695 695
696 Handle<Script> script() { return info_->script(); } 696 Handle<Script> script() { return info_->script(); }
697 bool is_eval() { return info_->is_eval(); } 697 bool is_eval() { return info_->is_eval(); }
698 bool is_native() { return info_->is_native(); } 698 bool is_native() { return info_->is_native(); }
699 LanguageMode language_mode() { return function()->language_mode(); } 699 LanguageMode language_mode() { return function()->language_mode(); }
700 bool has_simple_parameters() { return info_->has_simple_parameters(); } 700 bool has_simple_parameters() { return info_->has_simple_parameters(); }
701 FunctionLiteral* function() { return info_->function(); } 701 // TODO(titzer): rename this to literal().
702 FunctionLiteral* function() { return info_->literal(); }
702 Scope* scope() { return scope_; } 703 Scope* scope() { return scope_; }
703 704
704 static Register result_register(); 705 static Register result_register();
705 static Register context_register(); 706 static Register context_register();
706 707
707 // Set fields in the stack frame. Offsets are the frame pointer relative 708 // Set fields in the stack frame. Offsets are the frame pointer relative
708 // offsets defined in, e.g., StandardFrameConstants. 709 // offsets defined in, e.g., StandardFrameConstants.
709 void StoreToFrameField(int frame_offset, Register value); 710 void StoreToFrameField(int frame_offset, Register value);
710 711
711 // Load a value from the current context. Indices are defined as an enum 712 // Load a value from the current context. Indices are defined as an enum
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 1079
1079 Address start_; 1080 Address start_;
1080 Address instruction_start_; 1081 Address instruction_start_;
1081 uint32_t length_; 1082 uint32_t length_;
1082 }; 1083 };
1083 1084
1084 1085
1085 } } // namespace v8::internal 1086 } } // namespace v8::internal
1086 1087
1087 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ 1088 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698