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 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 virtual void CompileToNative(LCodeGen* generator); | 1335 virtual void CompileToNative(LCodeGen* generator); |
1336 virtual const char* Mnemonic() const; | 1336 virtual const char* Mnemonic() const; |
1337 | 1337 |
1338 Token::Value op() const { return op_; } | 1338 Token::Value op() const { return op_; } |
1339 | 1339 |
1340 private: | 1340 private: |
1341 Token::Value op_; | 1341 Token::Value op_; |
1342 }; | 1342 }; |
1343 | 1343 |
1344 | 1344 |
1345 class LReturn: public LTemplateInstruction<0, 1, 0> { | 1345 class LReturn: public LTemplateInstruction<0, 2, 0> { |
1346 public: | 1346 public: |
1347 explicit LReturn(LOperand* value) { | 1347 explicit LReturn(LOperand* value, LOperand* context) { |
1348 inputs_[0] = value; | 1348 inputs_[0] = value; |
| 1349 inputs_[1] = context; |
1349 } | 1350 } |
1350 | 1351 |
1351 DECLARE_CONCRETE_INSTRUCTION(Return, "return") | 1352 DECLARE_CONCRETE_INSTRUCTION(Return, "return") |
1352 }; | 1353 }; |
1353 | 1354 |
1354 | 1355 |
1355 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { | 1356 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { |
1356 public: | 1357 public: |
1357 explicit LLoadNamedField(LOperand* object) { | 1358 explicit LLoadNamedField(LOperand* object) { |
1358 inputs_[0] = object; | 1359 inputs_[0] = object; |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2718 | 2719 |
2719 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2720 }; | 2721 }; |
2721 | 2722 |
2722 #undef DECLARE_HYDROGEN_ACCESSOR | 2723 #undef DECLARE_HYDROGEN_ACCESSOR |
2723 #undef DECLARE_CONCRETE_INSTRUCTION | 2724 #undef DECLARE_CONCRETE_INSTRUCTION |
2724 | 2725 |
2725 } } // namespace v8::internal | 2726 } } // namespace v8::internal |
2726 | 2727 |
2727 #endif // V8_IA32_LITHIUM_IA32_H_ | 2728 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |