| 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 Type type_; | 1346 Type type_; |
| 1347 }; | 1347 }; |
| 1348 | 1348 |
| 1349 | 1349 |
| 1350 class HEnterInlined: public HTemplateInstruction<0> { | 1350 class HEnterInlined: public HTemplateInstruction<0> { |
| 1351 public: | 1351 public: |
| 1352 HEnterInlined(Handle<JSFunction> closure, | 1352 HEnterInlined(Handle<JSFunction> closure, |
| 1353 int arguments_count, | 1353 int arguments_count, |
| 1354 FunctionLiteral* function, | 1354 FunctionLiteral* function, |
| 1355 CallKind call_kind, | 1355 CallKind call_kind, |
| 1356 bool is_construct) | 1356 bool is_construct, |
| 1357 Variable* arguments) |
| 1357 : closure_(closure), | 1358 : closure_(closure), |
| 1358 arguments_count_(arguments_count), | 1359 arguments_count_(arguments_count), |
| 1359 function_(function), | 1360 function_(function), |
| 1360 call_kind_(call_kind), | 1361 call_kind_(call_kind), |
| 1361 is_construct_(is_construct) { | 1362 is_construct_(is_construct), |
| 1363 arguments_(arguments) { |
| 1362 } | 1364 } |
| 1363 | 1365 |
| 1364 virtual void PrintDataTo(StringStream* stream); | 1366 virtual void PrintDataTo(StringStream* stream); |
| 1365 | 1367 |
| 1366 Handle<JSFunction> closure() const { return closure_; } | 1368 Handle<JSFunction> closure() const { return closure_; } |
| 1367 int arguments_count() const { return arguments_count_; } | 1369 int arguments_count() const { return arguments_count_; } |
| 1368 FunctionLiteral* function() const { return function_; } | 1370 FunctionLiteral* function() const { return function_; } |
| 1369 CallKind call_kind() const { return call_kind_; } | 1371 CallKind call_kind() const { return call_kind_; } |
| 1370 bool is_construct() const { return is_construct_; } | 1372 bool is_construct() const { return is_construct_; } |
| 1371 | 1373 |
| 1372 virtual Representation RequiredInputRepresentation(int index) { | 1374 virtual Representation RequiredInputRepresentation(int index) { |
| 1373 return Representation::None(); | 1375 return Representation::None(); |
| 1374 } | 1376 } |
| 1375 | 1377 |
| 1378 Variable* arguments() { return arguments_; } |
| 1379 |
| 1376 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) | 1380 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) |
| 1377 | 1381 |
| 1378 private: | 1382 private: |
| 1379 Handle<JSFunction> closure_; | 1383 Handle<JSFunction> closure_; |
| 1380 int arguments_count_; | 1384 int arguments_count_; |
| 1381 FunctionLiteral* function_; | 1385 FunctionLiteral* function_; |
| 1382 CallKind call_kind_; | 1386 CallKind call_kind_; |
| 1383 bool is_construct_; | 1387 bool is_construct_; |
| 1388 Variable* arguments_; |
| 1384 }; | 1389 }; |
| 1385 | 1390 |
| 1386 | 1391 |
| 1387 class HLeaveInlined: public HTemplateInstruction<0> { | 1392 class HLeaveInlined: public HTemplateInstruction<0> { |
| 1388 public: | 1393 public: |
| 1389 HLeaveInlined() {} | 1394 HLeaveInlined() {} |
| 1390 | 1395 |
| 1391 virtual Representation RequiredInputRepresentation(int index) { | 1396 virtual Representation RequiredInputRepresentation(int index) { |
| 1392 return Representation::None(); | 1397 return Representation::None(); |
| 1393 } | 1398 } |
| (...skipping 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4849 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4854 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 4850 }; | 4855 }; |
| 4851 | 4856 |
| 4852 | 4857 |
| 4853 #undef DECLARE_INSTRUCTION | 4858 #undef DECLARE_INSTRUCTION |
| 4854 #undef DECLARE_CONCRETE_INSTRUCTION | 4859 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4855 | 4860 |
| 4856 } } // namespace v8::internal | 4861 } } // namespace v8::internal |
| 4857 | 4862 |
| 4858 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |