| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 alloc_site_mode, | 241 alloc_site_mode, |
| 242 elements_kind, | 242 elements_kind, |
| 243 length)); | 243 length)); |
| 244 } | 244 } |
| 245 | 245 |
| 246 return environment()->Pop(); | 246 return environment()->Pop(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 | 249 |
| 250 Handle<Code> FastCloneShallowArrayStub::GenerateCode() { | 250 Handle<Code> FastCloneShallowArrayStub::GenerateCode() { |
| 251 CodeStubGraphBuilder<FastCloneShallowArrayStub> builder(this); | 251 return DoGenerateCode(this); |
| 252 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); | |
| 253 return chunk->Codegen(Code::COMPILED_STUB); | |
| 254 } | 252 } |
| 255 | 253 |
| 256 | 254 |
| 257 template <> | 255 template <> |
| 258 HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() { | 256 HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() { |
| 259 Zone* zone = this->zone(); | 257 Zone* zone = this->zone(); |
| 260 Factory* factory = isolate()->factory(); | 258 Factory* factory = isolate()->factory(); |
| 261 | 259 |
| 262 HInstruction* boilerplate = | 260 HInstruction* boilerplate = |
| 263 AddInstruction(new(zone) HLoadKeyed(GetParameter(0), | 261 AddInstruction(new(zone) HLoadKeyed(GetParameter(0), |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 current_block()->MarkAsDeoptimizing(); | 432 current_block()->MarkAsDeoptimizing(); |
| 435 return GetParameter(0); | 433 return GetParameter(0); |
| 436 } | 434 } |
| 437 | 435 |
| 438 | 436 |
| 439 Handle<Code> ArrayNArgumentsConstructorStub::GenerateCode() { | 437 Handle<Code> ArrayNArgumentsConstructorStub::GenerateCode() { |
| 440 return DoGenerateCode(this); | 438 return DoGenerateCode(this); |
| 441 } | 439 } |
| 442 | 440 |
| 443 } } // namespace v8::internal | 441 } } // namespace v8::internal |
| OLD | NEW |