| 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 Representation representation = Representation::Tagged()); | 1111 Representation representation = Representation::Tagged()); |
| 1112 | 1112 |
| 1113 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); | 1113 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); |
| 1114 | 1114 |
| 1115 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); | 1115 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); |
| 1116 | 1116 |
| 1117 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); | 1117 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
| 1118 | 1118 |
| 1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); | 1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); |
| 1120 | 1120 |
| 1121 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); |
| 1122 |
| 1123 void PushAndAdd(HInstruction* instr); |
| 1124 |
| 1121 enum SoftDeoptimizeMode { | 1125 enum SoftDeoptimizeMode { |
| 1122 MUST_EMIT_SOFT_DEOPT, | 1126 MUST_EMIT_SOFT_DEOPT, |
| 1123 CAN_OMIT_SOFT_DEOPT | 1127 CAN_OMIT_SOFT_DEOPT |
| 1124 }; | 1128 }; |
| 1125 | 1129 |
| 1126 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); | 1130 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); |
| 1127 | 1131 |
| 1128 class IfBuilder { | 1132 class IfBuilder { |
| 1129 public: | 1133 public: |
| 1130 explicit IfBuilder(HGraphBuilder* builder, | 1134 explicit IfBuilder(HGraphBuilder* builder, |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1659 HBasicBlock* false_block); | 1663 HBasicBlock* false_block); |
| 1660 | 1664 |
| 1661 // Visit an argument subexpression and emit a push to the outgoing arguments. | 1665 // Visit an argument subexpression and emit a push to the outgoing arguments. |
| 1662 void VisitArgument(Expression* expr); | 1666 void VisitArgument(Expression* expr); |
| 1663 | 1667 |
| 1664 void VisitArgumentList(ZoneList<Expression*>* arguments); | 1668 void VisitArgumentList(ZoneList<Expression*>* arguments); |
| 1665 | 1669 |
| 1666 // Visit a list of expressions from left to right, each in a value context. | 1670 // Visit a list of expressions from left to right, each in a value context. |
| 1667 void VisitExpressions(ZoneList<Expression*>* exprs); | 1671 void VisitExpressions(ZoneList<Expression*>* exprs); |
| 1668 | 1672 |
| 1669 void PushAndAdd(HInstruction* instr); | |
| 1670 | |
| 1671 // Remove the arguments from the bailout environment and emit instructions | 1673 // Remove the arguments from the bailout environment and emit instructions |
| 1672 // to push them as outgoing parameters. | 1674 // to push them as outgoing parameters. |
| 1673 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); | 1675 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
| 1674 | 1676 |
| 1675 void SetUpScope(Scope* scope); | 1677 void SetUpScope(Scope* scope); |
| 1676 virtual void VisitStatements(ZoneList<Statement*>* statements); | 1678 virtual void VisitStatements(ZoneList<Statement*>* statements); |
| 1677 | 1679 |
| 1678 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 1680 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 1679 AST_NODE_LIST(DECLARE_VISIT) | 1681 AST_NODE_LIST(DECLARE_VISIT) |
| 1680 #undef DECLARE_VISIT | 1682 #undef DECLARE_VISIT |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 EmbeddedVector<char, 64> filename_; | 2098 EmbeddedVector<char, 64> filename_; |
| 2097 HeapStringAllocator string_allocator_; | 2099 HeapStringAllocator string_allocator_; |
| 2098 StringStream trace_; | 2100 StringStream trace_; |
| 2099 int indent_; | 2101 int indent_; |
| 2100 }; | 2102 }; |
| 2101 | 2103 |
| 2102 | 2104 |
| 2103 } } // namespace v8::internal | 2105 } } // namespace v8::internal |
| 2104 | 2106 |
| 2105 #endif // V8_HYDROGEN_H_ | 2107 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |