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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 1666943003: [interpreter] Support for ES6 class literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Another tweak to cctest.status. Created 4 years, 10 months 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 | src/interpreter/bytecode-array-builder.h » ('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/compiler/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/compiler/bytecode-branch-analysis.h" 7 #include "src/compiler/bytecode-branch-analysis.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/operator-properties.h" 9 #include "src/compiler/operator-properties.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() { 957 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() {
958 DCHECK(is_sloppy(language_mode())); 958 DCHECK(is_sloppy(language_mode()));
959 BuildKeyedStore(); 959 BuildKeyedStore();
960 } 960 }
961 961
962 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() { 962 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() {
963 DCHECK(is_strict(language_mode())); 963 DCHECK(is_strict(language_mode()));
964 BuildKeyedStore(); 964 BuildKeyedStore();
965 } 965 }
966 966
967 void BytecodeGraphBuilder::VisitLdaInitialMap() {
968 Node* js_function = environment()->LookupAccumulator();
969 Node* load = BuildLoadObjectField(js_function,
970 JSFunction::kPrototypeOrInitialMapOffset);
971 environment()->BindAccumulator(load);
972 }
973
967 void BytecodeGraphBuilder::VisitPushContext() { 974 void BytecodeGraphBuilder::VisitPushContext() {
968 Node* new_context = environment()->LookupAccumulator(); 975 Node* new_context = environment()->LookupAccumulator();
969 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), 976 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0),
970 environment()->Context()); 977 environment()->Context());
971 environment()->SetContext(new_context); 978 environment()->SetContext(new_context);
972 } 979 }
973 980
974 void BytecodeGraphBuilder::VisitPopContext() { 981 void BytecodeGraphBuilder::VisitPopContext() {
975 Node* context = 982 Node* context =
976 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); 983 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0));
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 // Phi does not exist yet, introduce one. 1838 // Phi does not exist yet, introduce one.
1832 value = NewPhi(inputs, value, control); 1839 value = NewPhi(inputs, value, control);
1833 value->ReplaceInput(inputs - 1, other); 1840 value->ReplaceInput(inputs - 1, other);
1834 } 1841 }
1835 return value; 1842 return value;
1836 } 1843 }
1837 1844
1838 } // namespace compiler 1845 } // namespace compiler
1839 } // namespace internal 1846 } // namespace internal
1840 } // namespace v8 1847 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698