| 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/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
| (...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, | 1066 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, |
| 1067 BailoutId bailout_id) { | 1067 BailoutId bailout_id) { |
| 1068 VisitForStackValue(property->key()); | 1068 VisitForStackValue(property->key()); |
| 1069 CallRuntimeWithOperands(Runtime::kToName); | 1069 CallRuntimeWithOperands(Runtime::kToName); |
| 1070 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER); | 1070 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER); |
| 1071 PushOperand(result_register()); | 1071 PushOperand(result_register()); |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { | 1074 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { |
| 1075 DCHECK(!slot.IsInvalid()); | 1075 DCHECK(!slot.IsInvalid()); |
| 1076 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot)); | 1076 __ Move(StoreDescriptor::SlotRegister(), SmiFromSlot(slot)); |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { | 1079 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
| 1080 Comment cmnt(masm_, "[ ReturnStatement"); | 1080 Comment cmnt(masm_, "[ ReturnStatement"); |
| 1081 SetStatementPosition(stmt); | 1081 SetStatementPosition(stmt); |
| 1082 Expression* expr = stmt->expression(); | 1082 Expression* expr = stmt->expression(); |
| 1083 VisitForAccumulatorValue(expr); | 1083 VisitForAccumulatorValue(expr); |
| 1084 EmitUnwindAndReturn(); | 1084 EmitUnwindAndReturn(); |
| 1085 } | 1085 } |
| 1086 | 1086 |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 return var->scope()->is_nonlinear() || | 1961 return var->scope()->is_nonlinear() || |
| 1962 var->initializer_position() >= proxy->position(); | 1962 var->initializer_position() >= proxy->position(); |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 | 1965 |
| 1966 #undef __ | 1966 #undef __ |
| 1967 | 1967 |
| 1968 | 1968 |
| 1969 } // namespace internal | 1969 } // namespace internal |
| 1970 } // namespace v8 | 1970 } // namespace v8 |
| OLD | NEW |