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

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

Issue 15714005: Deprecate HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Hannes Payer. Created 7 years, 6 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 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 explicit LCheckNonSmi(LOperand* value) { 2544 explicit LCheckNonSmi(LOperand* value) {
2546 inputs_[0] = value; 2545 inputs_[0] = value;
2547 } 2546 }
2548 2547
2549 LOperand* value() { return inputs_[0]; } 2548 LOperand* value() { return inputs_[0]; }
2550 2549
2551 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2550 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2552 }; 2551 };
2553 2552
2554 2553
2555 class LAllocateObject: public LTemplateInstruction<1, 1, 1> {
2556 public:
2557 LAllocateObject(LOperand* context, LOperand* temp) {
2558 inputs_[0] = context;
2559 temps_[0] = temp;
2560 }
2561
2562 LOperand* context() { return inputs_[0]; }
2563 LOperand* temp() { return temps_[0]; }
2564
2565 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2566 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2567 };
2568
2569
2570 class LAllocate: public LTemplateInstruction<1, 2, 1> { 2554 class LAllocate: public LTemplateInstruction<1, 2, 1> {
2571 public: 2555 public:
2572 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { 2556 LAllocate(LOperand* context, LOperand* size, LOperand* temp) {
2573 inputs_[0] = context; 2557 inputs_[0] = context;
2574 inputs_[1] = size; 2558 inputs_[1] = size;
2575 temps_[0] = temp; 2559 temps_[0] = temp;
2576 } 2560 }
2577 2561
2578 LOperand* context() { return inputs_[0]; } 2562 LOperand* context() { return inputs_[0]; }
2579 LOperand* size() { return inputs_[1]; } 2563 LOperand* size() { return inputs_[1]; }
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2980 2964
2981 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2965 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2982 }; 2966 };
2983 2967
2984 #undef DECLARE_HYDROGEN_ACCESSOR 2968 #undef DECLARE_HYDROGEN_ACCESSOR
2985 #undef DECLARE_CONCRETE_INSTRUCTION 2969 #undef DECLARE_CONCRETE_INSTRUCTION
2986 2970
2987 } } // namespace v8::internal 2971 } } // namespace v8::internal
2988 2972
2989 #endif // V8_IA32_LITHIUM_IA32_H_ 2973 #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