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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 void FullCodeGenerator::CallLoadIC(FeedbackVectorSlot slot, | 214 void FullCodeGenerator::CallLoadIC(FeedbackVectorSlot slot, |
215 Handle<Object> name) { | 215 Handle<Object> name) { |
216 DCHECK(name->IsName()); | 216 DCHECK(name->IsName()); |
217 __ Move(LoadDescriptor::NameRegister(), name); | 217 __ Move(LoadDescriptor::NameRegister(), name); |
218 | 218 |
219 EmitLoadSlot(LoadDescriptor::SlotRegister(), slot); | 219 EmitLoadSlot(LoadDescriptor::SlotRegister(), slot); |
220 | 220 |
221 Handle<Code> code = CodeFactory::LoadIC(isolate()).code(); | 221 Handle<Code> code = CodeFactory::LoadIC(isolate()).code(); |
222 __ Call(code, RelocInfo::CODE_TARGET); | 222 __ Call(code, RelocInfo::CODE_TARGET); |
223 if (FLAG_tf_load_ic_stub) RestoreContext(); | 223 RestoreContext(); |
224 } | 224 } |
225 | 225 |
226 void FullCodeGenerator::CallStoreIC(FeedbackVectorSlot slot, | 226 void FullCodeGenerator::CallStoreIC(FeedbackVectorSlot slot, |
227 Handle<Object> name) { | 227 Handle<Object> name) { |
228 DCHECK(name->IsName()); | 228 DCHECK(name->IsName()); |
229 __ Move(StoreDescriptor::NameRegister(), name); | 229 __ Move(StoreDescriptor::NameRegister(), name); |
230 | 230 |
231 STATIC_ASSERT(!StoreDescriptor::kPassLastArgsOnStack || | 231 STATIC_ASSERT(!StoreDescriptor::kPassLastArgsOnStack || |
232 StoreDescriptor::kStackArgumentsCount == 2); | 232 StoreDescriptor::kStackArgumentsCount == 2); |
233 if (StoreDescriptor::kPassLastArgsOnStack) { | 233 if (StoreDescriptor::kPassLastArgsOnStack) { |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 return info_->has_simple_parameters(); | 1624 return info_->has_simple_parameters(); |
1625 } | 1625 } |
1626 | 1626 |
1627 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 1627 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
1628 | 1628 |
1629 #undef __ | 1629 #undef __ |
1630 | 1630 |
1631 | 1631 |
1632 } // namespace internal | 1632 } // namespace internal |
1633 } // namespace v8 | 1633 } // namespace v8 |
OLD | NEW |