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

Side by Side Diff: src/compiler/common-operator.cc

Issue 1485183002: [turbofan] Deopt support for escape analysis (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ea-local
Patch Set: Rebase Created 4 years, 11 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 | « src/compiler/common-operator.h ('k') | src/compiler/escape-analysis.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 break; 746 break;
747 } 747 }
748 // Uncached. 748 // Uncached.
749 return new (zone()) Operator( // -- 749 return new (zone()) Operator( // --
750 IrOpcode::kStateValues, Operator::kPure, // opcode 750 IrOpcode::kStateValues, Operator::kPure, // opcode
751 "StateValues", // name 751 "StateValues", // name
752 arguments, 0, 0, 1, 0, 0); // counts 752 arguments, 0, 0, 1, 0, 0); // counts
753 } 753 }
754 754
755 755
756 const Operator* CommonOperatorBuilder::ObjectState(int pointer_slots, int id) {
757 return new (zone()) Operator1<int>( // --
758 IrOpcode::kObjectState, Operator::kPure, // opcode
759 "ObjectState", // name
760 pointer_slots, 0, 0, 1, 0, 0, id); // counts
761 }
762
763
756 const Operator* CommonOperatorBuilder::TypedStateValues( 764 const Operator* CommonOperatorBuilder::TypedStateValues(
757 const ZoneVector<MachineType>* types) { 765 const ZoneVector<MachineType>* types) {
758 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- 766 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // --
759 IrOpcode::kTypedStateValues, Operator::kPure, // opcode 767 IrOpcode::kTypedStateValues, Operator::kPure, // opcode
760 "TypedStateValues", // name 768 "TypedStateValues", // name
761 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts 769 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts
762 } 770 }
763 771
764 772
765 const Operator* CommonOperatorBuilder::FrameState( 773 const Operator* CommonOperatorBuilder::FrameState(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 Handle<SharedFunctionInfo> shared_info, 869 Handle<SharedFunctionInfo> shared_info,
862 ContextCallingMode context_calling_mode) { 870 ContextCallingMode context_calling_mode) {
863 return new (zone()->New(sizeof(FrameStateFunctionInfo))) 871 return new (zone()->New(sizeof(FrameStateFunctionInfo)))
864 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, 872 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info,
865 context_calling_mode); 873 context_calling_mode);
866 } 874 }
867 875
868 } // namespace compiler 876 } // namespace compiler
869 } // namespace internal 877 } // namespace internal
870 } // namespace v8 878 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/escape-analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698