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

Side by Side Diff: src/ia32/lithium-ia32.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/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 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(ClampTToUint8NoSSE2) \ 76 V(ClampTToUint8NoSSE2) \
75 V(ClassOfTestAndBranch) \ 77 V(ClassOfTestAndBranch) \
76 V(CompareNumericAndBranch) \ 78 V(CompareNumericAndBranch) \
77 V(CmpObjectEqAndBranch) \ 79 V(CmpObjectEqAndBranch) \
78 V(CmpMapAndBranch) \ 80 V(CmpMapAndBranch) \
79 V(CmpT) \ 81 V(CmpT) \
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 inputs_[1] = value; 1351 inputs_[1] = value;
1350 } 1352 }
1351 1353
1352 LOperand* context() { return inputs_[0]; } 1354 LOperand* context() { return inputs_[0]; }
1353 LOperand* value() { return inputs_[1]; } 1355 LOperand* value() { return inputs_[1]; }
1354 1356
1355 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") 1357 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1356 }; 1358 };
1357 1359
1358 1360
1361 class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1362 public:
1363 explicit LBitNotI(LOperand* value) {
1364 inputs_[0] = value;
1365 }
1366
1367 LOperand* value() { return inputs_[0]; }
1368
1369 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1370 };
1371
1372
1359 class LAddI: public LTemplateInstruction<1, 2, 0> { 1373 class LAddI: public LTemplateInstruction<1, 2, 0> {
1360 public: 1374 public:
1361 LAddI(LOperand* left, LOperand* right) { 1375 LAddI(LOperand* left, LOperand* right) {
1362 inputs_[0] = left; 1376 inputs_[0] = left;
1363 inputs_[1] = right; 1377 inputs_[1] = right;
1364 } 1378 }
1365 1379
1366 LOperand* left() { return inputs_[0]; } 1380 LOperand* left() { return inputs_[0]; }
1367 LOperand* right() { return inputs_[1]; } 1381 LOperand* right() { return inputs_[1]; }
1368 1382
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 LOperand* object() { return inputs_[0]; } 2229 LOperand* object() { return inputs_[0]; }
2216 LOperand* value() { return inputs_[1]; } 2230 LOperand* value() { return inputs_[1]; }
2217 LOperand* temp() { return temps_[0]; } 2231 LOperand* temp() { return temps_[0]; }
2218 LOperand* temp_map() { return temps_[1]; } 2232 LOperand* temp_map() { return temps_[1]; }
2219 2233
2220 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2234 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2221 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2235 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2222 2236
2223 virtual void PrintDataTo(StringStream* stream); 2237 virtual void PrintDataTo(StringStream* stream);
2224 2238
2225 Handle<Map> transition() const { return hydrogen()->transition_map(); } 2239 Handle<Map> transition() const { return hydrogen()->transition(); }
2226 Representation representation() const { 2240 Representation representation() const {
2227 return hydrogen()->field_representation(); 2241 return hydrogen()->field_representation();
2228 } 2242 }
2229 }; 2243 };
2230 2244
2231 2245
2232 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> { 2246 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
2233 public: 2247 public:
2234 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { 2248 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) {
2235 inputs_[0] = context; 2249 inputs_[0] = context;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
2430 inputs_[0] = value; 2444 inputs_[0] = value;
2431 } 2445 }
2432 2446
2433 LOperand* value() { return inputs_[0]; } 2447 LOperand* value() { return inputs_[0]; }
2434 2448
2435 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") 2449 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
2436 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) 2450 DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
2437 }; 2451 };
2438 2452
2439 2453
2454 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
2455 public:
2456 explicit LCheckPrototypeMaps(LOperand* temp) {
2457 temps_[0] = temp;
2458 }
2459
2460 LOperand* temp() { return temps_[0]; }
2461
2462 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2463 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2464
2465 ZoneList<Handle<JSObject> >* prototypes() const {
2466 return hydrogen()->prototypes();
2467 }
2468 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2469 };
2470
2471
2440 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2472 class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
2441 public: 2473 public:
2442 explicit LCheckSmi(LOperand* value) { 2474 explicit LCheckSmi(LOperand* value) {
2443 inputs_[0] = value; 2475 inputs_[0] = value;
2444 } 2476 }
2445 2477
2446 LOperand* value() { return inputs_[0]; } 2478 LOperand* value() { return inputs_[0]; }
2447 2479
2448 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2480 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2449 }; 2481 };
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 LPlatformChunk* chunk() const { return chunk_; } 2793 LPlatformChunk* chunk() const { return chunk_; }
2762 CompilationInfo* info() const { return info_; } 2794 CompilationInfo* info() const { return info_; }
2763 HGraph* graph() const { return graph_; } 2795 HGraph* graph() const { return graph_; }
2764 Zone* zone() const { return zone_; } 2796 Zone* zone() const { return zone_; }
2765 2797
2766 bool is_unused() const { return status_ == UNUSED; } 2798 bool is_unused() const { return status_ == UNUSED; }
2767 bool is_building() const { return status_ == BUILDING; } 2799 bool is_building() const { return status_ == BUILDING; }
2768 bool is_done() const { return status_ == DONE; } 2800 bool is_done() const { return status_ == DONE; }
2769 bool is_aborted() const { return status_ == ABORTED; } 2801 bool is_aborted() const { return status_ == ABORTED; }
2770 2802
2771 void Abort(BailoutReason reason); 2803 void Abort(const char* reason);
2772 2804
2773 // Methods for getting operands for Use / Define / Temp. 2805 // Methods for getting operands for Use / Define / Temp.
2774 LUnallocated* ToUnallocated(Register reg); 2806 LUnallocated* ToUnallocated(Register reg);
2775 LUnallocated* ToUnallocated(XMMRegister reg); 2807 LUnallocated* ToUnallocated(XMMRegister reg);
2776 LUnallocated* ToUnallocated(X87Register reg); 2808 LUnallocated* ToUnallocated(X87Register reg);
2777 2809
2778 // Methods for setting up define-use relationships. 2810 // Methods for setting up define-use relationships.
2779 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand); 2811 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
2780 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register); 2812 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
2781 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value, 2813 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 2918
2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2888 }; 2920 };
2889 2921
2890 #undef DECLARE_HYDROGEN_ACCESSOR 2922 #undef DECLARE_HYDROGEN_ACCESSOR
2891 #undef DECLARE_CONCRETE_INSTRUCTION 2923 #undef DECLARE_CONCRETE_INSTRUCTION
2892 2924
2893 } } // namespace v8::internal 2925 } } // namespace v8::internal
2894 2926
2895 #endif // V8_IA32_LITHIUM_IA32_H_ 2927 #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