| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 9086 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 9097 | 9097 | 
| 9098 // Fast support for StringAdd. | 9098 // Fast support for StringAdd. | 
| 9099 void HOptimizedGraphBuilder::GenerateStringAdd(CallRuntime* call) { | 9099 void HOptimizedGraphBuilder::GenerateStringAdd(CallRuntime* call) { | 
| 9100   ASSERT_EQ(2, call->arguments()->length()); | 9100   ASSERT_EQ(2, call->arguments()->length()); | 
| 9101   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 9101   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 
| 9102   CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); | 9102   CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); | 
| 9103   HValue* right = Pop(); | 9103   HValue* right = Pop(); | 
| 9104   HValue* left = Pop(); | 9104   HValue* left = Pop(); | 
| 9105   HValue* context = environment()->LookupContext(); | 9105   HValue* context = environment()->LookupContext(); | 
| 9106   HInstruction* result = HStringAdd::New( | 9106   HInstruction* result = HStringAdd::New( | 
| 9107       zone(), context, left, right, NO_STRING_ADD_FLAGS); | 9107       zone(), context, left, right, STRING_ADD_CHECK_BOTH); | 
| 9108   return ast_context()->ReturnInstruction(result, call->id()); | 9108   return ast_context()->ReturnInstruction(result, call->id()); | 
| 9109 } | 9109 } | 
| 9110 | 9110 | 
| 9111 | 9111 | 
| 9112 // Fast support for SubString. | 9112 // Fast support for SubString. | 
| 9113 void HOptimizedGraphBuilder::GenerateSubString(CallRuntime* call) { | 9113 void HOptimizedGraphBuilder::GenerateSubString(CallRuntime* call) { | 
| 9114   ASSERT_EQ(3, call->arguments()->length()); | 9114   ASSERT_EQ(3, call->arguments()->length()); | 
| 9115   CHECK_ALIVE(VisitArgumentList(call->arguments())); | 9115   CHECK_ALIVE(VisitArgumentList(call->arguments())); | 
| 9116   HValue* context = environment()->LookupContext(); | 9116   HValue* context = environment()->LookupContext(); | 
| 9117   HCallStub* result = new(zone()) HCallStub(context, CodeStub::SubString, 3); | 9117   HCallStub* result = new(zone()) HCallStub(context, CodeStub::SubString, 3); | 
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 9933   if (ShouldProduceTraceOutput()) { | 9933   if (ShouldProduceTraceOutput()) { | 
| 9934     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9934     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 
| 9935   } | 9935   } | 
| 9936 | 9936 | 
| 9937 #ifdef DEBUG | 9937 #ifdef DEBUG | 
| 9938   graph_->Verify(false);  // No full verify. | 9938   graph_->Verify(false);  // No full verify. | 
| 9939 #endif | 9939 #endif | 
| 9940 } | 9940 } | 
| 9941 | 9941 | 
| 9942 } }  // namespace v8::internal | 9942 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|