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

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: Fix --always-opt triggered bug Created 5 years 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 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 break; 694 break;
695 } 695 }
696 // Uncached. 696 // Uncached.
697 return new (zone()) Operator( // -- 697 return new (zone()) Operator( // --
698 IrOpcode::kStateValues, Operator::kPure, // opcode 698 IrOpcode::kStateValues, Operator::kPure, // opcode
699 "StateValues", // name 699 "StateValues", // name
700 arguments, 0, 0, 1, 0, 0); // counts 700 arguments, 0, 0, 1, 0, 0); // counts
701 } 701 }
702 702
703 703
704 const Operator* CommonOperatorBuilder::ObjectState(int pointer_slots, int id) {
705 return new (zone()) Operator1<int>( // --
706 IrOpcode::kObjectState, Operator::kPure, // opcode
707 "ObjectState", // name
708 pointer_slots, 0, 0, 1, 0, 0, id); // counts
709 }
710
711
704 const Operator* CommonOperatorBuilder::TypedStateValues( 712 const Operator* CommonOperatorBuilder::TypedStateValues(
705 const ZoneVector<MachineType>* types) { 713 const ZoneVector<MachineType>* types) {
706 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- 714 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // --
707 IrOpcode::kTypedStateValues, Operator::kPure, // opcode 715 IrOpcode::kTypedStateValues, Operator::kPure, // opcode
708 "TypedStateValues", // name 716 "TypedStateValues", // name
709 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts 717 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts
710 } 718 }
711 719
712 720
713 const Operator* CommonOperatorBuilder::FrameState( 721 const Operator* CommonOperatorBuilder::FrameState(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 Handle<SharedFunctionInfo> shared_info, 817 Handle<SharedFunctionInfo> shared_info,
810 ContextCallingMode context_calling_mode) { 818 ContextCallingMode context_calling_mode) {
811 return new (zone()->New(sizeof(FrameStateFunctionInfo))) 819 return new (zone()->New(sizeof(FrameStateFunctionInfo)))
812 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, 820 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info,
813 context_calling_mode); 821 context_calling_mode);
814 } 822 }
815 823
816 } // namespace compiler 824 } // namespace compiler
817 } // namespace internal 825 } // namespace internal
818 } // namespace v8 826 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698