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

Side by Side Diff: src/mips/lithium-mips.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 | « 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 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 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 temps_[0] = temp; 2428 temps_[0] = temp;
2430 } 2429 }
2431 2430
2432 LOperand* unclamped() { return inputs_[0]; } 2431 LOperand* unclamped() { return inputs_[0]; }
2433 LOperand* temp() { return temps_[0]; } 2432 LOperand* temp() { return temps_[0]; }
2434 2433
2435 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2434 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2436 }; 2435 };
2437 2436
2438 2437
2439 class LAllocateObject: public LTemplateInstruction<1, 1, 2> {
2440 public:
2441 LAllocateObject(LOperand* temp, LOperand* temp2) {
2442 temps_[0] = temp;
2443 temps_[1] = temp2;
2444 }
2445
2446 LOperand* temp() { return temps_[0]; }
2447 LOperand* temp2() { return temps_[1]; }
2448
2449 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2450 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2451 };
2452
2453
2454 class LAllocate: public LTemplateInstruction<1, 2, 2> { 2438 class LAllocate: public LTemplateInstruction<1, 2, 2> {
2455 public: 2439 public:
2456 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { 2440 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2457 inputs_[1] = size; 2441 inputs_[1] = size;
2458 temps_[0] = temp1; 2442 temps_[0] = temp1;
2459 temps_[1] = temp2; 2443 temps_[1] = temp2;
2460 } 2444 }
2461 2445
2462 LOperand* size() { return inputs_[1]; } 2446 LOperand* size() { return inputs_[1]; }
2463 LOperand* temp1() { return temps_[0]; } 2447 LOperand* temp1() { return temps_[0]; }
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 2778
2795 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2779 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2796 }; 2780 };
2797 2781
2798 #undef DECLARE_HYDROGEN_ACCESSOR 2782 #undef DECLARE_HYDROGEN_ACCESSOR
2799 #undef DECLARE_CONCRETE_INSTRUCTION 2783 #undef DECLARE_CONCRETE_INSTRUCTION
2800 2784
2801 } } // namespace v8::internal 2785 } } // namespace v8::internal
2802 2786
2803 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2787 #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