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

Side by Side Diff: src/compiler.h

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Refinements. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 void MarkAsGlobal() { 97 void MarkAsGlobal() {
98 ASSERT(!is_lazy()); 98 ASSERT(!is_lazy());
99 flags_ |= IsGlobal::encode(true); 99 flags_ |= IsGlobal::encode(true);
100 } 100 }
101 void set_parameter_count(int parameter_count) { 101 void set_parameter_count(int parameter_count) {
102 ASSERT(IsStub()); 102 ASSERT(IsStub());
103 parameter_count_ = parameter_count; 103 parameter_count_ = parameter_count;
104 } 104 }
105 105
106 void ProcessFeedbackSlots();
107 int slot_count() { return function()->slot_count(); }
108
106 void set_this_has_uses(bool has_no_uses) { 109 void set_this_has_uses(bool has_no_uses) {
107 this_has_uses_ = has_no_uses; 110 this_has_uses_ = has_no_uses;
108 } 111 }
109 bool this_has_uses() { 112 bool this_has_uses() {
110 return this_has_uses_; 113 return this_has_uses_;
111 } 114 }
112 void SetLanguageMode(LanguageMode language_mode) { 115 void SetLanguageMode(LanguageMode language_mode) {
113 ASSERT(this->language_mode() == CLASSIC_MODE || 116 ASSERT(this->language_mode() == CLASSIC_MODE ||
114 this->language_mode() == language_mode || 117 this->language_mode() == language_mode ||
115 language_mode == EXTENDED_MODE); 118 language_mode == EXTENDED_MODE);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return ParseRestricitonField::decode(flags_); 174 return ParseRestricitonField::decode(flags_);
172 } 175 }
173 176
174 void SetFunction(FunctionLiteral* literal) { 177 void SetFunction(FunctionLiteral* literal) {
175 ASSERT(function_ == NULL); 178 ASSERT(function_ == NULL);
176 function_ = literal; 179 function_ = literal;
177 } 180 }
178 void SetScope(Scope* scope) { 181 void SetScope(Scope* scope) {
179 ASSERT(scope_ == NULL); 182 ASSERT(scope_ == NULL);
180 scope_ = scope; 183 scope_ = scope;
184 ProcessFeedbackSlots();
mvstanton 2014/01/30 15:13:41 pull this out.
mvstanton 2014/01/30 17:37:41 Done.
181 } 185 }
182 void SetGlobalScope(Scope* global_scope) { 186 void SetGlobalScope(Scope* global_scope) {
183 ASSERT(global_scope_ == NULL); 187 ASSERT(global_scope_ == NULL);
184 global_scope_ = global_scope; 188 global_scope_ = global_scope;
185 } 189 }
186 void SetCode(Handle<Code> code) { code_ = code; } 190 void SetCode(Handle<Code> code) { code_ = code; }
187 void SetExtension(v8::Extension* extension) { 191 void SetExtension(v8::Extension* extension) {
188 ASSERT(!is_lazy()); 192 ASSERT(!is_lazy());
189 extension_ = extension; 193 extension_ = extension;
190 } 194 }
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 unsigned info_zone_start_allocation_size_; 680 unsigned info_zone_start_allocation_size_;
677 ElapsedTimer timer_; 681 ElapsedTimer timer_;
678 682
679 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 683 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
680 }; 684 };
681 685
682 686
683 } } // namespace v8::internal 687 } } // namespace v8::internal
684 688
685 #endif // V8_COMPILER_H_ 689 #endif // V8_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698