Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: src/hydrogen-instructions.h

Issue 11028027: Revert trunk to bleeding_edge at r12484 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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),
1435 function_(function), 1434 function_(function),
1436 call_kind_(call_kind), 1435 call_kind_(call_kind),
1437 inlining_kind_(inlining_kind), 1436 inlining_kind_(inlining_kind),
1438 arguments_var_(arguments_var), 1437 arguments_var_(arguments_var),
1439 arguments_values_(arguments_values) { 1438 arguments_values_(arguments_values) {
1440 } 1439 }
1441 1440
1442 virtual void PrintDataTo(StringStream* stream); 1441 virtual void PrintDataTo(StringStream* stream);
1443 1442
1444 Handle<JSFunction> closure() const { return closure_; } 1443 Handle<JSFunction> closure() const { return closure_; }
1445 int arguments_count() const { return arguments_count_; } 1444 int arguments_count() const { return arguments_count_; }
1446 bool arguments_pushed() const { return arguments_pushed_; }
1447 void set_arguments_pushed() { arguments_pushed_ = true; }
1448 FunctionLiteral* function() const { return function_; } 1445 FunctionLiteral* function() const { return function_; }
1449 CallKind call_kind() const { return call_kind_; } 1446 CallKind call_kind() const { return call_kind_; }
1450 InliningKind inlining_kind() const { return inlining_kind_; } 1447 InliningKind inlining_kind() const { return inlining_kind_; }
1451 1448
1452 virtual Representation RequiredInputRepresentation(int index) { 1449 virtual Representation RequiredInputRepresentation(int index) {
1453 return Representation::None(); 1450 return Representation::None();
1454 } 1451 }
1455 1452
1456 Variable* arguments_var() { return arguments_var_; } 1453 Variable* arguments_var() { return arguments_var_; }
1457 ZoneList<HValue*>* arguments_values() { return arguments_values_; } 1454 ZoneList<HValue*>* arguments_values() { return arguments_values_; }
1458 1455
1459 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) 1456 DECLARE_CONCRETE_INSTRUCTION(EnterInlined)
1460 1457
1461 private: 1458 private:
1462 Handle<JSFunction> closure_; 1459 Handle<JSFunction> closure_;
1463 int arguments_count_; 1460 int arguments_count_;
1464 bool arguments_pushed_;
1465 FunctionLiteral* function_; 1461 FunctionLiteral* function_;
1466 CallKind call_kind_; 1462 CallKind call_kind_;
1467 InliningKind inlining_kind_; 1463 InliningKind inlining_kind_;
1468 Variable* arguments_var_; 1464 Variable* arguments_var_;
1469 ZoneList<HValue*>* arguments_values_; 1465 ZoneList<HValue*>* arguments_values_;
1470 }; 1466 };
1471 1467
1472 1468
1473 class HLeaveInlined: public HTemplateInstruction<0> { 1469 class HLeaveInlined: public HTemplateInstruction<0> {
1474 public: 1470 public:
1475 HLeaveInlined() { } 1471 explicit HLeaveInlined(bool arguments_pushed)
1472 : arguments_pushed_(arguments_pushed) { }
1476 1473
1477 virtual Representation RequiredInputRepresentation(int index) { 1474 virtual Representation RequiredInputRepresentation(int index) {
1478 return Representation::None(); 1475 return Representation::None();
1479 } 1476 }
1480 1477
1478 bool arguments_pushed() {
1479 return arguments_pushed_;
1480 }
1481
1481 DECLARE_CONCRETE_INSTRUCTION(LeaveInlined) 1482 DECLARE_CONCRETE_INSTRUCTION(LeaveInlined)
1483
1484 private:
1485 bool arguments_pushed_;
1482 }; 1486 };
1483 1487
1484 1488
1485 class HPushArgument: public HUnaryOperation { 1489 class HPushArgument: public HUnaryOperation {
1486 public: 1490 public:
1487 explicit HPushArgument(HValue* value) : HUnaryOperation(value) { 1491 explicit HPushArgument(HValue* value) : HUnaryOperation(value) {
1488 set_representation(Representation::Tagged()); 1492 set_representation(Representation::Tagged());
1489 } 1493 }
1490 1494
1491 virtual Representation RequiredInputRepresentation(int index) { 1495 virtual Representation RequiredInputRepresentation(int index) {
(...skipping 3028 matching lines...) Expand 10 before | Expand all | Expand 10 after
4520 class HStoreKeyedFastDoubleElement 4524 class HStoreKeyedFastDoubleElement
4521 : public HTemplateInstruction<3>, public ArrayInstructionInterface { 4525 : public HTemplateInstruction<3>, public ArrayInstructionInterface {
4522 public: 4526 public:
4523 HStoreKeyedFastDoubleElement(HValue* elements, 4527 HStoreKeyedFastDoubleElement(HValue* elements,
4524 HValue* key, 4528 HValue* key,
4525 HValue* val) 4529 HValue* val)
4526 : index_offset_(0), is_dehoisted_(false) { 4530 : index_offset_(0), is_dehoisted_(false) {
4527 SetOperandAt(0, elements); 4531 SetOperandAt(0, elements);
4528 SetOperandAt(1, key); 4532 SetOperandAt(1, key);
4529 SetOperandAt(2, val); 4533 SetOperandAt(2, val);
4530 SetFlag(kDeoptimizeOnUndefined);
4531 SetGVNFlag(kChangesDoubleArrayElements); 4534 SetGVNFlag(kChangesDoubleArrayElements);
4532 } 4535 }
4533 4536
4534 virtual Representation RequiredInputRepresentation(int index) { 4537 virtual Representation RequiredInputRepresentation(int index) {
4535 if (index == 1) { 4538 if (index == 1) {
4536 return Representation::Integer32(); 4539 return Representation::Integer32();
4537 } else if (index == 2) { 4540 } else if (index == 2) {
4538 return Representation::Double(); 4541 return Representation::Double();
4539 } else { 4542 } else {
4540 return Representation::Tagged(); 4543 return Representation::Tagged();
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
5282 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5285 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5283 }; 5286 };
5284 5287
5285 5288
5286 #undef DECLARE_INSTRUCTION 5289 #undef DECLARE_INSTRUCTION
5287 #undef DECLARE_CONCRETE_INSTRUCTION 5290 #undef DECLARE_CONCRETE_INSTRUCTION
5288 5291
5289 } } // namespace v8::internal 5292 } } // namespace v8::internal
5290 5293
5291 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698