| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 165 } |
| 166 | 166 |
| 167 void FullCodeGenerator::PrepareForBailout(Expression* node, | 167 void FullCodeGenerator::PrepareForBailout(Expression* node, |
| 168 BailoutState state) { | 168 BailoutState state) { |
| 169 PrepareForBailoutForId(node->id(), state); | 169 PrepareForBailoutForId(node->id(), state); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void FullCodeGenerator::CallLoadIC(TypeFeedbackId id) { | 172 void FullCodeGenerator::CallLoadIC(TypeFeedbackId id) { |
| 173 Handle<Code> ic = CodeFactory::LoadIC(isolate()).code(); | 173 Handle<Code> ic = CodeFactory::LoadIC(isolate()).code(); |
| 174 CallIC(ic, id); | 174 CallIC(ic, id); |
| 175 if (FLAG_tf_load_ic_stub) RestoreContext(); |
| 175 } | 176 } |
| 176 | 177 |
| 177 void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode, | 178 void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode, |
| 178 TypeFeedbackId id) { | 179 TypeFeedbackId id) { |
| 179 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); | 180 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); |
| 180 CallIC(ic, id); | 181 CallIC(ic, id); |
| 181 } | 182 } |
| 182 | 183 |
| 183 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 184 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
| 184 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); | 185 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); |
| (...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 return var->scope()->is_nonlinear() || | 1961 return var->scope()->is_nonlinear() || |
| 1961 var->initializer_position() >= proxy->position(); | 1962 var->initializer_position() >= proxy->position(); |
| 1962 } | 1963 } |
| 1963 | 1964 |
| 1964 | 1965 |
| 1965 #undef __ | 1966 #undef __ |
| 1966 | 1967 |
| 1967 | 1968 |
| 1968 } // namespace internal | 1969 } // namespace internal |
| 1969 } // namespace v8 | 1970 } // namespace v8 |
| OLD | NEW |