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 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 public: | 1424 public: |
1425 HEnterInlined(Handle<JSFunction> closure, | 1425 HEnterInlined(Handle<JSFunction> closure, |
1426 int arguments_count, | 1426 int arguments_count, |
1427 FunctionLiteral* function, | 1427 FunctionLiteral* function, |
1428 CallKind call_kind, | 1428 CallKind call_kind, |
1429 InliningKind inlining_kind, | 1429 InliningKind inlining_kind, |
1430 Variable* arguments_var, | 1430 Variable* arguments_var, |
1431 ZoneList<HValue*>* arguments_values) | 1431 ZoneList<HValue*>* arguments_values) |
1432 : closure_(closure), | 1432 : closure_(closure), |
1433 arguments_count_(arguments_count), | 1433 arguments_count_(arguments_count), |
| 1434 arguments_pushed_(false), |
1434 function_(function), | 1435 function_(function), |
1435 call_kind_(call_kind), | 1436 call_kind_(call_kind), |
1436 inlining_kind_(inlining_kind), | 1437 inlining_kind_(inlining_kind), |
1437 arguments_var_(arguments_var), | 1438 arguments_var_(arguments_var), |
1438 arguments_values_(arguments_values) { | 1439 arguments_values_(arguments_values) { |
1439 } | 1440 } |
1440 | 1441 |
1441 virtual void PrintDataTo(StringStream* stream); | 1442 virtual void PrintDataTo(StringStream* stream); |
1442 | 1443 |
1443 Handle<JSFunction> closure() const { return closure_; } | 1444 Handle<JSFunction> closure() const { return closure_; } |
1444 int arguments_count() const { return arguments_count_; } | 1445 int arguments_count() const { return arguments_count_; } |
| 1446 bool arguments_pushed() const { return arguments_pushed_; } |
| 1447 void set_arguments_pushed() { arguments_pushed_ = true; } |
1445 FunctionLiteral* function() const { return function_; } | 1448 FunctionLiteral* function() const { return function_; } |
1446 CallKind call_kind() const { return call_kind_; } | 1449 CallKind call_kind() const { return call_kind_; } |
1447 InliningKind inlining_kind() const { return inlining_kind_; } | 1450 InliningKind inlining_kind() const { return inlining_kind_; } |
1448 | 1451 |
1449 virtual Representation RequiredInputRepresentation(int index) { | 1452 virtual Representation RequiredInputRepresentation(int index) { |
1450 return Representation::None(); | 1453 return Representation::None(); |
1451 } | 1454 } |
1452 | 1455 |
1453 Variable* arguments_var() { return arguments_var_; } | 1456 Variable* arguments_var() { return arguments_var_; } |
1454 ZoneList<HValue*>* arguments_values() { return arguments_values_; } | 1457 ZoneList<HValue*>* arguments_values() { return arguments_values_; } |
1455 | 1458 |
1456 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) | 1459 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) |
1457 | 1460 |
1458 private: | 1461 private: |
1459 Handle<JSFunction> closure_; | 1462 Handle<JSFunction> closure_; |
1460 int arguments_count_; | 1463 int arguments_count_; |
| 1464 bool arguments_pushed_; |
1461 FunctionLiteral* function_; | 1465 FunctionLiteral* function_; |
1462 CallKind call_kind_; | 1466 CallKind call_kind_; |
1463 InliningKind inlining_kind_; | 1467 InliningKind inlining_kind_; |
1464 Variable* arguments_var_; | 1468 Variable* arguments_var_; |
1465 ZoneList<HValue*>* arguments_values_; | 1469 ZoneList<HValue*>* arguments_values_; |
1466 }; | 1470 }; |
1467 | 1471 |
1468 | 1472 |
1469 class HLeaveInlined: public HTemplateInstruction<0> { | 1473 class HLeaveInlined: public HTemplateInstruction<0> { |
1470 public: | 1474 public: |
(...skipping 3814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5285 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 5289 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
5286 }; | 5290 }; |
5287 | 5291 |
5288 | 5292 |
5289 #undef DECLARE_INSTRUCTION | 5293 #undef DECLARE_INSTRUCTION |
5290 #undef DECLARE_CONCRETE_INSTRUCTION | 5294 #undef DECLARE_CONCRETE_INSTRUCTION |
5291 | 5295 |
5292 } } // namespace v8::internal | 5296 } } // namespace v8::internal |
5293 | 5297 |
5294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5298 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |