| 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 3081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3092 if (FLAG_fold_constants && value()->IsConstant()) { | 3092 if (FLAG_fold_constants && value()->IsConstant()) { |
| 3093 *block = HConstant::cast(value())->HasStringValue() | 3093 *block = HConstant::cast(value())->HasStringValue() |
| 3094 ? FirstSuccessor() : SecondSuccessor(); | 3094 ? FirstSuccessor() : SecondSuccessor(); |
| 3095 return true; | 3095 return true; |
| 3096 } | 3096 } |
| 3097 *block = NULL; | 3097 *block = NULL; |
| 3098 return false; | 3098 return false; |
| 3099 } | 3099 } |
| 3100 | 3100 |
| 3101 | 3101 |
| 3102 bool HIsSmiAndBranch::KnownSuccessorBlock(HBasicBlock** block) { | |
| 3103 if (FLAG_fold_constants && value()->IsConstant()) { | |
| 3104 *block = HConstant::cast(value())->HasSmiValue() | |
| 3105 ? FirstSuccessor() : SecondSuccessor(); | |
| 3106 return true; | |
| 3107 } | |
| 3108 *block = NULL; | |
| 3109 return false; | |
| 3110 } | |
| 3111 | |
| 3112 | |
| 3113 bool HIsUndetectableAndBranch::KnownSuccessorBlock(HBasicBlock** block) { | 3102 bool HIsUndetectableAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
| 3114 if (FLAG_fold_constants && value()->IsConstant()) { | 3103 if (FLAG_fold_constants && value()->IsConstant()) { |
| 3115 *block = HConstant::cast(value())->IsUndetectable() | 3104 *block = HConstant::cast(value())->IsUndetectable() |
| 3116 ? FirstSuccessor() : SecondSuccessor(); | 3105 ? FirstSuccessor() : SecondSuccessor(); |
| 3117 return true; | 3106 return true; |
| 3118 } | 3107 } |
| 3119 *block = NULL; | 3108 *block = NULL; |
| 3120 return false; | 3109 return false; |
| 3121 } | 3110 } |
| 3122 | 3111 |
| (...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4543 break; | 4532 break; |
| 4544 case kExternalMemory: | 4533 case kExternalMemory: |
| 4545 stream->Add("[external-memory]"); | 4534 stream->Add("[external-memory]"); |
| 4546 break; | 4535 break; |
| 4547 } | 4536 } |
| 4548 | 4537 |
| 4549 stream->Add("@%d", offset()); | 4538 stream->Add("@%d", offset()); |
| 4550 } | 4539 } |
| 4551 | 4540 |
| 4552 } } // namespace v8::internal | 4541 } } // namespace v8::internal |
| OLD | NEW |