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

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

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 22 matching lines...) Expand all
85 V(CmpObjectEqAndBranch) \ 84 V(CmpObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 85 V(CmpMapAndBranch) \
87 V(CmpT) \ 86 V(CmpT) \
88 V(ConstantD) \ 87 V(ConstantD) \
89 V(ConstantI) \ 88 V(ConstantI) \
90 V(ConstantS) \ 89 V(ConstantS) \
91 V(ConstantT) \ 90 V(ConstantT) \
92 V(Context) \ 91 V(Context) \
93 V(DebugBreak) \ 92 V(DebugBreak) \
94 V(DeclareGlobals) \ 93 V(DeclareGlobals) \
95 V(DeleteProperty) \
96 V(Deoptimize) \ 94 V(Deoptimize) \
97 V(DivI) \ 95 V(DivI) \
98 V(DoubleToI) \ 96 V(DoubleToI) \
99 V(DoubleToSmi) \ 97 V(DoubleToSmi) \
100 V(DummyUse) \ 98 V(DummyUse) \
101 V(ElementsKind) \ 99 V(ElementsKind) \
102 V(FunctionLiteral) \ 100 V(FunctionLiteral) \
103 V(GetCachedArrayIndex) \ 101 V(GetCachedArrayIndex) \
104 V(GlobalObject) \ 102 V(GlobalObject) \
105 V(GlobalReceiver) \ 103 V(GlobalReceiver) \
106 V(Goto) \ 104 V(Goto) \
107 V(HasCachedArrayIndexAndBranch) \ 105 V(HasCachedArrayIndexAndBranch) \
108 V(HasInstanceTypeAndBranch) \ 106 V(HasInstanceTypeAndBranch) \
109 V(In) \
110 V(InstanceOf) \ 107 V(InstanceOf) \
111 V(InstanceOfKnownGlobal) \ 108 V(InstanceOfKnownGlobal) \
112 V(InstanceSize) \ 109 V(InstanceSize) \
113 V(InstructionGap) \ 110 V(InstructionGap) \
114 V(Integer32ToDouble) \ 111 V(Integer32ToDouble) \
115 V(Integer32ToSmi) \ 112 V(Integer32ToSmi) \
116 V(Uint32ToDouble) \ 113 V(Uint32ToDouble) \
117 V(InvokeFunction) \ 114 V(InvokeFunction) \
118 V(IsConstructCallAndBranch) \ 115 V(IsConstructCallAndBranch) \
119 V(IsObjectAndBranch) \ 116 V(IsObjectAndBranch) \
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 temps_[0] = temp; 2428 temps_[0] = temp;
2432 } 2429 }
2433 2430
2434 LOperand* unclamped() { return inputs_[0]; } 2431 LOperand* unclamped() { return inputs_[0]; }
2435 LOperand* temp() { return temps_[0]; } 2432 LOperand* temp() { return temps_[0]; }
2436 2433
2437 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2434 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2438 }; 2435 };
2439 2436
2440 2437
2441 class LAllocateObject: public LTemplateInstruction<1, 1, 2> {
2442 public:
2443 LAllocateObject(LOperand* temp, LOperand* temp2) {
2444 temps_[0] = temp;
2445 temps_[1] = temp2;
2446 }
2447
2448 LOperand* temp() { return temps_[0]; }
2449 LOperand* temp2() { return temps_[1]; }
2450
2451 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2452 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2453 };
2454
2455
2456 class LAllocate: public LTemplateInstruction<1, 2, 2> { 2438 class LAllocate: public LTemplateInstruction<1, 2, 2> {
2457 public: 2439 public:
2458 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { 2440 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2459 inputs_[1] = size; 2441 inputs_[1] = size;
2460 temps_[0] = temp1; 2442 temps_[0] = temp1;
2461 temps_[1] = temp2; 2443 temps_[1] = temp2;
2462 } 2444 }
2463 2445
2464 LOperand* size() { return inputs_[1]; } 2446 LOperand* size() { return inputs_[1]; }
2465 LOperand* temp1() { return temps_[0]; } 2447 LOperand* temp1() { return temps_[0]; }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 temps_[0] = temp; 2514 temps_[0] = temp;
2533 } 2515 }
2534 2516
2535 LOperand* temp() { return temps_[0]; } 2517 LOperand* temp() { return temps_[0]; }
2536 2518
2537 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, 2519 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
2538 "is-construct-call-and-branch") 2520 "is-construct-call-and-branch")
2539 }; 2521 };
2540 2522
2541 2523
2542 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
2543 public:
2544 LDeleteProperty(LOperand* object, LOperand* key) {
2545 inputs_[0] = object;
2546 inputs_[1] = key;
2547 }
2548
2549 LOperand* object() { return inputs_[0]; }
2550 LOperand* key() { return inputs_[1]; }
2551
2552 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
2553 };
2554
2555
2556 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { 2524 class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
2557 public: 2525 public:
2558 LOsrEntry() {} 2526 LOsrEntry() {}
2559 2527
2560 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 2528 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
2561 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") 2529 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
2562 }; 2530 };
2563 2531
2564 2532
2565 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2533 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2566 public: 2534 public:
2567 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2535 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2568 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2536 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2569 2537
2570 Label* done_label() { return &done_label_; } 2538 Label* done_label() { return &done_label_; }
2571 2539
2572 private: 2540 private:
2573 Label done_label_; 2541 Label done_label_;
2574 }; 2542 };
2575 2543
2576 2544
2577 class LIn: public LTemplateInstruction<1, 2, 0> {
2578 public:
2579 LIn(LOperand* key, LOperand* object) {
2580 inputs_[0] = key;
2581 inputs_[1] = object;
2582 }
2583
2584 LOperand* key() { return inputs_[0]; }
2585 LOperand* object() { return inputs_[1]; }
2586
2587 DECLARE_CONCRETE_INSTRUCTION(In, "in")
2588 };
2589
2590
2591 class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> { 2545 class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> {
2592 public: 2546 public:
2593 explicit LForInPrepareMap(LOperand* object) { 2547 explicit LForInPrepareMap(LOperand* object) {
2594 inputs_[0] = object; 2548 inputs_[0] = object;
2595 } 2549 }
2596 2550
2597 LOperand* object() { return inputs_[0]; } 2551 LOperand* object() { return inputs_[0]; }
2598 2552
2599 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") 2553 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map")
2600 }; 2554 };
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 2778
2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2779 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2826 }; 2780 };
2827 2781
2828 #undef DECLARE_HYDROGEN_ACCESSOR 2782 #undef DECLARE_HYDROGEN_ACCESSOR
2829 #undef DECLARE_CONCRETE_INSTRUCTION 2783 #undef DECLARE_CONCRETE_INSTRUCTION
2830 2784
2831 } } // namespace v8::internal 2785 } } // namespace v8::internal
2832 2786
2833 #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