| 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.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/ast/ast-numbering.h" | 8 #include "src/ast/ast-numbering.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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 masm_->set_predictable_code_size(true); | 174 masm_->set_predictable_code_size(true); |
| 175 } | 175 } |
| 176 | 176 |
| 177 | 177 |
| 178 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { | 178 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
| 179 PrepareForBailoutForId(node->id(), state); | 179 PrepareForBailoutForId(node->id(), state); |
| 180 } | 180 } |
| 181 | 181 |
| 182 | 182 |
| 183 void FullCodeGenerator::CallLoadIC(TypeofMode typeof_mode, | 183 void FullCodeGenerator::CallLoadIC(TypeofMode typeof_mode, |
| 184 LanguageMode language_mode, | |
| 185 TypeFeedbackId id) { | 184 TypeFeedbackId id) { |
| 186 Handle<Code> ic = | 185 Handle<Code> ic = CodeFactory::LoadIC(isolate(), typeof_mode).code(); |
| 187 CodeFactory::LoadIC(isolate(), typeof_mode, language_mode).code(); | |
| 188 CallIC(ic, id); | 186 CallIC(ic, id); |
| 189 } | 187 } |
| 190 | 188 |
| 191 | 189 |
| 192 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 190 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
| 193 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); | 191 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); |
| 194 CallIC(ic, id); | 192 CallIC(ic, id); |
| 195 } | 193 } |
| 196 | 194 |
| 197 | 195 |
| (...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1792 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1790 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
| 1793 var->initializer_position() >= proxy->position(); | 1791 var->initializer_position() >= proxy->position(); |
| 1794 } | 1792 } |
| 1795 | 1793 |
| 1796 | 1794 |
| 1797 #undef __ | 1795 #undef __ |
| 1798 | 1796 |
| 1799 | 1797 |
| 1800 } // namespace internal | 1798 } // namespace internal |
| 1801 } // namespace v8 | 1799 } // namespace v8 |
| OLD | NEW |