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

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

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 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-gap-resolver-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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(ApplyArguments) \ 47 V(ApplyArguments) \
48 V(ArgumentsElements) \ 48 V(ArgumentsElements) \
49 V(ArgumentsLength) \ 49 V(ArgumentsLength) \
50 V(ArithmeticD) \ 50 V(ArithmeticD) \
51 V(ArithmeticT) \ 51 V(ArithmeticT) \
52 V(BitI) \ 52 V(BitI) \
53 V(BitNotI) \
53 V(BoundsCheck) \ 54 V(BoundsCheck) \
54 V(Branch) \ 55 V(Branch) \
55 V(CallConstantFunction) \ 56 V(CallConstantFunction) \
56 V(CallFunction) \ 57 V(CallFunction) \
57 V(CallGlobal) \ 58 V(CallGlobal) \
58 V(CallKeyed) \ 59 V(CallKeyed) \
59 V(CallKnownGlobal) \ 60 V(CallKnownGlobal) \
60 V(CallNamed) \ 61 V(CallNamed) \
61 V(CallNew) \ 62 V(CallNew) \
62 V(CallNewArray) \ 63 V(CallNewArray) \
63 V(CallRuntime) \ 64 V(CallRuntime) \
64 V(CallStub) \ 65 V(CallStub) \
65 V(CheckFunction) \ 66 V(CheckFunction) \
66 V(CheckInstanceType) \ 67 V(CheckInstanceType) \
67 V(CheckMaps) \ 68 V(CheckMaps) \
68 V(CheckMapValue) \ 69 V(CheckMapValue) \
69 V(CheckNonSmi) \ 70 V(CheckNonSmi) \
71 V(CheckPrototypeMaps) \
70 V(CheckSmi) \ 72 V(CheckSmi) \
71 V(ClampDToUint8) \ 73 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 74 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 75 V(ClampTToUint8) \
74 V(ClassOfTestAndBranch) \ 76 V(ClassOfTestAndBranch) \
75 V(CompareNumericAndBranch) \ 77 V(CompareNumericAndBranch) \
76 V(CmpObjectEqAndBranch) \ 78 V(CmpObjectEqAndBranch) \
77 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
78 V(CmpT) \ 80 V(CmpT) \
79 V(ConstantD) \ 81 V(ConstantD) \
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 explicit LThrow(LOperand* value) { 1349 explicit LThrow(LOperand* value) {
1348 inputs_[0] = value; 1350 inputs_[0] = value;
1349 } 1351 }
1350 1352
1351 LOperand* value() { return inputs_[0]; } 1353 LOperand* value() { return inputs_[0]; }
1352 1354
1353 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") 1355 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1354 }; 1356 };
1355 1357
1356 1358
1359 class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1360 public:
1361 explicit LBitNotI(LOperand* value) {
1362 inputs_[0] = value;
1363 }
1364
1365 LOperand* value() { return inputs_[0]; }
1366
1367 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1368 };
1369
1370
1357 class LAddI: public LTemplateInstruction<1, 2, 0> { 1371 class LAddI: public LTemplateInstruction<1, 2, 0> {
1358 public: 1372 public:
1359 LAddI(LOperand* left, LOperand* right) { 1373 LAddI(LOperand* left, LOperand* right) {
1360 inputs_[0] = left; 1374 inputs_[0] = left;
1361 inputs_[1] = right; 1375 inputs_[1] = right;
1362 } 1376 }
1363 1377
1364 LOperand* left() { return inputs_[0]; } 1378 LOperand* left() { return inputs_[0]; }
1365 LOperand* right() { return inputs_[1]; } 1379 LOperand* right() { return inputs_[1]; }
1366 1380
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 2121
2108 LOperand* object() { return inputs_[0]; } 2122 LOperand* object() { return inputs_[0]; }
2109 LOperand* value() { return inputs_[1]; } 2123 LOperand* value() { return inputs_[1]; }
2110 LOperand* temp() { return temps_[0]; } 2124 LOperand* temp() { return temps_[0]; }
2111 2125
2112 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2126 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2113 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2127 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2114 2128
2115 virtual void PrintDataTo(StringStream* stream); 2129 virtual void PrintDataTo(StringStream* stream);
2116 2130
2117 Handle<Map> transition() const { return hydrogen()->transition_map(); } 2131 Handle<Map> transition() const { return hydrogen()->transition(); }
2118 Representation representation() const { 2132 Representation representation() const {
2119 return hydrogen()->field_representation(); 2133 return hydrogen()->field_representation();
2120 } 2134 }
2121 }; 2135 };
2122 2136
2123 2137
2124 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { 2138 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> {
2125 public: 2139 public:
2126 LStoreNamedGeneric(LOperand* object, LOperand* value) { 2140 LStoreNamedGeneric(LOperand* object, LOperand* value) {
2127 inputs_[0] = object; 2141 inputs_[0] = object;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 inputs_[0] = value; 2317 inputs_[0] = value;
2304 } 2318 }
2305 2319
2306 LOperand* value() { return inputs_[0]; } 2320 LOperand* value() { return inputs_[0]; }
2307 2321
2308 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") 2322 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
2309 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) 2323 DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
2310 }; 2324 };
2311 2325
2312 2326
2327 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 2> {
2328 public:
2329 LCheckPrototypeMaps(LOperand* temp, LOperand* temp2) {
2330 temps_[0] = temp;
2331 temps_[1] = temp2;
2332 }
2333
2334 LOperand* temp() { return temps_[0]; }
2335 LOperand* temp2() { return temps_[1]; }
2336
2337 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2338 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2339
2340 ZoneList<Handle<JSObject> >* prototypes() const {
2341 return hydrogen()->prototypes();
2342 }
2343 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2344 };
2345
2346
2313 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2347 class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
2314 public: 2348 public:
2315 explicit LCheckSmi(LOperand* value) { 2349 explicit LCheckSmi(LOperand* value) {
2316 inputs_[0] = value; 2350 inputs_[0] = value;
2317 } 2351 }
2318 2352
2319 LOperand* value() { return inputs_[0]; } 2353 LOperand* value() { return inputs_[0]; }
2320 2354
2321 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2355 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2322 }; 2356 };
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 LPlatformChunk* chunk() const { return chunk_; } 2635 LPlatformChunk* chunk() const { return chunk_; }
2602 CompilationInfo* info() const { return info_; } 2636 CompilationInfo* info() const { return info_; }
2603 HGraph* graph() const { return graph_; } 2637 HGraph* graph() const { return graph_; }
2604 Zone* zone() const { return zone_; } 2638 Zone* zone() const { return zone_; }
2605 2639
2606 bool is_unused() const { return status_ == UNUSED; } 2640 bool is_unused() const { return status_ == UNUSED; }
2607 bool is_building() const { return status_ == BUILDING; } 2641 bool is_building() const { return status_ == BUILDING; }
2608 bool is_done() const { return status_ == DONE; } 2642 bool is_done() const { return status_ == DONE; }
2609 bool is_aborted() const { return status_ == ABORTED; } 2643 bool is_aborted() const { return status_ == ABORTED; }
2610 2644
2611 void Abort(BailoutReason reason); 2645 void Abort(const char* reason);
2612 2646
2613 // Methods for getting operands for Use / Define / Temp. 2647 // Methods for getting operands for Use / Define / Temp.
2614 LUnallocated* ToUnallocated(Register reg); 2648 LUnallocated* ToUnallocated(Register reg);
2615 LUnallocated* ToUnallocated(DoubleRegister reg); 2649 LUnallocated* ToUnallocated(DoubleRegister reg);
2616 2650
2617 // Methods for setting up define-use relationships. 2651 // Methods for setting up define-use relationships.
2618 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand); 2652 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
2619 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register); 2653 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
2620 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value, 2654 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
2621 DoubleRegister fixed_register); 2655 DoubleRegister fixed_register);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 2752
2719 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2720 }; 2754 };
2721 2755
2722 #undef DECLARE_HYDROGEN_ACCESSOR 2756 #undef DECLARE_HYDROGEN_ACCESSOR
2723 #undef DECLARE_CONCRETE_INSTRUCTION 2757 #undef DECLARE_CONCRETE_INSTRUCTION
2724 2758
2725 } } // namespace v8::internal 2759 } } // namespace v8::internal
2726 2760
2727 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2761 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698