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

Side by Side Diff: src/ia32/lithium-ia32.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/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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 V(Typeof) \ 167 V(Typeof) \
168 V(TypeofIsAndBranch) \ 168 V(TypeofIsAndBranch) \
169 V(UnaryMathOperation) \ 169 V(UnaryMathOperation) \
170 V(UnknownOSRValue) \ 170 V(UnknownOSRValue) \
171 V(ValueOf) \ 171 V(ValueOf) \
172 V(ForInPrepareMap) \ 172 V(ForInPrepareMap) \
173 V(ForInCacheArray) \ 173 V(ForInCacheArray) \
174 V(CheckMapValue) \ 174 V(CheckMapValue) \
175 V(LoadFieldByIndex) \ 175 V(LoadFieldByIndex) \
176 V(DateField) \ 176 V(DateField) \
177 V(WrapReceiver) \ 177 V(WrapReceiver)
178 V(Pop)
179 178
180 179
181 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 180 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
182 virtual Opcode opcode() const { return LInstruction::k##type; } \ 181 virtual Opcode opcode() const { return LInstruction::k##type; } \
183 virtual void CompileToNative(LCodeGen* generator); \ 182 virtual void CompileToNative(LCodeGen* generator); \
184 virtual const char* Mnemonic() const { return mnemonic; } \ 183 virtual const char* Mnemonic() const { return mnemonic; } \
185 static L##type* cast(LInstruction* instr) { \ 184 static L##type* cast(LInstruction* instr) { \
186 ASSERT(instr->Is##type()); \ 185 ASSERT(instr->Is##type()); \
187 return reinterpret_cast<L##type*>(instr); \ 186 return reinterpret_cast<L##type*>(instr); \
188 } 187 }
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 explicit LArgumentsLength(LOperand* elements) { 518 explicit LArgumentsLength(LOperand* elements) {
520 inputs_[0] = elements; 519 inputs_[0] = elements;
521 } 520 }
522 521
523 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length") 522 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
524 }; 523 };
525 524
526 525
527 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { 526 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
528 public: 527 public:
529 explicit LArgumentsElements(bool from_inlined) 528 LArgumentsElements() { }
530 : from_inlined_(from_inlined) { }
531
532 bool from_inlined() const { return from_inlined_; }
533 529
534 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") 530 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
535
536 private:
537 bool from_inlined_;
538 }; 531 };
539 532
540 533
541 class LModI: public LTemplateInstruction<1, 2, 1> { 534 class LModI: public LTemplateInstruction<1, 2, 1> {
542 public: 535 public:
543 LModI(LOperand* left, LOperand* right, LOperand* temp) { 536 LModI(LOperand* left, LOperand* right, LOperand* temp) {
544 inputs_[0] = left; 537 inputs_[0] = left;
545 inputs_[1] = right; 538 inputs_[1] = right;
546 temps_[0] = temp; 539 temps_[0] = temp;
547 } 540 }
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 class LPushArgument: public LTemplateInstruction<0, 1, 0> { 1394 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1402 public: 1395 public:
1403 explicit LPushArgument(LOperand* value) { 1396 explicit LPushArgument(LOperand* value) {
1404 inputs_[0] = value; 1397 inputs_[0] = value;
1405 } 1398 }
1406 1399
1407 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") 1400 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1408 }; 1401 };
1409 1402
1410 1403
1411 class LPop: public LTemplateInstruction<0, 0, 0> {
1412 public:
1413 explicit LPop(int count) : count_(count) { }
1414
1415 int count() const { return count_; }
1416
1417 DECLARE_CONCRETE_INSTRUCTION(Pop, "pop")
1418
1419 private:
1420 int count_;
1421 };
1422
1423
1424 class LThisFunction: public LTemplateInstruction<1, 0, 0> { 1404 class LThisFunction: public LTemplateInstruction<1, 0, 0> {
1425 public: 1405 public:
1426 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1406 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1427 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 1407 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
1428 }; 1408 };
1429 1409
1430 1410
1431 class LContext: public LTemplateInstruction<1, 0, 0> { 1411 class LContext: public LTemplateInstruction<1, 0, 0> {
1432 public: 1412 public:
1433 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1413 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 2505
2526 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2506 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2527 }; 2507 };
2528 2508
2529 #undef DECLARE_HYDROGEN_ACCESSOR 2509 #undef DECLARE_HYDROGEN_ACCESSOR
2530 #undef DECLARE_CONCRETE_INSTRUCTION 2510 #undef DECLARE_CONCRETE_INSTRUCTION
2531 2511
2532 } } // namespace v8::internal 2512 } } // namespace v8::internal
2533 2513
2534 #endif // V8_IA32_LITHIUM_IA32_H_ 2514 #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