OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |