Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: src/interpreter/bytecode-generator.cc

Issue 1406253008: [Interpreter] Add support for VisitThisFunction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_jsruntime
Patch Set: Add tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698