Chromium Code Reviews| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 V(ToFastProperties) \ | 165 V(ToFastProperties) \ | 
| 166 V(TransitionElementsKind) \ | 166 V(TransitionElementsKind) \ | 
| 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 | 177 | 
| 177 | 178 | 
| 178 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 179 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 
| 179 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 180 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 
| 180 virtual void CompileToNative(LCodeGen* generator); \ | 181 virtual void CompileToNative(LCodeGen* generator); \ | 
| 181 virtual const char* Mnemonic() const { return mnemonic; } \ | 182 virtual const char* Mnemonic() const { return mnemonic; } \ | 
| 182 static L##type* cast(LInstruction* instr) { \ | 183 static L##type* cast(LInstruction* instr) { \ | 
| 183 ASSERT(instr->Is##type()); \ | 184 ASSERT(instr->Is##type()); \ | 
| 184 return reinterpret_cast<L##type*>(instr); \ | 185 return reinterpret_cast<L##type*>(instr); \ | 
| 185 } | 186 } | 
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 995 LValueOf(LOperand* value, LOperand* temp) { | 996 LValueOf(LOperand* value, LOperand* temp) { | 
| 996 inputs_[0] = value; | 997 inputs_[0] = value; | 
| 997 temps_[0] = temp; | 998 temps_[0] = temp; | 
| 998 } | 999 } | 
| 999 | 1000 | 
| 1000 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | 1001 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | 
| 1001 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 1002 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 
| 1002 }; | 1003 }; | 
| 1003 | 1004 | 
| 1004 | 1005 | 
| 1006 class LDateField: public LTemplateInstruction<1, 1, 1> { | |
| 1007 public: | |
| 1008 LDateField(LOperand* date, LOperand* temp, Smi* index) | |
| 
 
rossberg
2012/03/06 15:55:50
See above.
 
ulan
2012/03/07 10:55:21
Done.
 
 | |
| 1009 : index_(index) { | |
| 1010 inputs_[0] = date; | |
| 1011 temps_[0] = temp; | |
| 1012 } | |
| 1013 | |
| 1014 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | |
| 1015 DECLARE_HYDROGEN_ACCESSOR(DateField) | |
| 1016 | |
| 1017 Smi* index() const { return index_; } | |
| 1018 | |
| 1019 private: | |
| 1020 Smi* index_; | |
| 1021 }; | |
| 1022 | |
| 1023 | |
| 1005 class LThrow: public LTemplateInstruction<0, 2, 0> { | 1024 class LThrow: public LTemplateInstruction<0, 2, 0> { | 
| 1006 public: | 1025 public: | 
| 1007 LThrow(LOperand* context, LOperand* value) { | 1026 LThrow(LOperand* context, LOperand* value) { | 
| 1008 inputs_[0] = context; | 1027 inputs_[0] = context; | 
| 1009 inputs_[1] = value; | 1028 inputs_[1] = value; | 
| 1010 } | 1029 } | 
| 1011 | 1030 | 
| 1012 LOperand* context() { return inputs_[0]; } | 1031 LOperand* context() { return inputs_[0]; } | 
| 1013 LOperand* value() { return inputs_[1]; } | 1032 LOperand* value() { return inputs_[1]; } | 
| 1014 | 1033 | 
| (...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2473 | 2492 | 
| 2474 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2493 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 
| 2475 }; | 2494 }; | 
| 2476 | 2495 | 
| 2477 #undef DECLARE_HYDROGEN_ACCESSOR | 2496 #undef DECLARE_HYDROGEN_ACCESSOR | 
| 2478 #undef DECLARE_CONCRETE_INSTRUCTION | 2497 #undef DECLARE_CONCRETE_INSTRUCTION | 
| 2479 | 2498 | 
| 2480 } } // namespace v8::internal | 2499 } } // namespace v8::internal | 
| 2481 | 2500 | 
| 2482 #endif // V8_IA32_LITHIUM_IA32_H_ | 2501 #endif // V8_IA32_LITHIUM_IA32_H_ | 
| OLD | NEW |