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

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

Issue 9838059: Rollback of r11118, r11109 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 9 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 V(Typeof) \ 172 V(Typeof) \
173 V(TypeofIsAndBranch) \ 173 V(TypeofIsAndBranch) \
174 V(UnaryMathOperation) \ 174 V(UnaryMathOperation) \
175 V(UnknownOSRValue) \ 175 V(UnknownOSRValue) \
176 V(ValueOf) \ 176 V(ValueOf) \
177 V(ForInPrepareMap) \ 177 V(ForInPrepareMap) \
178 V(ForInCacheArray) \ 178 V(ForInCacheArray) \
179 V(CheckMapValue) \ 179 V(CheckMapValue) \
180 V(LoadFieldByIndex) \ 180 V(LoadFieldByIndex) \
181 V(DateField) \ 181 V(DateField) \
182 V(WrapReceiver) \ 182 V(WrapReceiver)
183 V(Pop)
184 183
185 184
186 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 185 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
187 virtual Opcode opcode() const { return LInstruction::k##type; } \ 186 virtual Opcode opcode() const { return LInstruction::k##type; } \
188 virtual void CompileToNative(LCodeGen* generator); \ 187 virtual void CompileToNative(LCodeGen* generator); \
189 virtual const char* Mnemonic() const { return mnemonic; } \ 188 virtual const char* Mnemonic() const { return mnemonic; } \
190 static L##type* cast(LInstruction* instr) { \ 189 static L##type* cast(LInstruction* instr) { \
191 ASSERT(instr->Is##type()); \ 190 ASSERT(instr->Is##type()); \
192 return reinterpret_cast<L##type*>(instr); \ 191 return reinterpret_cast<L##type*>(instr); \
193 } 192 }
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 explicit LArgumentsLength(LOperand* elements) { 528 explicit LArgumentsLength(LOperand* elements) {
530 inputs_[0] = elements; 529 inputs_[0] = elements;
531 } 530 }
532 531
533 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length") 532 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
534 }; 533 };
535 534
536 535
537 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { 536 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
538 public: 537 public:
539 explicit LArgumentsElements(bool from_inlined) 538 LArgumentsElements() { }
540 : from_inlined_(from_inlined) { }
541
542 bool from_inlined() const { return from_inlined_; }
543 539
544 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") 540 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
545
546 private:
547 bool from_inlined_;
548 }; 541 };
549 542
550 543
551 class LModI: public LTemplateInstruction<1, 2, 1> { 544 class LModI: public LTemplateInstruction<1, 2, 1> {
552 public: 545 public:
553 LModI(LOperand* left, LOperand* right, LOperand* temp) { 546 LModI(LOperand* left, LOperand* right, LOperand* temp) {
554 inputs_[0] = left; 547 inputs_[0] = left;
555 inputs_[1] = right; 548 inputs_[1] = right;
556 temps_[0] = temp; 549 temps_[0] = temp;
557 } 550 }
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 class LPushArgument: public LTemplateInstruction<0, 1, 0> { 1351 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1359 public: 1352 public:
1360 explicit LPushArgument(LOperand* value) { 1353 explicit LPushArgument(LOperand* value) {
1361 inputs_[0] = value; 1354 inputs_[0] = value;
1362 } 1355 }
1363 1356
1364 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") 1357 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1365 }; 1358 };
1366 1359
1367 1360
1368 class LPop: public LTemplateInstruction<0, 0, 0> {
1369 public:
1370 explicit LPop(int count) : count_(count) { }
1371
1372 int count() const { return count_; }
1373
1374 DECLARE_CONCRETE_INSTRUCTION(Pop, "pop")
1375
1376 private:
1377 int count_;
1378 };
1379
1380
1381 class LThisFunction: public LTemplateInstruction<1, 0, 0> { 1361 class LThisFunction: public LTemplateInstruction<1, 0, 0> {
1382 public: 1362 public:
1383 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1363 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1384 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 1364 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
1385 }; 1365 };
1386 1366
1387 1367
1388 class LContext: public LTemplateInstruction<1, 0, 0> { 1368 class LContext: public LTemplateInstruction<1, 0, 0> {
1389 public: 1369 public:
1390 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1370 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 2369
2390 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2370 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2391 }; 2371 };
2392 2372
2393 #undef DECLARE_HYDROGEN_ACCESSOR 2373 #undef DECLARE_HYDROGEN_ACCESSOR
2394 #undef DECLARE_CONCRETE_INSTRUCTION 2374 #undef DECLARE_CONCRETE_INSTRUCTION
2395 2375
2396 } } // namespace v8::int 2376 } } // namespace v8::int
2397 2377
2398 #endif // V8_X64_LITHIUM_X64_H_ 2378 #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