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/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 TypeFeedbackId id) { | 235 TypeFeedbackId id) { |
236 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); | 236 Handle<Code> ic = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); |
237 CallIC(ic, id); | 237 CallIC(ic, id); |
238 } | 238 } |
239 | 239 |
240 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 240 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
241 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); | 241 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); |
242 CallIC(ic, id); | 242 CallIC(ic, id); |
243 } | 243 } |
244 | 244 |
| 245 void FullCodeGenerator::CallKeyedStoreIC() { |
| 246 Handle<Code> ic = |
| 247 CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
| 248 CallIC(ic); |
| 249 } |
245 | 250 |
246 void FullCodeGenerator::RecordJSReturnSite(Call* call) { | 251 void FullCodeGenerator::RecordJSReturnSite(Call* call) { |
247 // We record the offset of the function return so we can rebuild the frame | 252 // We record the offset of the function return so we can rebuild the frame |
248 // if the function was inlined, i.e., this is the return address in the | 253 // if the function was inlined, i.e., this is the return address in the |
249 // inlined function's frame. | 254 // inlined function's frame. |
250 // | 255 // |
251 // The bailout state is ignored. We defensively set it to TOS_REGISTER, which | 256 // The bailout state is ignored. We defensively set it to TOS_REGISTER, which |
252 // is the real state of the unoptimized code at the return site. | 257 // is the real state of the unoptimized code at the return site. |
253 PrepareForBailoutForId(call->ReturnId(), BailoutState::TOS_REGISTER); | 258 PrepareForBailoutForId(call->ReturnId(), BailoutState::TOS_REGISTER); |
254 #ifdef DEBUG | 259 #ifdef DEBUG |
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2008 return info_->has_simple_parameters(); | 2013 return info_->has_simple_parameters(); |
2009 } | 2014 } |
2010 | 2015 |
2011 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 2016 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
2012 | 2017 |
2013 #undef __ | 2018 #undef __ |
2014 | 2019 |
2015 | 2020 |
2016 } // namespace internal | 2021 } // namespace internal |
2017 } // namespace v8 | 2022 } // namespace v8 |
OLD | NEW |