| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 406 |
| 407 | 407 |
| 408 Handle<Code> KeyedLoadFastElementStub::GenerateCode() { | 408 Handle<Code> KeyedLoadFastElementStub::GenerateCode() { |
| 409 return DoGenerateCode(this); | 409 return DoGenerateCode(this); |
| 410 } | 410 } |
| 411 | 411 |
| 412 | 412 |
| 413 template<> | 413 template<> |
| 414 HValue* CodeStubGraphBuilder<LoadFieldStub>::BuildCodeStub() { | 414 HValue* CodeStubGraphBuilder<LoadFieldStub>::BuildCodeStub() { |
| 415 Representation representation = casted_stub()->representation(); | 415 Representation representation = casted_stub()->representation(); |
| 416 HInstruction* load = AddInstruction(new(zone()) HLoadNamedField( | 416 HInstruction* load = AddInstruction(DoBuildLoadNamedField( |
| 417 GetParameter(0), casted_stub()->is_inobject(), | 417 GetParameter(0), casted_stub()->is_inobject(), |
| 418 representation, casted_stub()->offset())); | 418 representation, casted_stub()->offset())); |
| 419 return load; | 419 return load; |
| 420 } | 420 } |
| 421 | 421 |
| 422 | 422 |
| 423 Handle<Code> LoadFieldStub::GenerateCode() { | 423 Handle<Code> LoadFieldStub::GenerateCode() { |
| 424 return DoGenerateCode(this); | 424 return DoGenerateCode(this); |
| 425 } | 425 } |
| 426 | 426 |
| 427 | 427 |
| 428 template<> | 428 template<> |
| 429 HValue* CodeStubGraphBuilder<KeyedLoadFieldStub>::BuildCodeStub() { | 429 HValue* CodeStubGraphBuilder<KeyedLoadFieldStub>::BuildCodeStub() { |
| 430 Representation representation = casted_stub()->representation(); | 430 Representation representation = casted_stub()->representation(); |
| 431 HInstruction* load = AddInstruction(new(zone()) HLoadNamedField( | 431 HInstruction* load = AddInstruction(DoBuildLoadNamedField( |
| 432 GetParameter(0), casted_stub()->is_inobject(), | 432 GetParameter(0), casted_stub()->is_inobject(), |
| 433 representation, casted_stub()->offset())); | 433 representation, casted_stub()->offset())); |
| 434 return load; | 434 return load; |
| 435 } | 435 } |
| 436 | 436 |
| 437 | 437 |
| 438 Handle<Code> KeyedLoadFieldStub::GenerateCode() { | 438 Handle<Code> KeyedLoadFieldStub::GenerateCode() { |
| 439 return DoGenerateCode(this); | 439 return DoGenerateCode(this); |
| 440 } | 440 } |
| 441 | 441 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 ? graph()->GetConstantSmi1() | 663 ? graph()->GetConstantSmi1() |
| 664 : graph()->GetConstantUndefined(); | 664 : graph()->GetConstantUndefined(); |
| 665 } | 665 } |
| 666 | 666 |
| 667 | 667 |
| 668 Handle<Code> CompareNilICStub::GenerateCode() { | 668 Handle<Code> CompareNilICStub::GenerateCode() { |
| 669 return DoGenerateCode(this); | 669 return DoGenerateCode(this); |
| 670 } | 670 } |
| 671 | 671 |
| 672 } } // namespace v8::internal | 672 } } // namespace v8::internal |
| OLD | NEW |