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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 26 matching lines...) Expand all
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 // Forward declarations. 40 // Forward declarations.
41 class LCodeGen; 41 class LCodeGen;
42 42
43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
44 V(AccessArgumentsAt) \ 44 V(AccessArgumentsAt) \
45 V(AddI) \ 45 V(AddI) \
46 V(Allocate) \ 46 V(Allocate) \
47 V(AllocateObject) \
48 V(ApplyArguments) \ 47 V(ApplyArguments) \
49 V(ArgumentsElements) \ 48 V(ArgumentsElements) \
50 V(ArgumentsLength) \ 49 V(ArgumentsLength) \
51 V(ArithmeticD) \ 50 V(ArithmeticD) \
52 V(ArithmeticT) \ 51 V(ArithmeticT) \
53 V(BitI) \ 52 V(BitI) \
54 V(BitNotI) \ 53 V(BitNotI) \
55 V(BoundsCheck) \ 54 V(BoundsCheck) \
56 V(Branch) \ 55 V(Branch) \
57 V(CallConstantFunction) \ 56 V(CallConstantFunction) \
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 inputs_[0] = value; 2564 inputs_[0] = value;
2566 } 2565 }
2567 2566
2568 LOperand* value() { return inputs_[0]; } 2567 LOperand* value() { return inputs_[0]; }
2569 2568
2570 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2569 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2571 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) 2570 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2572 }; 2571 };
2573 2572
2574 2573
2575 class LAllocateObject: public LTemplateInstruction<1, 1, 1> {
2576 public:
2577 LAllocateObject(LOperand* context, LOperand* temp) {
2578 inputs_[0] = context;
2579 temps_[0] = temp;
2580 }
2581
2582 LOperand* context() { return inputs_[0]; }
2583 LOperand* temp() { return temps_[0]; }
2584
2585 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2586 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2587 };
2588
2589
2590 class LAllocate: public LTemplateInstruction<1, 2, 1> { 2574 class LAllocate: public LTemplateInstruction<1, 2, 1> {
2591 public: 2575 public:
2592 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { 2576 LAllocate(LOperand* context, LOperand* size, LOperand* temp) {
2593 inputs_[0] = context; 2577 inputs_[0] = context;
2594 inputs_[1] = size; 2578 inputs_[1] = size;
2595 temps_[0] = temp; 2579 temps_[0] = temp;
2596 } 2580 }
2597 2581
2598 LOperand* context() { return inputs_[0]; } 2582 LOperand* context() { return inputs_[0]; }
2599 LOperand* size() { return inputs_[1]; } 2583 LOperand* size() { return inputs_[1]; }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2950 2934
2951 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2952 }; 2936 };
2953 2937
2954 #undef DECLARE_HYDROGEN_ACCESSOR 2938 #undef DECLARE_HYDROGEN_ACCESSOR
2955 #undef DECLARE_CONCRETE_INSTRUCTION 2939 #undef DECLARE_CONCRETE_INSTRUCTION
2956 2940
2957 } } // namespace v8::internal 2941 } } // namespace v8::internal
2958 2942
2959 #endif // V8_IA32_LITHIUM_IA32_H_ 2943 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698