| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PrintF("]\n"); | 74 PrintF("]\n"); |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 | 79 |
| 80 IC::IC(FrameDepth depth) { | 80 IC::IC(FrameDepth depth) { |
| 81 // To improve the performance of the (much used) IC code, we unfold | 81 // To improve the performance of the (much used) IC code, we unfold |
| 82 // a few levels of the stack frame iteration code. This yields a | 82 // a few levels of the stack frame iteration code. This yields a |
| 83 // ~35% speedup when running DeltaBlue with the '--nouse-ic' flag. | 83 // ~35% speedup when running DeltaBlue with the '--nouse-ic' flag. |
| 84 const Address entry = Top::c_entry_fp(Top::GetCurrentThread()); | 84 const Address entry = Top::c_entry_fp(Isolate::Current()->thread_local_top()); |
| 85 Address* pc_address = | 85 Address* pc_address = |
| 86 reinterpret_cast<Address*>(entry + ExitFrameConstants::kCallerPCOffset); | 86 reinterpret_cast<Address*>(entry + ExitFrameConstants::kCallerPCOffset); |
| 87 Address fp = Memory::Address_at(entry + ExitFrameConstants::kCallerFPOffset); | 87 Address fp = Memory::Address_at(entry + ExitFrameConstants::kCallerFPOffset); |
| 88 // If there's another JavaScript frame on the stack, we need to look | 88 // If there's another JavaScript frame on the stack, we need to look |
| 89 // one frame further down the stack to find the frame pointer and | 89 // one frame further down the stack to find the frame pointer and |
| 90 // the return address stack slot. | 90 // the return address stack slot. |
| 91 if (depth == EXTRA_CALL_FRAME) { | 91 if (depth == EXTRA_CALL_FRAME) { |
| 92 const int kCallerPCOffset = StandardFrameConstants::kCallerPCOffset; | 92 const int kCallerPCOffset = StandardFrameConstants::kCallerPCOffset; |
| 93 pc_address = reinterpret_cast<Address*>(fp + kCallerPCOffset); | 93 pc_address = reinterpret_cast<Address*>(fp + kCallerPCOffset); |
| 94 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset); | 94 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset); |
| (...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 #undef ADDR | 1644 #undef ADDR |
| 1645 }; | 1645 }; |
| 1646 | 1646 |
| 1647 | 1647 |
| 1648 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 1648 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 1649 return IC_utilities[id]; | 1649 return IC_utilities[id]; |
| 1650 } | 1650 } |
| 1651 | 1651 |
| 1652 | 1652 |
| 1653 } } // namespace v8::internal | 1653 } } // namespace v8::internal |
| OLD | NEW |