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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } | 326 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } |
327 HConstant* GetConstant0(); | 327 HConstant* GetConstant0(); |
328 HConstant* GetConstant1(); | 328 HConstant* GetConstant1(); |
329 HConstant* GetConstantMinus1(); | 329 HConstant* GetConstantMinus1(); |
330 HConstant* GetConstantTrue(); | 330 HConstant* GetConstantTrue(); |
331 HConstant* GetConstantFalse(); | 331 HConstant* GetConstantFalse(); |
332 HConstant* GetConstantHole(); | 332 HConstant* GetConstantHole(); |
333 HConstant* GetConstantNull(); | 333 HConstant* GetConstantNull(); |
334 HConstant* GetInvalidContext(); | 334 HConstant* GetInvalidContext(); |
335 | 335 |
336 bool IsStandardConstant(HConstant* constant); | |
337 | |
338 HBasicBlock* CreateBasicBlock(); | 336 HBasicBlock* CreateBasicBlock(); |
339 HArgumentsObject* GetArgumentsObject() const { | 337 HArgumentsObject* GetArgumentsObject() const { |
340 return arguments_object_.get(); | 338 return arguments_object_.get(); |
341 } | 339 } |
342 | 340 |
343 void SetArgumentsObject(HArgumentsObject* object) { | 341 void SetArgumentsObject(HArgumentsObject* object) { |
344 arguments_object_.set(object); | 342 arguments_object_.set(object); |
345 } | 343 } |
346 | 344 |
347 int GetMaximumValueID() const { return values_.length(); } | 345 int GetMaximumValueID() const { return values_.length(); } |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 explicit HOptimizedGraphBuilder(CompilationInfo* info); | 1485 explicit HOptimizedGraphBuilder(CompilationInfo* info); |
1488 | 1486 |
1489 virtual bool BuildGraph(); | 1487 virtual bool BuildGraph(); |
1490 | 1488 |
1491 // Simple accessors. | 1489 // Simple accessors. |
1492 BreakAndContinueScope* break_scope() const { return break_scope_; } | 1490 BreakAndContinueScope* break_scope() const { return break_scope_; } |
1493 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } | 1491 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } |
1494 | 1492 |
1495 bool inline_bailout() { return inline_bailout_; } | 1493 bool inline_bailout() { return inline_bailout_; } |
1496 | 1494 |
1497 enum SoftDeoptimizeMode { | 1495 void AddSoftDeoptimize(); |
1498 MUST_EMIT_SOFT_DEOPT, | |
1499 CAN_OMIT_SOFT_DEOPT | |
1500 }; | |
1501 | |
1502 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); | |
1503 | 1496 |
1504 void Bailout(const char* reason); | 1497 void Bailout(const char* reason); |
1505 | 1498 |
1506 HBasicBlock* CreateJoin(HBasicBlock* first, | 1499 HBasicBlock* CreateJoin(HBasicBlock* first, |
1507 HBasicBlock* second, | 1500 HBasicBlock* second, |
1508 BailoutId join_id); | 1501 BailoutId join_id); |
1509 | 1502 |
1510 FunctionState* function_state() const { return function_state_; } | 1503 FunctionState* function_state() const { return function_state_; } |
1511 | 1504 |
1512 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 1505 void VisitDeclarations(ZoneList<Declaration*>* declarations); |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2102 EmbeddedVector<char, 64> filename_; | 2095 EmbeddedVector<char, 64> filename_; |
2103 HeapStringAllocator string_allocator_; | 2096 HeapStringAllocator string_allocator_; |
2104 StringStream trace_; | 2097 StringStream trace_; |
2105 int indent_; | 2098 int indent_; |
2106 }; | 2099 }; |
2107 | 2100 |
2108 | 2101 |
2109 } } // namespace v8::internal | 2102 } } // namespace v8::internal |
2110 | 2103 |
2111 #endif // V8_HYDROGEN_H_ | 2104 #endif // V8_HYDROGEN_H_ |
OLD | NEW |