| 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 5167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5178 } | 5178 } |
| 5179 | 5179 |
| 5180 | 5180 |
| 5181 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf( | 5181 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf( |
| 5182 int argument_count, | 5182 int argument_count, |
| 5183 int ast_id) { | 5183 int ast_id) { |
| 5184 BAILOUT("inlined runtime function: IsStringWrapperSafeForDefaultValueOf"); | 5184 BAILOUT("inlined runtime function: IsStringWrapperSafeForDefaultValueOf"); |
| 5185 } | 5185 } |
| 5186 | 5186 |
| 5187 | 5187 |
| 5188 // Support for construct call checks. | 5188 // Support for construct call checks. |
| 5189 void HGraphBuilder::GenerateIsConstructCall(int argument_count, int ast_id) { | 5189 void HGraphBuilder::GenerateIsConstructCall(int argument_count, int ast_id) { |
| 5190 BAILOUT("inlined runtime function: IsConstructCall"); | 5190 ASSERT(argument_count == 0); |
| 5191 ast_context()->ReturnInstruction(new HIsConstructCall, ast_id); |
| 5191 } | 5192 } |
| 5192 | 5193 |
| 5193 | 5194 |
| 5194 // Support for arguments.length and arguments[?]. | 5195 // Support for arguments.length and arguments[?]. |
| 5195 void HGraphBuilder::GenerateArgumentsLength(int argument_count, int ast_id) { | 5196 void HGraphBuilder::GenerateArgumentsLength(int argument_count, int ast_id) { |
| 5196 ASSERT(argument_count == 0); | 5197 ASSERT(argument_count == 0); |
| 5197 HInstruction* elements = AddInstruction(new HArgumentsElements); | 5198 HInstruction* elements = AddInstruction(new HArgumentsElements); |
| 5198 HArgumentsLength* result = new HArgumentsLength(elements); | 5199 HArgumentsLength* result = new HArgumentsLength(elements); |
| 5199 ast_context()->ReturnInstruction(result, ast_id); | 5200 ast_context()->ReturnInstruction(result, ast_id); |
| 5200 } | 5201 } |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5924 } | 5925 } |
| 5925 } | 5926 } |
| 5926 | 5927 |
| 5927 #ifdef DEBUG | 5928 #ifdef DEBUG |
| 5928 if (graph_ != NULL) graph_->Verify(); | 5929 if (graph_ != NULL) graph_->Verify(); |
| 5929 if (allocator_ != NULL) allocator_->Verify(); | 5930 if (allocator_ != NULL) allocator_->Verify(); |
| 5930 #endif | 5931 #endif |
| 5931 } | 5932 } |
| 5932 | 5933 |
| 5933 } } // namespace v8::internal | 5934 } } // namespace v8::internal |
| OLD | NEW |