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

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

Issue 19207002: Reland deprecation of HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \
44 V(ControlInstruction) \ 44 V(ControlInstruction) \
45 V(Call) \ 45 V(Call) \
46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V)
47 47
48 48
49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
50 V(AccessArgumentsAt) \ 50 V(AccessArgumentsAt) \
51 V(AddI) \ 51 V(AddI) \
52 V(AllocateObject) \
53 V(Allocate) \ 52 V(Allocate) \
54 V(ApplyArguments) \ 53 V(ApplyArguments) \
55 V(ArgumentsElements) \ 54 V(ArgumentsElements) \
56 V(ArgumentsLength) \ 55 V(ArgumentsLength) \
57 V(ArithmeticD) \ 56 V(ArithmeticD) \
58 V(ArithmeticT) \ 57 V(ArithmeticT) \
59 V(BitI) \ 58 V(BitI) \
60 V(BitNotI) \ 59 V(BitNotI) \
61 V(BoundsCheck) \ 60 V(BoundsCheck) \
62 V(Branch) \ 61 V(Branch) \
(...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 temps_[0] = temp; 2455 temps_[0] = temp;
2457 } 2456 }
2458 2457
2459 LOperand* unclamped() { return inputs_[0]; } 2458 LOperand* unclamped() { return inputs_[0]; }
2460 LOperand* temp() { return temps_[0]; } 2459 LOperand* temp() { return temps_[0]; }
2461 2460
2462 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2461 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2463 }; 2462 };
2464 2463
2465 2464
2466 class LAllocateObject: public LTemplateInstruction<1, 1, 2> {
2467 public:
2468 LAllocateObject(LOperand* temp, LOperand* temp2) {
2469 temps_[0] = temp;
2470 temps_[1] = temp2;
2471 }
2472
2473 LOperand* temp() { return temps_[0]; }
2474 LOperand* temp2() { return temps_[1]; }
2475
2476 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2477 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2478 };
2479
2480
2481 class LAllocate: public LTemplateInstruction<1, 2, 2> { 2465 class LAllocate: public LTemplateInstruction<1, 2, 2> {
2482 public: 2466 public:
2483 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { 2467 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2484 inputs_[1] = size; 2468 inputs_[1] = size;
2485 temps_[0] = temp1; 2469 temps_[0] = temp1;
2486 temps_[1] = temp2; 2470 temps_[1] = temp2;
2487 } 2471 }
2488 2472
2489 LOperand* size() { return inputs_[1]; } 2473 LOperand* size() { return inputs_[1]; }
2490 LOperand* temp1() { return temps_[0]; } 2474 LOperand* temp1() { return temps_[0]; }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 2806
2823 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2807 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2824 }; 2808 };
2825 2809
2826 #undef DECLARE_HYDROGEN_ACCESSOR 2810 #undef DECLARE_HYDROGEN_ACCESSOR
2827 #undef DECLARE_CONCRETE_INSTRUCTION 2811 #undef DECLARE_CONCRETE_INSTRUCTION
2828 2812
2829 } } // namespace v8::internal 2813 } } // namespace v8::internal
2830 2814
2831 #endif // V8_ARM_LITHIUM_ARM_H_ 2815 #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