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.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/ast-numbering.h" | 8 #include "src/ast/ast-numbering.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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 } | 1069 } |
1070 | 1070 |
1071 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, | 1071 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, |
1072 BailoutId bailout_id) { | 1072 BailoutId bailout_id) { |
1073 VisitForStackValue(property->key()); | 1073 VisitForStackValue(property->key()); |
1074 CallRuntimeWithOperands(Runtime::kToName); | 1074 CallRuntimeWithOperands(Runtime::kToName); |
1075 PrepareForBailoutForId(bailout_id, NO_REGISTERS); | 1075 PrepareForBailoutForId(bailout_id, NO_REGISTERS); |
1076 PushOperand(result_register()); | 1076 PushOperand(result_register()); |
1077 } | 1077 } |
1078 | 1078 |
| 1079 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { |
| 1080 DCHECK(!slot.IsInvalid()); |
| 1081 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot)); |
| 1082 } |
1079 | 1083 |
1080 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { | 1084 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
1081 Comment cmnt(masm_, "[ ReturnStatement"); | 1085 Comment cmnt(masm_, "[ ReturnStatement"); |
1082 SetStatementPosition(stmt); | 1086 SetStatementPosition(stmt); |
1083 Expression* expr = stmt->expression(); | 1087 Expression* expr = stmt->expression(); |
1084 VisitForAccumulatorValue(expr); | 1088 VisitForAccumulatorValue(expr); |
1085 EmitUnwindAndReturn(); | 1089 EmitUnwindAndReturn(); |
1086 } | 1090 } |
1087 | 1091 |
1088 | 1092 |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1923 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1920 var->initializer_position() >= proxy->position(); | 1924 var->initializer_position() >= proxy->position(); |
1921 } | 1925 } |
1922 | 1926 |
1923 | 1927 |
1924 #undef __ | 1928 #undef __ |
1925 | 1929 |
1926 | 1930 |
1927 } // namespace internal | 1931 } // namespace internal |
1928 } // namespace v8 | 1932 } // namespace v8 |
OLD | NEW |