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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 explicit LThrow(LOperand* value) { 1305 explicit LThrow(LOperand* value) {
1304 inputs_[0] = value; 1306 inputs_[0] = value;
1305 } 1307 }
1306 1308
1307 LOperand* value() { return inputs_[0]; } 1309 LOperand* value() { return inputs_[0]; }
1308 1310
1309 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") 1311 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1310 }; 1312 };
1311 1313
1312 1314
1315 class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1316 public:
1317 explicit LBitNotI(LOperand* value) {
1318 inputs_[0] = value;
1319 }
1320
1321 LOperand* value() { return inputs_[0]; }
1322
1323 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1324 };
1325
1326
1313 class LAddI: public LTemplateInstruction<1, 2, 0> { 1327 class LAddI: public LTemplateInstruction<1, 2, 0> {
1314 public: 1328 public:
1315 LAddI(LOperand* left, LOperand* right) { 1329 LAddI(LOperand* left, LOperand* right) {
1316 inputs_[0] = left; 1330 inputs_[0] = left;
1317 inputs_[1] = right; 1331 inputs_[1] = right;
1318 } 1332 }
1319 1333
1320 LOperand* left() { return inputs_[0]; } 1334 LOperand* left() { return inputs_[0]; }
1321 LOperand* right() { return inputs_[1]; } 1335 LOperand* right() { return inputs_[1]; }
1322 1336
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 2059
2046 LOperand* object() { return inputs_[0]; } 2060 LOperand* object() { return inputs_[0]; }
2047 LOperand* value() { return inputs_[1]; } 2061 LOperand* value() { return inputs_[1]; }
2048 LOperand* temp() { return temps_[0]; } 2062 LOperand* temp() { return temps_[0]; }
2049 2063
2050 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2064 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2051 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2065 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2052 2066
2053 virtual void PrintDataTo(StringStream* stream); 2067 virtual void PrintDataTo(StringStream* stream);
2054 2068
2055 Handle<Map> transition() const { return hydrogen()->transition_map(); } 2069 Handle<Map> transition() const { return hydrogen()->transition(); }
2056 Representation representation() const { 2070 Representation representation() const {
2057 return hydrogen()->field_representation(); 2071 return hydrogen()->field_representation();
2058 } 2072 }
2059 }; 2073 };
2060 2074
2061 2075
2062 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { 2076 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> {
2063 public: 2077 public:
2064 LStoreNamedGeneric(LOperand* object, LOperand* value) { 2078 LStoreNamedGeneric(LOperand* object, LOperand* value) {
2065 inputs_[0] = object; 2079 inputs_[0] = object;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 inputs_[0] = value; 2255 inputs_[0] = value;
2242 } 2256 }
2243 2257
2244 LOperand* value() { return inputs_[0]; } 2258 LOperand* value() { return inputs_[0]; }
2245 2259
2246 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") 2260 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
2247 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) 2261 DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
2248 }; 2262 };
2249 2263
2250 2264
2265 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
2266 public:
2267 explicit LCheckPrototypeMaps(LOperand* temp) {
2268 temps_[0] = temp;
2269 }
2270
2271 LOperand* temp() { return temps_[0]; }
2272
2273 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
2274 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
2275
2276 ZoneList<Handle<JSObject> >* prototypes() const {
2277 return hydrogen()->prototypes();
2278 }
2279 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); }
2280 };
2281
2282
2251 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { 2283 class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
2252 public: 2284 public:
2253 explicit LCheckSmi(LOperand* value) { 2285 explicit LCheckSmi(LOperand* value) {
2254 inputs_[0] = value; 2286 inputs_[0] = value;
2255 } 2287 }
2256 2288
2257 LOperand* value() { return inputs_[0]; } 2289 LOperand* value() { return inputs_[0]; }
2258 2290
2259 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2291 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2260 }; 2292 };
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 LPlatformChunk* chunk() const { return chunk_; } 2566 LPlatformChunk* chunk() const { return chunk_; }
2535 CompilationInfo* info() const { return info_; } 2567 CompilationInfo* info() const { return info_; }
2536 HGraph* graph() const { return graph_; } 2568 HGraph* graph() const { return graph_; }
2537 Zone* zone() const { return zone_; } 2569 Zone* zone() const { return zone_; }
2538 2570
2539 bool is_unused() const { return status_ == UNUSED; } 2571 bool is_unused() const { return status_ == UNUSED; }
2540 bool is_building() const { return status_ == BUILDING; } 2572 bool is_building() const { return status_ == BUILDING; }
2541 bool is_done() const { return status_ == DONE; } 2573 bool is_done() const { return status_ == DONE; }
2542 bool is_aborted() const { return status_ == ABORTED; } 2574 bool is_aborted() const { return status_ == ABORTED; }
2543 2575
2544 void Abort(BailoutReason reason); 2576 void Abort(const char* reason);
2545 2577
2546 // Methods for getting operands for Use / Define / Temp. 2578 // Methods for getting operands for Use / Define / Temp.
2547 LUnallocated* ToUnallocated(Register reg); 2579 LUnallocated* ToUnallocated(Register reg);
2548 LUnallocated* ToUnallocated(XMMRegister reg); 2580 LUnallocated* ToUnallocated(XMMRegister reg);
2549 2581
2550 // Methods for setting up define-use relationships. 2582 // Methods for setting up define-use relationships.
2551 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand); 2583 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
2552 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register); 2584 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
2553 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value, 2585 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
2554 XMMRegister fixed_register); 2586 XMMRegister fixed_register);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 2686
2655 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2656 }; 2688 };
2657 2689
2658 #undef DECLARE_HYDROGEN_ACCESSOR 2690 #undef DECLARE_HYDROGEN_ACCESSOR
2659 #undef DECLARE_CONCRETE_INSTRUCTION 2691 #undef DECLARE_CONCRETE_INSTRUCTION
2660 2692
2661 } } // namespace v8::int 2693 } } // namespace v8::int
2662 2694
2663 #endif // V8_X64_LITHIUM_X64_H_ 2695 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698