| 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 } else { | 607 } else { |
| 608 UNREACHABLE(); | 608 UNREACHABLE(); |
| 609 } | 609 } |
| 610 } | 610 } |
| 611 masm->bind(&fail); | 611 masm->bind(&fail); |
| 612 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); | 612 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); |
| 613 } | 613 } |
| 614 | 614 |
| 615 | 615 |
| 616 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { | 616 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
| 617 int i = 0; | 617 StubFailureTrampolineStub(false).GetCode(isolate); |
| 618 for (; i <= StubFailureTrampolineStub::kMaxExtraExpressionStackCount; ++i) { | 618 StubFailureTrampolineStub(true).GetCode(isolate); |
| 619 StubFailureTrampolineStub(i).GetCode(isolate); | |
| 620 } | |
| 621 } | 619 } |
| 622 | 620 |
| 623 | 621 |
| 624 FunctionEntryHook ProfileEntryHookStub::entry_hook_ = NULL; | 622 FunctionEntryHook ProfileEntryHookStub::entry_hook_ = NULL; |
| 625 | 623 |
| 626 | 624 |
| 627 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, | 625 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, |
| 628 intptr_t stack_pointer) { | 626 intptr_t stack_pointer) { |
| 629 if (entry_hook_ != NULL) | 627 if (entry_hook_ != NULL) |
| 630 entry_hook_(function, stack_pointer); | 628 entry_hook_(function, stack_pointer); |
| 631 } | 629 } |
| 632 | 630 |
| 633 | 631 |
| 634 bool ProfileEntryHookStub::SetFunctionEntryHook(FunctionEntryHook entry_hook) { | 632 bool ProfileEntryHookStub::SetFunctionEntryHook(FunctionEntryHook entry_hook) { |
| 635 // We don't allow setting a new entry hook over one that's | 633 // We don't allow setting a new entry hook over one that's |
| 636 // already active, as the hooks won't stack. | 634 // already active, as the hooks won't stack. |
| 637 if (entry_hook != 0 && entry_hook_ != 0) | 635 if (entry_hook != 0 && entry_hook_ != 0) |
| 638 return false; | 636 return false; |
| 639 | 637 |
| 640 entry_hook_ = entry_hook; | 638 entry_hook_ = entry_hook; |
| 641 return true; | 639 return true; |
| 642 } | 640 } |
| 643 | 641 |
| 644 | 642 |
| 645 } } // namespace v8::internal | 643 } } // namespace v8::internal |
| OLD | NEW |