| 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 6147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6158 PrintF("Inlining builtin "); | 6158 PrintF("Inlining builtin "); |
| 6159 expr->target()->ShortPrint(); | 6159 expr->target()->ShortPrint(); |
| 6160 PrintF("\n"); | 6160 PrintF("\n"); |
| 6161 } | 6161 } |
| 6162 return; | 6162 return; |
| 6163 } | 6163 } |
| 6164 | 6164 |
| 6165 if (TryInlineCall(expr, true)) { // Drop function from environment. | 6165 if (TryInlineCall(expr, true)) { // Drop function from environment. |
| 6166 return; | 6166 return; |
| 6167 } else { | 6167 } else { |
| 6168 call = PreProcessCall(new(zone()) HInvokeFunction(context, | 6168 call = PreProcessCall( |
| 6169 function, | 6169 new(zone()) HInvokeFunction(context, |
| 6170 argument_count)); | 6170 function, |
| 6171 expr->target(), |
| 6172 argument_count)); |
| 6171 Drop(1); // The function. | 6173 Drop(1); // The function. |
| 6172 } | 6174 } |
| 6173 | 6175 |
| 6174 } else { | 6176 } else { |
| 6175 CHECK_ALIVE(VisitForValue(expr->expression())); | 6177 CHECK_ALIVE(VisitForValue(expr->expression())); |
| 6176 HValue* function = Top(); | 6178 HValue* function = Top(); |
| 6177 HValue* context = environment()->LookupContext(); | 6179 HValue* context = environment()->LookupContext(); |
| 6178 HGlobalObject* global_object = new(zone()) HGlobalObject(context); | 6180 HGlobalObject* global_object = new(zone()) HGlobalObject(context); |
| 6179 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object); | 6181 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object); |
| 6180 AddInstruction(global_object); | 6182 AddInstruction(global_object); |
| (...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8366 } | 8368 } |
| 8367 } | 8369 } |
| 8368 | 8370 |
| 8369 #ifdef DEBUG | 8371 #ifdef DEBUG |
| 8370 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8372 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 8371 if (allocator_ != NULL) allocator_->Verify(); | 8373 if (allocator_ != NULL) allocator_->Verify(); |
| 8372 #endif | 8374 #endif |
| 8373 } | 8375 } |
| 8374 | 8376 |
| 8375 } } // namespace v8::internal | 8377 } } // namespace v8::internal |
| OLD | NEW |