| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 masm()->RecordPosition(pos); | 441 masm()->RecordPosition(pos); |
| 442 } | 442 } |
| 443 } | 443 } |
| 444 | 444 |
| 445 | 445 |
| 446 const char* RuntimeStub::GetName() { | 446 const char* RuntimeStub::GetName() { |
| 447 return Runtime::FunctionForId(id_)->stub_name; | 447 return Runtime::FunctionForId(id_)->stub_name; |
| 448 } | 448 } |
| 449 | 449 |
| 450 | 450 |
| 451 const char* GenericUnaryOpStub::GetName() { |
| 452 switch (op_) { |
| 453 case Token::SUB: |
| 454 return overwrite_ |
| 455 ? "GenericUnaryOpStub_SUB_Overwrite" |
| 456 : "GenericUnaryOpStub_SUB_Alloc"; |
| 457 case Token::BIT_NOT: |
| 458 return overwrite_ |
| 459 ? "GenericUnaryOpStub_BIT_NOT_Overwrite" |
| 460 : "GenericUnaryOpStub_BIT_NOT_Alloc"; |
| 461 default: |
| 462 UNREACHABLE(); |
| 463 return "<unknown>"; |
| 464 } |
| 465 } |
| 466 |
| 467 |
| 451 void RuntimeStub::Generate(MacroAssembler* masm) { | 468 void RuntimeStub::Generate(MacroAssembler* masm) { |
| 452 Runtime::Function* f = Runtime::FunctionForId(id_); | 469 Runtime::Function* f = Runtime::FunctionForId(id_); |
| 453 masm->TailCallRuntime(ExternalReference(f), | 470 masm->TailCallRuntime(ExternalReference(f), |
| 454 num_arguments_, | 471 num_arguments_, |
| 455 f->result_size); | 472 f->result_size); |
| 456 } | 473 } |
| 457 | 474 |
| 458 | 475 |
| 459 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 476 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 460 switch (type_) { | 477 switch (type_) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 475 } | 492 } |
| 476 } | 493 } |
| 477 | 494 |
| 478 | 495 |
| 479 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 496 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
| 480 info()->set_load_stub_cache(value); | 497 info()->set_load_stub_cache(value); |
| 481 } | 498 } |
| 482 | 499 |
| 483 | 500 |
| 484 } } // namespace v8::internal | 501 } } // namespace v8::internal |
| OLD | NEW |