OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/bytecode-generator.h" | 5 #include "src/interpreter/bytecode-generator.h" |
6 | 6 |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/interpreter/control-flow-builders.h" | 8 #include "src/interpreter/control-flow-builders.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/parser.h" | 10 #include "src/parser.h" |
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 | 1862 |
1863 void BytecodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1863 void BytecodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1864 | 1864 |
1865 | 1865 |
1866 void BytecodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { | 1866 void BytecodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
1867 UNREACHABLE(); | 1867 UNREACHABLE(); |
1868 } | 1868 } |
1869 | 1869 |
1870 | 1870 |
1871 void BytecodeGenerator::VisitThisFunction(ThisFunction* expr) { | 1871 void BytecodeGenerator::VisitThisFunction(ThisFunction* expr) { |
1872 UNIMPLEMENTED(); | 1872 execution_result()->SetResultInRegister(Register::function_closure()); |
1873 } | 1873 } |
1874 | 1874 |
1875 | 1875 |
1876 void BytecodeGenerator::VisitSuperCallReference(SuperCallReference* expr) { | 1876 void BytecodeGenerator::VisitSuperCallReference(SuperCallReference* expr) { |
1877 UNIMPLEMENTED(); | 1877 UNIMPLEMENTED(); |
1878 } | 1878 } |
1879 | 1879 |
1880 | 1880 |
1881 void BytecodeGenerator::VisitSuperPropertyReference( | 1881 void BytecodeGenerator::VisitSuperPropertyReference( |
1882 SuperPropertyReference* expr) { | 1882 SuperPropertyReference* expr) { |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 } | 2163 } |
2164 | 2164 |
2165 | 2165 |
2166 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { | 2166 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { |
2167 return info()->feedback_vector()->GetIndex(slot); | 2167 return info()->feedback_vector()->GetIndex(slot); |
2168 } | 2168 } |
2169 | 2169 |
2170 } // namespace interpreter | 2170 } // namespace interpreter |
2171 } // namespace internal | 2171 } // namespace internal |
2172 } // namespace v8 | 2172 } // namespace v8 |
OLD | NEW |