| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 528   explicit LArgumentsLength(LOperand* elements) { | 527   explicit LArgumentsLength(LOperand* elements) { | 
| 529     inputs_[0] = elements; | 528     inputs_[0] = elements; | 
| 530   } | 529   } | 
| 531 | 530 | 
| 532   DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length") | 531   DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length") | 
| 533 }; | 532 }; | 
| 534 | 533 | 
| 535 | 534 | 
| 536 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { | 535 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { | 
| 537  public: | 536  public: | 
| 538   explicit LArgumentsElements(bool from_inlined) | 537   LArgumentsElements() { } | 
| 539       : from_inlined_(from_inlined) { } |  | 
| 540 |  | 
| 541   bool from_inlined() const { return from_inlined_; } |  | 
| 542 | 538 | 
| 543   DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") | 539   DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") | 
| 544 |  | 
| 545  private: |  | 
| 546   bool from_inlined_; |  | 
| 547 }; | 540 }; | 
| 548 | 541 | 
| 549 | 542 | 
| 550 class LModI: public LTemplateInstruction<1, 2, 3> { | 543 class LModI: public LTemplateInstruction<1, 2, 3> { | 
| 551  public: | 544  public: | 
| 552   // Used when the right hand is a constant power of 2. | 545   // Used when the right hand is a constant power of 2. | 
| 553   LModI(LOperand* left, | 546   LModI(LOperand* left, | 
| 554         LOperand* right) { | 547         LOperand* right) { | 
| 555     inputs_[0] = left; | 548     inputs_[0] = left; | 
| 556     inputs_[1] = right; | 549     inputs_[1] = right; | 
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1378 class LPushArgument: public LTemplateInstruction<0, 1, 0> { | 1371 class LPushArgument: public LTemplateInstruction<0, 1, 0> { | 
| 1379  public: | 1372  public: | 
| 1380   explicit LPushArgument(LOperand* value) { | 1373   explicit LPushArgument(LOperand* value) { | 
| 1381     inputs_[0] = value; | 1374     inputs_[0] = value; | 
| 1382   } | 1375   } | 
| 1383 | 1376 | 
| 1384   DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") | 1377   DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") | 
| 1385 }; | 1378 }; | 
| 1386 | 1379 | 
| 1387 | 1380 | 
| 1388 class LPop: public LTemplateInstruction<0, 0, 0> { |  | 
| 1389  public: |  | 
| 1390   explicit LPop(int count) : count_(count) { } |  | 
| 1391 |  | 
| 1392   int count() const { return count_; } |  | 
| 1393 |  | 
| 1394   DECLARE_CONCRETE_INSTRUCTION(Pop, "pop") |  | 
| 1395 |  | 
| 1396  private: |  | 
| 1397   int count_; |  | 
| 1398 }; |  | 
| 1399 |  | 
| 1400 |  | 
| 1401 class LThisFunction: public LTemplateInstruction<1, 0, 0> { | 1381 class LThisFunction: public LTemplateInstruction<1, 0, 0> { | 
| 1402  public: | 1382  public: | 
| 1403   DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 1383   DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 
| 1404   DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 1384   DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 
| 1405 }; | 1385 }; | 
| 1406 | 1386 | 
| 1407 | 1387 | 
| 1408 class LContext: public LTemplateInstruction<1, 0, 0> { | 1388 class LContext: public LTemplateInstruction<1, 0, 0> { | 
| 1409  public: | 1389  public: | 
| 1410   DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 1390   DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2423 | 2403 | 
| 2424   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2404   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 
| 2425 }; | 2405 }; | 
| 2426 | 2406 | 
| 2427 #undef DECLARE_HYDROGEN_ACCESSOR | 2407 #undef DECLARE_HYDROGEN_ACCESSOR | 
| 2428 #undef DECLARE_CONCRETE_INSTRUCTION | 2408 #undef DECLARE_CONCRETE_INSTRUCTION | 
| 2429 | 2409 | 
| 2430 } }  // namespace v8::internal | 2410 } }  // namespace v8::internal | 
| 2431 | 2411 | 
| 2432 #endif  // V8_ARM_LITHIUM_ARM_H_ | 2412 #endif  // V8_ARM_LITHIUM_ARM_H_ | 
| OLD | NEW | 
|---|