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

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

Issue 13818013: Merged r13798, r13802, r13803, r13804, r13805, r14100 into 3.17 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.17
Patch Set: Created 7 years, 8 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 V(FunctionLiteral) \ 101 V(FunctionLiteral) \
102 V(GetCachedArrayIndex) \ 102 V(GetCachedArrayIndex) \
103 V(GlobalObject) \ 103 V(GlobalObject) \
104 V(GlobalReceiver) \ 104 V(GlobalReceiver) \
105 V(Goto) \ 105 V(Goto) \
106 V(HasCachedArrayIndexAndBranch) \ 106 V(HasCachedArrayIndexAndBranch) \
107 V(HasInstanceTypeAndBranch) \ 107 V(HasInstanceTypeAndBranch) \
108 V(In) \ 108 V(In) \
109 V(InstanceOf) \ 109 V(InstanceOf) \
110 V(InstanceOfKnownGlobal) \ 110 V(InstanceOfKnownGlobal) \
111 V(InstanceSize) \
111 V(InstructionGap) \ 112 V(InstructionGap) \
112 V(Integer32ToDouble) \ 113 V(Integer32ToDouble) \
113 V(Uint32ToDouble) \ 114 V(Uint32ToDouble) \
114 V(InvokeFunction) \ 115 V(InvokeFunction) \
115 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
116 V(IsNilAndBranch) \ 117 V(IsNilAndBranch) \
117 V(IsObjectAndBranch) \ 118 V(IsObjectAndBranch) \
118 V(IsStringAndBranch) \ 119 V(IsStringAndBranch) \
119 V(IsSmiAndBranch) \ 120 V(IsSmiAndBranch) \
120 V(IsUndetectableAndBranch) \ 121 V(IsUndetectableAndBranch) \
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 virtual LOperand* InputAt(int i) = 0; 281 virtual LOperand* InputAt(int i) = 0;
281 282
282 friend class TempIterator; 283 friend class TempIterator;
283 virtual int TempCount() = 0; 284 virtual int TempCount() = 0;
284 virtual LOperand* TempAt(int i) = 0; 285 virtual LOperand* TempAt(int i) = 0;
285 286
286 LEnvironment* environment_; 287 LEnvironment* environment_;
287 SetOncePointer<LPointerMap> pointer_map_; 288 SetOncePointer<LPointerMap> pointer_map_;
288 HValue* hydrogen_value_; 289 HValue* hydrogen_value_;
289 bool is_call_; 290 bool is_call_;
290 bool is_save_doubles_;
291 }; 291 };
292 292
293 293
294 // R = number of result operands (0 or 1). 294 // R = number of result operands (0 or 1).
295 // I = number of input operands. 295 // I = number of input operands.
296 // T = number of temporary operands. 296 // T = number of temporary operands.
297 template<int R, int I, int T> 297 template<int R, int I, int T>
298 class LTemplateInstruction: public LInstruction { 298 class LTemplateInstruction: public LInstruction {
299 public: 299 public:
300 // Allow 0 or 1 output operands. 300 // Allow 0 or 1 output operands.
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 } 952 }
953 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { 953 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
954 lazy_deopt_env_ = env; 954 lazy_deopt_env_ = env;
955 } 955 }
956 956
957 private: 957 private:
958 LEnvironment* lazy_deopt_env_; 958 LEnvironment* lazy_deopt_env_;
959 }; 959 };
960 960
961 961
962 class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
963 public:
964 explicit LInstanceSize(LOperand* object) {
965 inputs_[0] = object;
966 }
967
968 LOperand* object() { return inputs_[0]; }
969
970 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size")
971 DECLARE_HYDROGEN_ACCESSOR(InstanceSize)
972 };
973
974
962 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { 975 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
963 public: 976 public:
964 LBoundsCheck(LOperand* index, LOperand* length) { 977 LBoundsCheck(LOperand* index, LOperand* length) {
965 inputs_[0] = index; 978 inputs_[0] = index;
966 inputs_[1] = length; 979 inputs_[1] = length;
967 } 980 }
968 981
969 LOperand* index() { return inputs_[0]; } 982 LOperand* index() { return inputs_[0]; }
970 LOperand* length() { return inputs_[1]; } 983 LOperand* length() { return inputs_[1]; }
971 984
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 2643
2631 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2644 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2632 }; 2645 };
2633 2646
2634 #undef DECLARE_HYDROGEN_ACCESSOR 2647 #undef DECLARE_HYDROGEN_ACCESSOR
2635 #undef DECLARE_CONCRETE_INSTRUCTION 2648 #undef DECLARE_CONCRETE_INSTRUCTION
2636 2649
2637 } } // namespace v8::internal 2650 } } // namespace v8::internal
2638 2651
2639 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2652 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698