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