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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 void CodeGenerator::CodeForSourcePosition(int pos) { | 453 void CodeGenerator::CodeForSourcePosition(int pos) { |
454 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { | 454 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { |
455 masm()->RecordPosition(pos); | 455 masm()->RecordPosition(pos); |
456 } | 456 } |
457 } | 457 } |
458 | 458 |
459 | 459 |
460 const char* GenericUnaryOpStub::GetName() { | 460 const char* GenericUnaryOpStub::GetName() { |
461 switch (op_) { | 461 switch (op_) { |
462 case Token::SUB: | 462 case Token::SUB: |
463 return overwrite_ | 463 if (negative_zero_ == kStrictNegativeZero) { |
464 ? "GenericUnaryOpStub_SUB_Overwrite" | 464 return overwrite_ == UNARY_OVERWRITE |
465 : "GenericUnaryOpStub_SUB_Alloc"; | 465 ? "GenericUnaryOpStub_SUB_Overwrite_Strict0" |
| 466 : "GenericUnaryOpStub_SUB_Alloc_Strict0"; |
| 467 } else { |
| 468 return overwrite_ == UNARY_OVERWRITE |
| 469 ? "GenericUnaryOpStub_SUB_Overwrite_Ignore0" |
| 470 : "GenericUnaryOpStub_SUB_Alloc_Ignore0"; |
| 471 } |
466 case Token::BIT_NOT: | 472 case Token::BIT_NOT: |
467 return overwrite_ | 473 return overwrite_ == UNARY_OVERWRITE |
468 ? "GenericUnaryOpStub_BIT_NOT_Overwrite" | 474 ? "GenericUnaryOpStub_BIT_NOT_Overwrite" |
469 : "GenericUnaryOpStub_BIT_NOT_Alloc"; | 475 : "GenericUnaryOpStub_BIT_NOT_Alloc"; |
470 default: | 476 default: |
471 UNREACHABLE(); | 477 UNREACHABLE(); |
472 return "<unknown>"; | 478 return "<unknown>"; |
473 } | 479 } |
474 } | 480 } |
475 | 481 |
476 | 482 |
477 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 483 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
(...skipping 25 matching lines...) Expand all Loading... |
503 } | 509 } |
504 } | 510 } |
505 | 511 |
506 | 512 |
507 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 513 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
508 info()->set_load_stub_cache(value); | 514 info()->set_load_stub_cache(value); |
509 } | 515 } |
510 | 516 |
511 | 517 |
512 } } // namespace v8::internal | 518 } } // namespace v8::internal |
OLD | NEW |