OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 LOperand* context() { return InputAt(0); } | 1324 LOperand* context() { return InputAt(0); } |
1325 }; | 1325 }; |
1326 | 1326 |
1327 | 1327 |
1328 class LGlobalObject: public LTemplateInstruction<1, 0, 0> { | 1328 class LGlobalObject: public LTemplateInstruction<1, 0, 0> { |
1329 public: | 1329 public: |
1330 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object") | 1330 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object") |
1331 }; | 1331 }; |
1332 | 1332 |
1333 | 1333 |
1334 class LGlobalReceiver: public LTemplateInstruction<1, 0, 0> { | 1334 class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> { |
1335 public: | 1335 public: |
| 1336 explicit LGlobalReceiver(LOperand* global_object) { |
| 1337 inputs_[0] = global_object; |
| 1338 } |
| 1339 |
1336 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver") | 1340 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver") |
| 1341 |
| 1342 LOperand* global() { return InputAt(0); } |
1337 }; | 1343 }; |
1338 | 1344 |
1339 | 1345 |
1340 class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> { | 1346 class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> { |
1341 public: | 1347 public: |
1342 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") | 1348 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") |
1343 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) | 1349 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) |
1344 | 1350 |
1345 virtual void PrintDataTo(StringStream* stream); | 1351 virtual void PrintDataTo(StringStream* stream); |
1346 | 1352 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2101 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2096 }; | 2102 }; |
2097 | 2103 |
2098 #undef DECLARE_HYDROGEN_ACCESSOR | 2104 #undef DECLARE_HYDROGEN_ACCESSOR |
2099 #undef DECLARE_INSTRUCTION | 2105 #undef DECLARE_INSTRUCTION |
2100 #undef DECLARE_CONCRETE_INSTRUCTION | 2106 #undef DECLARE_CONCRETE_INSTRUCTION |
2101 | 2107 |
2102 } } // namespace v8::int | 2108 } } // namespace v8::int |
2103 | 2109 |
2104 #endif // V8_X64_LITHIUM_X64_H_ | 2110 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |