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

Side by Side Diff: src/x64/lithium-x64.h

Issue 12220074: Compile FastCloneShallowObjectStub using Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 V(FunctionLiteral) \ 102 V(FunctionLiteral) \
103 V(GetCachedArrayIndex) \ 103 V(GetCachedArrayIndex) \
104 V(GlobalObject) \ 104 V(GlobalObject) \
105 V(GlobalReceiver) \ 105 V(GlobalReceiver) \
106 V(Goto) \ 106 V(Goto) \
107 V(HasCachedArrayIndexAndBranch) \ 107 V(HasCachedArrayIndexAndBranch) \
108 V(HasInstanceTypeAndBranch) \ 108 V(HasInstanceTypeAndBranch) \
109 V(In) \ 109 V(In) \
110 V(InstanceOf) \ 110 V(InstanceOf) \
111 V(InstanceOfKnownGlobal) \ 111 V(InstanceOfKnownGlobal) \
112 V(InstanceSize) \
112 V(InstructionGap) \ 113 V(InstructionGap) \
113 V(Integer32ToDouble) \ 114 V(Integer32ToDouble) \
114 V(Uint32ToDouble) \ 115 V(Uint32ToDouble) \
115 V(InvokeFunction) \ 116 V(InvokeFunction) \
116 V(IsConstructCallAndBranch) \ 117 V(IsConstructCallAndBranch) \
117 V(IsNilAndBranch) \ 118 V(IsNilAndBranch) \
118 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
119 V(IsStringAndBranch) \ 120 V(IsStringAndBranch) \
120 V(IsSmiAndBranch) \ 121 V(IsSmiAndBranch) \
121 V(IsUndetectableAndBranch) \ 122 V(IsUndetectableAndBranch) \
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 } 948 }
948 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { 949 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
949 lazy_deopt_env_ = env; 950 lazy_deopt_env_ = env;
950 } 951 }
951 952
952 private: 953 private:
953 LEnvironment* lazy_deopt_env_; 954 LEnvironment* lazy_deopt_env_;
954 }; 955 };
955 956
956 957
958 class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
959 public:
960 explicit LInstanceSize(LOperand* object) {
961 inputs_[0] = object;
962 }
963
964 LOperand* object() { return inputs_[0]; }
965
966 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size")
967 DECLARE_HYDROGEN_ACCESSOR(InstanceSize)
968 };
969
970
957 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { 971 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
958 public: 972 public:
959 LBoundsCheck(LOperand* index, LOperand* length) { 973 LBoundsCheck(LOperand* index, LOperand* length) {
960 inputs_[0] = index; 974 inputs_[0] = index;
961 inputs_[1] = length; 975 inputs_[1] = length;
962 } 976 }
963 977
964 LOperand* index() { return inputs_[0]; } 978 LOperand* index() { return inputs_[0]; }
965 LOperand* length() { return inputs_[1]; } 979 LOperand* length() { return inputs_[1]; }
966 980
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 2602
2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2603 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2590 }; 2604 };
2591 2605
2592 #undef DECLARE_HYDROGEN_ACCESSOR 2606 #undef DECLARE_HYDROGEN_ACCESSOR
2593 #undef DECLARE_CONCRETE_INSTRUCTION 2607 #undef DECLARE_CONCRETE_INSTRUCTION
2594 2608
2595 } } // namespace v8::int 2609 } } // namespace v8::int
2596 2610
2597 #endif // V8_X64_LITHIUM_X64_H_ 2611 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698