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

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

Issue 2133233002: [LoadIC] Handle simple field loads in the dispatcher (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix release builds for realz Created 4 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/field-index-inl.h ('k') | src/ic/handler-compiler.h » ('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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 void FullCodeGenerator::PrepareForBailout(Expression* node, 168 void FullCodeGenerator::PrepareForBailout(Expression* node,
169 BailoutState state) { 169 BailoutState state) {
170 PrepareForBailoutForId(node->id(), state); 170 PrepareForBailoutForId(node->id(), state);
171 } 171 }
172 172
173 void FullCodeGenerator::CallLoadIC(TypeFeedbackId id) { 173 void FullCodeGenerator::CallLoadIC(TypeFeedbackId id) {
174 Handle<Code> ic = CodeFactory::LoadIC(isolate()).code(); 174 Handle<Code> ic = CodeFactory::LoadIC(isolate()).code();
175 CallIC(ic, id); 175 CallIC(ic, id);
176 if (FLAG_tf_load_ic_stub) RestoreContext();
176 } 177 }
177 178
178 void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode, 179 void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode,
179 TypeFeedbackId id) { 180 TypeFeedbackId id) {
180 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); 181 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code();
181 CallIC(ic, id); 182 CallIC(ic, id);
182 } 183 }
183 184
184 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { 185 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) {
185 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); 186 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code();
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 return var->scope()->is_nonlinear() || 1962 return var->scope()->is_nonlinear() ||
1962 var->initializer_position() >= proxy->position(); 1963 var->initializer_position() >= proxy->position();
1963 } 1964 }
1964 1965
1965 1966
1966 #undef __ 1967 #undef __
1967 1968
1968 1969
1969 } // namespace internal 1970 } // namespace internal
1970 } // namespace v8 1971 } // namespace v8
OLDNEW
« no previous file with comments | « src/field-index-inl.h ('k') | src/ic/handler-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698