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

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: Incorporate mstarzinger's comments on patch set 1. 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
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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() { 956 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() {
957 DCHECK(is_sloppy(language_mode())); 957 DCHECK(is_sloppy(language_mode()));
958 BuildKeyedStore(); 958 BuildKeyedStore();
959 } 959 }
960 960
961 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() { 961 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() {
962 DCHECK(is_strict(language_mode())); 962 DCHECK(is_strict(language_mode()));
963 BuildKeyedStore(); 963 BuildKeyedStore();
964 } 964 }
965 965
966 void BytecodeGraphBuilder::VisitLdaInitialMap() {
967 Node* js_function = environment()->LookupAccumulator();
968 Node* load = BuildLoadObjectField(js_function,
969 JSFunction::kPrototypeOrInitialMapOffset);
970 environment()->BindAccumulator(load);
971 }
972
966 void BytecodeGraphBuilder::VisitPushContext() { 973 void BytecodeGraphBuilder::VisitPushContext() {
967 Node* new_context = environment()->LookupAccumulator(); 974 Node* new_context = environment()->LookupAccumulator();
968 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), 975 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0),
969 environment()->Context()); 976 environment()->Context());
970 environment()->SetContext(new_context); 977 environment()->SetContext(new_context);
971 } 978 }
972 979
973 void BytecodeGraphBuilder::VisitPopContext() { 980 void BytecodeGraphBuilder::VisitPopContext() {
974 Node* context = 981 Node* context =
975 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); 982 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0));
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 // Phi does not exist yet, introduce one. 1822 // Phi does not exist yet, introduce one.
1816 value = NewPhi(inputs, value, control); 1823 value = NewPhi(inputs, value, control);
1817 value->ReplaceInput(inputs - 1, other); 1824 value->ReplaceInput(inputs - 1, other);
1818 } 1825 }
1819 return value; 1826 return value;
1820 } 1827 }
1821 1828
1822 } // namespace compiler 1829 } // namespace compiler
1823 } // namespace internal 1830 } // namespace internal
1824 } // namespace v8 1831 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.h » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698