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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.h

Issue 1899813003: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 V(Deoptimize) \ 62 V(Deoptimize) \
63 V(DivByConstI) \ 63 V(DivByConstI) \
64 V(DivByPowerOf2I) \ 64 V(DivByPowerOf2I) \
65 V(DivI) \ 65 V(DivI) \
66 V(DoubleToI) \ 66 V(DoubleToI) \
67 V(DoubleBits) \ 67 V(DoubleBits) \
68 V(DoubleToSmi) \ 68 V(DoubleToSmi) \
69 V(Drop) \ 69 V(Drop) \
70 V(Dummy) \ 70 V(Dummy) \
71 V(DummyUse) \ 71 V(DummyUse) \
72 V(FastAllocate) \
72 V(FlooringDivByConstI) \ 73 V(FlooringDivByConstI) \
73 V(FlooringDivByPowerOf2I) \ 74 V(FlooringDivByPowerOf2I) \
74 V(FlooringDivI) \ 75 V(FlooringDivI) \
75 V(ForInCacheArray) \ 76 V(ForInCacheArray) \
76 V(ForInPrepareMap) \ 77 V(ForInPrepareMap) \
77 V(GetCachedArrayIndex) \ 78 V(GetCachedArrayIndex) \
78 V(Goto) \ 79 V(Goto) \
79 V(HasCachedArrayIndexAndBranch) \ 80 V(HasCachedArrayIndexAndBranch) \
80 V(HasInPrototypeChainAndBranch) \ 81 V(HasInPrototypeChainAndBranch) \
81 V(HasInstanceTypeAndBranch) \ 82 V(HasInstanceTypeAndBranch) \
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 2390
2390 LOperand* context() { return inputs_[0]; } 2391 LOperand* context() { return inputs_[0]; }
2391 LOperand* size() { return inputs_[1]; } 2392 LOperand* size() { return inputs_[1]; }
2392 LOperand* temp1() { return temps_[0]; } 2393 LOperand* temp1() { return temps_[0]; }
2393 LOperand* temp2() { return temps_[1]; } 2394 LOperand* temp2() { return temps_[1]; }
2394 2395
2395 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2396 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2396 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2397 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2397 }; 2398 };
2398 2399
2400 class LFastAllocate final : public LTemplateInstruction<1, 1, 2> {
2401 public:
2402 LFastAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2403 inputs_[0] = size;
2404 temps_[0] = temp1;
2405 temps_[1] = temp2;
2406 }
2407
2408 LOperand* size() { return inputs_[0]; }
2409 LOperand* temp1() { return temps_[0]; }
2410 LOperand* temp2() { return temps_[1]; }
2411
2412 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate")
2413 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2414 };
2399 2415
2400 class LTypeof final : public LTemplateInstruction<1, 2, 0> { 2416 class LTypeof final : public LTemplateInstruction<1, 2, 0> {
2401 public: 2417 public:
2402 LTypeof(LOperand* context, LOperand* value) { 2418 LTypeof(LOperand* context, LOperand* value) {
2403 inputs_[0] = context; 2419 inputs_[0] = context;
2404 inputs_[1] = value; 2420 inputs_[1] = value;
2405 } 2421 }
2406 2422
2407 LOperand* context() { return inputs_[0]; } 2423 LOperand* context() { return inputs_[0]; }
2408 LOperand* value() { return inputs_[1]; } 2424 LOperand* value() { return inputs_[1]; }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2674 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2659 }; 2675 };
2660 2676
2661 #undef DECLARE_HYDROGEN_ACCESSOR 2677 #undef DECLARE_HYDROGEN_ACCESSOR
2662 #undef DECLARE_CONCRETE_INSTRUCTION 2678 #undef DECLARE_CONCRETE_INSTRUCTION
2663 2679
2664 } // namespace internal 2680 } // namespace internal
2665 } // namespace v8 2681 } // namespace v8
2666 2682
2667 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2683 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698