OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 5268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5279 ast_context()->ReturnInstruction(test, call->id()); | 5279 ast_context()->ReturnInstruction(test, call->id()); |
5280 } | 5280 } |
5281 | 5281 |
5282 | 5282 |
5283 void HGraphBuilder::GenerateIsNonNegativeSmi(CallRuntime* call) { | 5283 void HGraphBuilder::GenerateIsNonNegativeSmi(CallRuntime* call) { |
5284 return Bailout("inlined runtime function: IsNonNegativeSmi"); | 5284 return Bailout("inlined runtime function: IsNonNegativeSmi"); |
5285 } | 5285 } |
5286 | 5286 |
5287 | 5287 |
5288 void HGraphBuilder::GenerateIsUndetectableObject(CallRuntime* call) { | 5288 void HGraphBuilder::GenerateIsUndetectableObject(CallRuntime* call) { |
5289 return Bailout("inlined runtime function: IsUndetectableObject"); | 5289 ASSERT(call->arguments()->length() == 1); |
| 5290 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 5291 HValue* value = Pop(); |
| 5292 ast_context()->ReturnInstruction(new(zone()) HIsUndetectable(value), |
| 5293 call->id()); |
5290 } | 5294 } |
5291 | 5295 |
5292 | 5296 |
5293 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf( | 5297 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf( |
5294 CallRuntime* call) { | 5298 CallRuntime* call) { |
5295 return Bailout( | 5299 return Bailout( |
5296 "inlined runtime function: IsStringWrapperSafeForDefaultValueOf"); | 5300 "inlined runtime function: IsStringWrapperSafeForDefaultValueOf"); |
5297 } | 5301 } |
5298 | 5302 |
5299 | 5303 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6117 } | 6121 } |
6118 } | 6122 } |
6119 | 6123 |
6120 #ifdef DEBUG | 6124 #ifdef DEBUG |
6121 if (graph_ != NULL) graph_->Verify(); | 6125 if (graph_ != NULL) graph_->Verify(); |
6122 if (allocator_ != NULL) allocator_->Verify(); | 6126 if (allocator_ != NULL) allocator_->Verify(); |
6123 #endif | 6127 #endif |
6124 } | 6128 } |
6125 | 6129 |
6126 } } // namespace v8::internal | 6130 } } // namespace v8::internal |
OLD | NEW |