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/arm/lithium-arm.h

Issue 10190007: Revert r11420 because Win32 compilation was broken. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « no previous file | src/arm/lithium-arm.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 V(LoadFunctionPrototype) \ 125 V(LoadFunctionPrototype) \
126 V(LoadGlobalCell) \ 126 V(LoadGlobalCell) \
127 V(LoadGlobalGeneric) \ 127 V(LoadGlobalGeneric) \
128 V(LoadKeyedFastDoubleElement) \ 128 V(LoadKeyedFastDoubleElement) \
129 V(LoadKeyedFastElement) \ 129 V(LoadKeyedFastElement) \
130 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
131 V(LoadKeyedSpecializedArrayElement) \ 131 V(LoadKeyedSpecializedArrayElement) \
132 V(LoadNamedField) \ 132 V(LoadNamedField) \
133 V(LoadNamedFieldPolymorphic) \ 133 V(LoadNamedFieldPolymorphic) \
134 V(LoadNamedGeneric) \ 134 V(LoadNamedGeneric) \
135 V(MathFloorOfDiv) \
136 V(ModI) \ 135 V(ModI) \
137 V(MulI) \ 136 V(MulI) \
138 V(NumberTagD) \ 137 V(NumberTagD) \
139 V(NumberTagI) \ 138 V(NumberTagI) \
140 V(NumberUntagD) \ 139 V(NumberUntagD) \
141 V(ObjectLiteral) \ 140 V(ObjectLiteral) \
142 V(OsrEntry) \ 141 V(OsrEntry) \
143 V(OuterContext) \ 142 V(OuterContext) \
144 V(Parameter) \ 143 V(Parameter) \
145 V(Power) \ 144 V(Power) \
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 LDivI(LOperand* left, LOperand* right) { 572 LDivI(LOperand* left, LOperand* right) {
574 inputs_[0] = left; 573 inputs_[0] = left;
575 inputs_[1] = right; 574 inputs_[1] = right;
576 } 575 }
577 576
578 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 577 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
579 DECLARE_HYDROGEN_ACCESSOR(Div) 578 DECLARE_HYDROGEN_ACCESSOR(Div)
580 }; 579 };
581 580
582 581
583 class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
584 public:
585 LMathFloorOfDiv(LOperand* left,
586 LOperand* right,
587 LOperand* temp = NULL) {
588 inputs_[0] = left;
589 inputs_[1] = right;
590 temps_[0] = temp;
591 }
592
593 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
594 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
595 };
596
597
598 class LMulI: public LTemplateInstruction<1, 2, 1> { 582 class LMulI: public LTemplateInstruction<1, 2, 1> {
599 public: 583 public:
600 LMulI(LOperand* left, LOperand* right, LOperand* temp) { 584 LMulI(LOperand* left, LOperand* right, LOperand* temp) {
601 inputs_[0] = left; 585 inputs_[0] = left;
602 inputs_[1] = right; 586 inputs_[1] = right;
603 temps_[0] = temp; 587 temps_[0] = temp;
604 } 588 }
605 589
606 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 590 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
607 DECLARE_HYDROGEN_ACCESSOR(Mul) 591 DECLARE_HYDROGEN_ACCESSOR(Mul)
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } 2280 pending_deoptimization_ast_id_(AstNode::kNoNumber) { }
2297 2281
2298 // Build the sequence for the graph. 2282 // Build the sequence for the graph.
2299 LChunk* Build(); 2283 LChunk* Build();
2300 2284
2301 // Declare methods that deal with the individual node types. 2285 // Declare methods that deal with the individual node types.
2302 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2286 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2303 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2287 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2304 #undef DECLARE_DO 2288 #undef DECLARE_DO
2305 2289
2306 static bool HasMagicNumberForDivisor(int32_t divisor);
2307 static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val);
2308 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
2309
2310 private: 2290 private:
2311 enum Status { 2291 enum Status {
2312 UNUSED, 2292 UNUSED,
2313 BUILDING, 2293 BUILDING,
2314 DONE, 2294 DONE,
2315 ABORTED 2295 ABORTED
2316 }; 2296 };
2317 2297
2318 LChunk* chunk() const { return chunk_; } 2298 LChunk* chunk() const { return chunk_; }
2319 CompilationInfo* info() const { return info_; } 2299 CompilationInfo* info() const { return info_; }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 2416
2437 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2417 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2438 }; 2418 };
2439 2419
2440 #undef DECLARE_HYDROGEN_ACCESSOR 2420 #undef DECLARE_HYDROGEN_ACCESSOR
2441 #undef DECLARE_CONCRETE_INSTRUCTION 2421 #undef DECLARE_CONCRETE_INSTRUCTION
2442 2422
2443 } } // namespace v8::internal 2423 } } // namespace v8::internal
2444 2424
2445 #endif // V8_ARM_LITHIUM_ARM_H_ 2425 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698