| 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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1405     enum Direction { | 1405     enum Direction { | 
| 1406       kPreIncrement, | 1406       kPreIncrement, | 
| 1407       kPostIncrement, | 1407       kPostIncrement, | 
| 1408       kPreDecrement, | 1408       kPreDecrement, | 
| 1409       kPostDecrement | 1409       kPostDecrement | 
| 1410     }; | 1410     }; | 
| 1411 | 1411 | 
| 1412     LoopBuilder(HGraphBuilder* builder, | 1412     LoopBuilder(HGraphBuilder* builder, | 
| 1413                 HValue* context, | 1413                 HValue* context, | 
| 1414                 Direction direction); | 1414                 Direction direction); | 
|  | 1415     LoopBuilder(HGraphBuilder* builder, | 
|  | 1416                 HValue* context, | 
|  | 1417                 Direction direction, | 
|  | 1418                 HValue* increment_amount); | 
|  | 1419 | 
| 1415     ~LoopBuilder() { | 1420     ~LoopBuilder() { | 
| 1416       ASSERT(finished_); | 1421       ASSERT(finished_); | 
| 1417     } | 1422     } | 
| 1418 | 1423 | 
| 1419     HValue* BeginBody( | 1424     HValue* BeginBody( | 
| 1420         HValue* initial, | 1425         HValue* initial, | 
| 1421         HValue* terminating, | 1426         HValue* terminating, | 
| 1422         Token::Value token); | 1427         Token::Value token); | 
|  | 1428 | 
|  | 1429     void Break(); | 
|  | 1430 | 
| 1423     void EndBody(); | 1431     void EndBody(); | 
| 1424 | 1432 | 
| 1425    private: | 1433    private: | 
| 1426     Zone* zone() { return builder_->zone(); } | 1434     Zone* zone() { return builder_->zone(); } | 
| 1427 | 1435 | 
| 1428     HGraphBuilder* builder_; | 1436     HGraphBuilder* builder_; | 
| 1429     HValue* context_; | 1437     HValue* context_; | 
|  | 1438     HValue* increment_amount_; | 
| 1430     HInstruction* increment_; | 1439     HInstruction* increment_; | 
| 1431     HPhi* phi_; | 1440     HPhi* phi_; | 
| 1432     HBasicBlock* header_block_; | 1441     HBasicBlock* header_block_; | 
| 1433     HBasicBlock* body_block_; | 1442     HBasicBlock* body_block_; | 
| 1434     HBasicBlock* exit_block_; | 1443     HBasicBlock* exit_block_; | 
|  | 1444     HBasicBlock* exit_trampoline_block_; | 
| 1435     Direction direction_; | 1445     Direction direction_; | 
| 1436     bool finished_; | 1446     bool finished_; | 
| 1437   }; | 1447   }; | 
| 1438 | 1448 | 
| 1439   HValue* BuildNewElementsCapacity(HValue* old_capacity); | 1449   HValue* BuildNewElementsCapacity(HValue* old_capacity); | 
| 1440 | 1450 | 
| 1441   void BuildNewSpaceArrayCheck(HValue* length, | 1451   void BuildNewSpaceArrayCheck(HValue* length, | 
| 1442                                ElementsKind kind); | 1452                                ElementsKind kind); | 
| 1443 | 1453 | 
| 1444   class JSArrayBuilder V8_FINAL { | 1454   class JSArrayBuilder V8_FINAL { | 
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2308   } | 2318   } | 
| 2309 | 2319 | 
| 2310  private: | 2320  private: | 
| 2311   HGraphBuilder* builder_; | 2321   HGraphBuilder* builder_; | 
| 2312 }; | 2322 }; | 
| 2313 | 2323 | 
| 2314 | 2324 | 
| 2315 } }  // namespace v8::internal | 2325 } }  // namespace v8::internal | 
| 2316 | 2326 | 
| 2317 #endif  // V8_HYDROGEN_H_ | 2327 #endif  // V8_HYDROGEN_H_ | 
| OLD | NEW | 
|---|