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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 CallIC(ic); | 1095 CallIC(ic); |
1096 if (FLAG_tf_load_ic_stub) RestoreContext(); | 1096 if (FLAG_tf_load_ic_stub) RestoreContext(); |
1097 } | 1097 } |
1098 | 1098 |
1099 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { | 1099 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { |
1100 // Stack: receiver, home_object, key. | 1100 // Stack: receiver, home_object, key. |
1101 SetExpressionPosition(prop); | 1101 SetExpressionPosition(prop); |
1102 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper); | 1102 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper); |
1103 } | 1103 } |
1104 | 1104 |
1105 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, | 1105 void FullCodeGenerator::EmitPropertyKey(LiteralProperty* property, |
1106 BailoutId bailout_id) { | 1106 BailoutId bailout_id) { |
1107 VisitForStackValue(property->key()); | 1107 VisitForStackValue(property->key()); |
1108 CallRuntimeWithOperands(Runtime::kToName); | 1108 CallRuntimeWithOperands(Runtime::kToName); |
1109 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER); | 1109 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER); |
1110 PushOperand(result_register()); | 1110 PushOperand(result_register()); |
1111 } | 1111 } |
1112 | 1112 |
1113 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { | 1113 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { |
1114 DCHECK(!slot.IsInvalid()); | 1114 DCHECK(!slot.IsInvalid()); |
1115 __ Move(StoreDescriptor::SlotRegister(), SmiFromSlot(slot)); | 1115 __ Move(StoreDescriptor::SlotRegister(), SmiFromSlot(slot)); |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 return info_->has_simple_parameters(); | 2013 return info_->has_simple_parameters(); |
2014 } | 2014 } |
2015 | 2015 |
2016 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 2016 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
2017 | 2017 |
2018 #undef __ | 2018 #undef __ |
2019 | 2019 |
2020 | 2020 |
2021 } // namespace internal | 2021 } // namespace internal |
2022 } // namespace v8 | 2022 } // namespace v8 |
OLD | NEW |